Does anyone out there know the geometry storage encoding for ESRI's Runtime Geodatabase (.sqlite) format? aka mobile geodatabase.

There are 'GDB_ tables', 'st_ tables', 'RTREE indexes' and other fairly standard geodatabase bits, but I'm having trouble identifying the binary encoding of the SHAPE column in the feature tables. It's not WKB, it appears to have a very standard header and a consistent 'footer' character (I think).

These are XY points stored in 4326.


  • The earlier version stored json in that field, so I tried BSON (Newtonsoft.Json.Bson), but it complained about MapPoint not having a constructor when I tried serializer.Deserialize<MapPoint>. Anyone remember what the json for shape used to look like in sqlite? – Kirk Kuykendall Jun 26 '19 at 17:11
  • maybe this helps: github.com/rouault/dump_gdbtable/wiki/FGDB-Spec#gdb-files – zwnk Jun 26 '19 at 17:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.