I have a website where locations data are stored with the fields provided by Node Location Module(core).
Actually i'm using Ggoogle Map API, and would like to switch to openlayers.
Is there a way to migrate my "Node Location" data to OpenLayers WKT field ?
( I'm using only latitude and longitude.)

Comments

tmcw’s picture

If the node location module provides latitude/longitude as CCK fields, there's no need to migrate your data into WKT - you can simply set the OpenLayers Data view to use latitude and longitude fields via views.

heyyo’s picture

I'm not using CCK locations but Node Location.

http://drupal.org/node/375259

tmcw’s picture

Ah, in that case I have no idea. With a bit of code, I'd assume that you can upgrade nodes to a CCK situation (either OpenLayers WKT or just plain numeric CCK fields, either way is fine for points), but if the Location module doesn't have an upgrade path, it won't be automatic.

heyyo’s picture

I'm trying with the migrate module

zzolo’s picture

Hi @heyyo, if you figure this out, it would be really helpful to others if you posted back here. Good luck.

c-c-m’s picture

I'm also in the same situation and I'd like to give up Location. I have not started anything yet about importing (my first action was searching here, and I found your post), so I wanted to subscribe your problem and ecourage developers to create a migration script to get rid of Location by moving all their data into cck fields.

tmcw’s picture

Status: Active » Closed (works as designed)

Feel free to update, but this is out of scope for the module... the ancient Location module is a tough cookie.