NetTopologySuite.Featuresproject as part of the suite of v2 breaking changes was to focus that project on things that are common across multiple data providers (as this is used by GeoJSON, Shapefile, and GPX). CRS-related stuff was very specific to GeoJSON (edit: and even there, it was removed in the IETF's version of the spec, so it was of limited utility anyway)
However, where all involved parties have a prior arrangement, alternative coordinate reference systems can be used without risk of data being misinterpreted.
FWIW, this is true regardless of the presence / absence of explicit CRS info; the
NamedCRS stuff was there to make sure that your coordinates are interpreted correctly in cases where you don't have a prior arrangement
"crs"member, but it doesn't strictly follow the pre-IETF spec for it, since those are still legal IETF-era GeoJSON documents per §6.1
true, we shouldn't be writing out a non-null
bboxunless you actually set the value of
FeatureCollection.BoundingBoxyourself, to something non-
null. If it's writing out
"bbox": nulland you don't want it to, consider setting
One picture speaks more than a hundred words
Thanks a lot!!!!
var factory = new NetTopologySuite.Utilities.GeometricShapeFactory(); var center = new NetTopologySuite.Geometries.Coordinate(-122.38646, 47.98736); var topLeft = new NetTopologySuite.Geometries.Coordinate(center.X - 0.01, center.Y + 0.01); var bottomRight = new NetTopologySuite.Geometries.Coordinate(center.X + 0.01, center.Y - 0.01); var env = new NetTopologySuite.Geometries.Envelope(topLeft, bottomRight); factory.Envelope = env; // Approximated polygon from circle/ellipse var circle = factory.CreateEllipse();
IEnumerable<T>support to the shapefile module, but
ShapefileDataReader(combining the .dbf and the .shp files) would be an
IEnumerable<NetTopologySuite.IO.RowStructure>if that type is made public. So it's not really an improvement over the current non-generic
IEnumerable, the API needs an overhaul. What would be a good way to discuss such an overhaul? Should I make a proposal first?