Hi,
We are currently evaluating ThinkGeo for WPF and Blazor, but are having some problems opening our data sources. We have data tables in SQLite and PostGIS, both with Z-enabled geometries. We write the tables with “Microsoft.EntityFrameworkCore.Sqlite.NetTopologySuite” and “Npgsql.EntityFrameworkCore.PostgreSQL.NetTopologySuite” respectively.
For both data sources we get the message “the format of the known binary is incorrect (Parameter ‘wkb’)” when we try to draw the map.
If we create a custom layer, read the geometry with NTS and create the features with “new Feature(geometry.ToBinary())” from the NTS-geometry, the features will be created and drawn.
Note: For SQLite geometries we use “NetTopologySuite.IO.GaiaGeoReader.Read(byte[] reader.GetFieldValue<byte[]>([n]))”, for PostGIS “reader.GetFieldValue<NetTopologySuite.Geometries.Geometry>([n])”.
Are we missing something?
Thanks and best regards, Volker