Comments (7)
I suppose it has to deal with the way numbers are parsed. Maybe that can be changed using a different NumberFormatInfo in FloatToken.
Anyhow the DiscreteHausdorffDistance between the geometries is less than 1E-9 which raises the question if it is worth to deal with it.
from nettopologysuite.
FloatToken now uses a formatter like String.Format(GetNumberFormatInfo(), "{0:R}", (Double) obj))
that, as far as I know (not much, actually) is maximum precision available.
So, to me, probably our code is correct.
from nettopologysuite.
That is for output, don't know if there is a way to control parsing
from nettopologysuite.
eheheh, right! I'll check
from nettopologysuite.
I played around a bit more and it seems that the problem is not in the WKTReader, not in the WKBWriter, not in the ToHex function. It is beyond our control:
The number 6232756.00054126 is internally treated as 6232756.0005412595 with the bytes
0x3_5_DE0800ADC65741. Java treats that number as 0x3_6_DE0800ADC65741.
from nettopologysuite.
@FObermaier only to know, how you found this information? :)
from nettopologysuite.
I tried :), it was the only number that was different
from nettopologysuite.
Related Issues (20)
- How to avoid problem with ConcaveHull? HOT 4
- Difference problem
- GeometryPrecisionReducer not working for LineString (PrecisionModel)
- Could not load file or assembly 'System.Buffers, Version=4.0.2.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
- Why holes do not applies to shells in Polygonizer?
- LineSegment.OrientationIndex returns a wrong value HOT 1
- DistanceOp.ComputeMinDistancePoints should be fixed for empty points. HOT 1
- TriangleEdgesListVisitor.Visit can fail with FetchTriangleToVisit. HOT 2
- PointLocator.ComputeLocation does not handle empty values
- how to get polygon with holes OR not overlapping polygons from list of LINESTRING HOT 2
- [WKBReader]Geometry type not recognized. GeometryCode: 16 HOT 1
- ST_Transform on parameter geometry HOT 1
- GeometryFactory.CreateEmpty throws exception when passed Dimension.Dontcare HOT 1
- Difference between Geometries created by NetTopologySuite 6 and 8 HOT 3
- MultiPoint Reverse implementation is not a reverse HOT 1
- Can you request a nuget package prefix for NetTopologySuite HOT 5
- An error create instance of STRtree class HOT 1
- Add Additional TFM so dependencies can be reduced
- Add additional TFM to enable a 0 dependency scenario HOT 1
- Invalid Z coordinate is added to geometry point with X and Z coordinates HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nettopologysuite.