Top "Jts" questions

The JTS Topology Suite is an open source API of 2D spatial predicates and functions written in Java.

How to create a polygon in JTS when we have list of coordinate?

We can create a LineString using coordinates list like this: Geometry g1 = new GeometryFactory().createLineString(coordinates); How can we create …

java geometry computational-geometry jts
Calculate if an object is inside a set of coordinates?

I have a set of X and Y points that builds a shape and I need to know if an …

java coordinates jts
PostGIS Geometry saving: "Invalid endian flag value encountered."

I have a Spring Roo + Hibernate project which takes a JTS well-known text (WKT) String input from the client application, …

spring hibernate geometry endianness jts
Is there a way to convert a self intersecting polygon to a multipolygon in JTS?

Take the invalid polygon POLYGON((0 100, 100 100, 0 0, 100 0, 0 100)) - an egg timer shape with an undeclared point of intersection Many instructions say that …

java geometry jts
Minimal Bounding Rectangle with JTS

I've got a collection of geometry objects. Now i want to calculate the minimal bounding rectangle from the whole collection. …

java jts
Geometry from vividsolutions JTS fails when creating JSON

pals. I'm using vividsolutions's library JTS (1.13) for Points and Polygons in my application, but when I try to convert geometry …

java json rest jts