GeoJSON-Net / GeoJSON.Net.Contrib

Repository for all GeoJSON.Net *.Contrib projects
MIT License
36 stars 22 forks source link

Add support for Extended Well-Known Text #15

Closed Paqi closed 6 years ago

Paqi commented 7 years ago

Would it be possible to add support for Extended Well-Known Text to GeoJSON.Net.Contrib.MsSqlSpatial?

Per Wikipedia:

EWKT and EWKB – Extended Well-Known Text/Binary – A PostGIS-specific format that includes the spatial reference system identifier (SRID) and up to 4 ordinate values (XYZM).[15][16] For example: SRID=4326;POINT(-44.3 60.1) to locate a longitude/latitude coordinate using the WGS 84 reference coordinate system.

xfischer commented 6 years ago

Hi @rabrahamOpti, why would you need that ? How would you use it ? This is a PostGIS specific format, not MsSql, maybe someone can contribute to add PostGIS support. As far as I know, PostGIS has already a GeoJson support (http://www.postgis.net/docs/ST_AsGeoJSON.html)

I don't say it shouldn't be done, but I need more context. Can you drop some lines on that ? Cheers

Paqi commented 6 years ago

Hi @xfischer, I was working with data that was ported into a RedisDB, which I was reading from C# code to instantiate GeoJSON objects. I found a better data source that used the regular well known text format ( POINT(-44.3 60.1) ), so I don't personally need this change any more. Thank you for following up.