It would be nice if node import supported the Geo Field from the geo project (http://drupal.org/project/geo) out of the box.

CommentFileSizeAuthor
#3 node_import-707760.patch3.25 KBahtih
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

NoahPollock’s picture

Can the Geo Field be added manually after import?

Doud’s picture

+1 subscribe

This feature would be very nice !

ahtih’s picture

Status: Active » Needs review
FileSize
3.25 KB

I added functionality to import Geo Field. Here is a patch for DRUPAL-6--1 branch, including updated documentation.

It supports input as WKT or Lon/Lat, as specified in CCK settings for the field (configured in /admin/content/types , not when importing).

Multiple values per field are not supported; I'm not sure if this should be done, as many other supported/*.inc files have no special support for multiples either and are still marked as "fully supported" in node_import docs.

Node preview phase does not work (get warning messages instead of data), this is due to Geo module's own bugs (Geo Field preview does not work even without Node Import); but ignore the preview warnings, actual import works fine.

Pls test&review, I am fairly new to Drupal so perhaps did not implement everything correctly.

salvatore_severo’s picture

I think there is a limit on wkt over 128 chars. There is a way to up this limit?

ahtih’s picture

I'm not sure. There is no such limit explicitly in my patch above. But perhaps some other module is limiting WKT size. If someone has time to debug this, it would be nice. Myself I don't need longer than 128 chars WKTs and don't have time to work on it now.

ahtih’s picture

Title: Support CCK Geo field » [PATCH] Support CCK Geo field

Maintainers, any chance of commiting this?