[mapguide-users] OGR provider - Disappearing features and “Invalid index : -1”

Jonathan Jensen jlj at geograf.dk
Tue Mar 5 06:40:32 PST 2019

Hey, I have recently noticed a strange behavior on one of our MapGuide 3.1.0
setups, where features from some layers would disappear from time to time
when panning or zooming.
I have narrowed it down to only being layers using the OGR provider and it
happens in both MapInfo tab files and in Esri shapefiles. 
The error happens when previewing a layer or a feature source, or when doing
a GETMAPIMAGE operation to the mapagent.fcgi
Video of the error on a completely fresh MapGuide 3.1.1 installation:

I have been able to reproduce the error in MapGuide 3.1.0 and 3.1.1 and on
multiple computers and servers running Windows Server 2012 R2 and Windows 10

The error acts like an invalid spatial index, however deleting/rebuilding
the shx files does nothing to correct it. Tab files also have the error with
or without any indexes.
It also happens on newly created layers from both MapInfo and QGIS, and
reference system does not seem to matter as it happens with both EPSG:25832
and EPSG:4326

I have three different test files, along with a text containing ogrinfo
output and output from MapGuide.
Test files along with output can be downloaded here:

The primary output is from MapGuide running with cpl_debug=on
Previewing the data source causes this:
“ERROR 1: Invalid index : -1” 

Selecting features sometimes causes this:
“(10408) An exception occurred in FDO component.
Error occurred in Feature Source
Invalid index : -1 (Cause: , Root Cause: Invalid index : -1)”

MapGuide 3.1.1 providers.xml
    <DisplayName>OGR Provider</DisplayName>
    <Description>FDO Access to OGR Data Sources</Description>

I have been unable to find any mentions of this problem, this a known bug
with a workaround or something new?


Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html

More information about the mapguide-users mailing list