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?

CommentFileSizeAuthor
#2 823994-spatial-feeds-fix.patch1.84 KBtmcw
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

tmcw’s picture

Priority: Normal » Critical
$options = $source->getConfigFor($this);

needs to become

$options = $this->config;

Changing to critical: this breaks support of all new version of Feeds.

tmcw’s picture

Here's a patch against CVS head that fixes this problem.

phayes’s picture

Status: Active » Fixed
phayes’s picture

PS: Thanks!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.