Closed (fixed)
Project:
Geofield
Version:
7.x-1.1
Component:
Miscellaneous
Priority:
Critical
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
18 Apr 2013 at 15:33 UTC
Updated:
22 Jul 2013 at 22:11 UTC
Hi all,
What is the best way to convert two existing fields (lat / lon) into a Geofield?
I've got an existing content type with more than 1000 record.
This content type has two fields latitude and longitude, i would like to convert these into a new geofield field.
Else, I could export all records into a csv file and re-import all with the feeds module, but how is the correct mapping?
Thanks to all for the help
Comments
Comment #1
jjchinquistIf you want to do it programmatically, this may help (I am making some assumptions here though):
Add a GeoField instance to the node/entity that is a point.
Programmatically load the node and then update:
Comment #2
nassiesse commentedGreat!
Thanks for help!
With this script I updated all records.
I hope this is useful to other users!
Comment #3
Brandonian commentedMarking as fixed.