When the code passes through
public function parse(FeedsImportBatch $batch, FeedsSource $source) {
$options = $source->getConfigFor($this);
$options is empty, which results in $spatial_field being an empty string when called in
function spatial_import_process_shapefile($filepath, $spatial_field = 'geom', $field_type = 'wkt') {
Which results in the mapping of the fields going wrong.
Am using Openlayers 2.0 (small patch coming) and php 5.3(!) on lucid.
Anyone having the same issue?
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 823994-spatial-feeds-fix.patch | 1.84 KB | tmcw |
Comments
Comment #1
tmcw commentedneeds to become
Changing to critical: this breaks support of all new version of Feeds.
Comment #2
tmcw commentedHere's a patch against CVS head that fixes this problem.
Comment #3
phayes commentedhttp://drupal.org/cvs?commit=401254
Comment #4
phayes commentedPS: Thanks!