Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GeometryFactory.CreatePoint does not return a point that supports M #126

Closed
becio opened this issue Sep 21, 2016 · 1 comment
Closed

GeometryFactory.CreatePoint does not return a point that supports M #126

becio opened this issue Sep 21, 2016 · 1 comment

Comments

@becio
Copy link

becio commented Sep 21, 2016

The title can be misleading, the long story is that what I have done is instantiating a custom NtsGeometryServices providing the DotSpatialAffineCoordinateSequenceFactory which supports the use of M, then I obtained the IGeometryFactory and invoked the method CreatePoint(Coordinate) to create a point, well this point does NOT support the property M.

Under the hood I noticed that this is because the construct of DotSpatialAffineCoordinateSequence(IList), invoked by the factory, does NOT initialize the _m field !

In my opinion since I have set the DotSpatialAffineCoordinateSequenceFactory, the GeometryFactory.CreatePoint should return a proper point, the fix should be to initialize the field or the factory should invoke a different construct which enables M.

@FObermaier
Copy link
Member

FObermaier commented Oct 4, 2016

@becio, you expect a DotSpatialAffineCoordinateSequenceFactory to create 3DM coordinate sequences, no matter what?

FObermaier added a commit that referenced this issue Jan 31, 2017
The DotSpatialAffineCoordinateSequenceFactory will create sequences that
can handle the DotSpatialAffineCoordinateSequenceFactory.Ordinates.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants