An open source Java software library that provides an object model for Euclidean planar linear geometry together with a set of fundamental geometric function

learn more… | top users | synonyms

1
vote
1answer
154 views

How to work with the STRtree Index when object in the index change it's position?

I'm work with the NTS(NetTopologySuite), I get large amounts of Point geometries, for fast querying the point object, I make the STRtree Index like this, STRtree tree = new STRtree(); foreach (var p ...
3
votes
0answers
431 views

What is the best way to convert WKT String to GML String

What is the best way to programatically convert WKT String to GML String? Every reasonable library (at best available in some Maven repository) can be used. Till now I came up with this solution ...
1
vote
0answers
59 views

Converting geometry to geography using org.geotools.geometry.jts.JTS

I'm trying to convert com.vividsolutions.jts.geom.Geometry to geography, using the GeoTools package - org.geotools.geometry.jts.JTS. This is my code: public Geometry getGeography() { Geometry geo ...
1
vote
0answers
91 views

Hibernate Spatial - Query within an X kilometer radius?

I am new to Hibernate Spatial, and am trying to perform a simple query of objects within a given radius. I've created a number of entries in my database with properties corresponding to a latitude ...
1
vote
0answers
58 views

JTS difference op followed by an intersection op not returning expected results

I have two overlapping polygons and I want to get the line segment(s) where the edges cross. So I begin by performing a Difference operation. That gives me the area where A is "outside" of B. ...
1
vote
0answers
268 views

JTS - Java Topology Suite - Calculate radius from a given point

From point A, I want to check if a point B is within a certain radius from A. How calculate it usindo JTS? I tried this: Coordinate posicaoAtual = new Coordinate(-12.974900375893823, ...
0
votes
0answers
28 views

Splitting multiple polygons with a line in JTS geotools

i am using geotools as my GIS map solution. now i want to split multiple polygons to build a road or river. passing through multiple polygons so, can you plz help me how to do this splitting a single ...
0
votes
0answers
21 views

WKBreader reuse - jts 1.9

I'm having some bad behavior reusing wkbreader. The context as of a single threaded as I use threadlocal wkbreader. I get parse exception on some geoms. When I create a new wkbreader for each ...