Sergey Tolstov

Results 45 comments of Sergey Tolstov

Firstly: https://github.com/Esri/contributing/issues/10 @randallwhitman Maybe provide a mechanism to be able to register external spatial functions so that the user could have their own implementation with their own licensing requirements? I...

@JimBlaney What types of geometry would you convert to and from geohash?

Preferably this should be a standalone Geohash class. class Geohash: static Envelope2D geohashToEnvelope(String geoHash) - envelope of the geohash cell. static String toGeohash(Point2D pt, int characterLength) - converts a point...

@Kim-Kam The formats that this library understands are Esri shape, REST JSON, WKT, WKB, and Geojson. Can you use ST_AsBinary to extract WKB?

@fer-marino The clip call makes the polygon to be between -180 and +180. The cut call is made using a line x = 180. It has nothing to cut then.

@fer-marino Clip polygon with a rectangles with x range [-540, -180], [-180, 180], [180, 540]. Then move the result of the first clip by +360, the result of the third...

@fer-marino Use this: ``` Transformation2D trans = new Transformation2D(); trans.setShift(-180, 0); polygon.applyTransformaion(trans); ```

@fer-marino Here is the first polygon you provided. It contains 360 degree jumps. May I ask you, how such polygon was produced? ![image](https://cloud.githubusercontent.com/assets/3373377/23507714/2f58a132-ff03-11e6-9c14-5da74de42a7c.png)

@fer-marino I can only suggest an approach to to such polygons that you'd detect jumps over 180 degrees and fix them. That's going to be an infinite polygon on a...

A point polygon, or polygon which is degenerate to a line is not valid for many operations, so I am not sure what would you be able to use it...