[Mapguide-trac] [mapguide-trac] #2890: Invalid index : -1 with OGR Geopackage

MapGuide Open Source trac_mapguide at osgeo.org
Mon Aug 31 05:26:33 PDT 2026


#2890: Invalid index : -1 with OGR Geopackage
---------------------------------+---------------------------------
   Reporter:  Reservoirdog       |      Owner:  (none)
       Type:  defect             |     Status:  new
   Priority:  low                |  Milestone:
  Component:  Rendering Service  |    Version:  4.0.0
   Severity:  trivial            |   Keywords:  geopackage OGR GDAL
External ID:                     |
---------------------------------+---------------------------------
 I am using Mapguide OS 4.0.0.10202 with GDAL
 (release-1900-x64-gdal-2-4-4-) to use GeoPackages with Mapguide.
 All works really well, but from time to time I am getting a lot of errors
 in Errorlog:

 <2026-08-28T10:11:04>   14388   MapAgent IBB iMap - TBView [3.0.10h]
 127.0.0.1       Anonymous
  Error: Failed to stylize layer: EEA Text
         An exception occurred in FDO component.
         Error occurred in Feature Source (Library://IBB-
 Datenpool/Strom/Data/Strom_Brugg_GPKG.FeatureSource): Invalid index : -1
 (Cause: , Root Cause: Invalid index : -1)
  StackTrace:
   - MgMappingUtil.StylizeLayers() line 918 file
 C:\Workspace\mg-4.0\MgDev\Server\src\Services\Mapping\MappingUtil.cpp
 <2026-08-28T10:11:04>   14388   MapAgent IBB iMap - TBView [3.0.10h]
 127.0.0.1       Anonymous
  Error: Failed to stylize layer: Trassequerschnittswechsel Text
         An exception occurred in FDO component.
         Error occurred in Feature Source (Library://IBB-
 Datenpool/Strom/Data/Strom_Brugg_GPKG.FeatureSource): Invalid index : -1
 (Cause: , Root Cause: Invalid index : -1)
  StackTrace:
   - MgMappingUtil.StylizeLayers() line 918 file
 C:\Workspace\mg-4.0\MgDev\Server\src\Services\Mapping\MappingUtil.cpp

 I had a chat about this error with ChatGPT, it was considered it has
 something to do with missing attributes, which are used in display data
 filters (visualisation rules)

 The errors occur very randomly, and when occuring it seems nearly all
 datasources are affected at the same time? (one layer is requested, but
 all non-related layers also produce the error at the same time).
-- 
Ticket URL: <https://trac.osgeo.org/mapguide/ticket/2890>
MapGuide Open Source <http://mapguide.osgeo.org/>
MapGuide Open Source Internals


More information about the mapguide-trac mailing list