These are chat archives for NetTopologySuite/NetTopologySuite

27th
Aug 2018
seloger-tomtom
@seloger-tomtom
Aug 27 09:13
image.png
hello, since i upgrade nettopologysuite to 1.15, i have an exception when i try to read Geojson feature. Have you ever had this issue??
Joe Amenta
@airbreather
Aug 27 10:20
@seloger-tomtom I think you might need to bump up the package reference version for all NTS packages at the same time, including NetTopologySuite.IO.GeoJSON
seloger-tomtom
@seloger-tomtom
Aug 27 10:24
i have already bump to lastest version of all packages
image.png
seloger-tomtom
@seloger-tomtom
Aug 27 10:32
@airbreather in this project you can reproduce this exception
Joe Amenta
@airbreather
Aug 27 12:58
so that exception happens because this line gets hit for "crs", and then that same converter keeps going to see "type": "name" inside that, which isn't "type": "Feature", which is why it throws. @FObermaier this is a bug, right?
Original GeoJSON: {"type":"Feature", "properties":{}, "geometry":{"type":"Polygon", "coordinates":[[[2.329444885254, 48.849334716797], [2.3412895202638, 48.84916305542], [2.340431213379, 48.841953277588], [2.3278999328614, 48.841953277588], [2.329444885254, 48.849334716797]]]}, "crs":{"type":"name", "properties":{"name":"urn:ogc:def:crs:OGC:1.3:CRS84"}}}
seloger-tomtom
@seloger-tomtom
Aug 27 13:47
thank you for your help!!
Felix Obermaier
@FObermaier
Aug 27 13:48
@airbreather yes, this is a bug.
seloger-tomtom
@seloger-tomtom
Aug 27 14:02
ok i'm opening a bug