Tag Info

Hot answers tagged

4

Look at Martin Davis (creator of the JTS Topology Suite), Lin.ear th.inking: Quirks of the "Contains" Spatial Predicate Geometry A contains Geometry B if no points of B lie in the exterior of A, and at least one point of the interior of B lies in the interior of A Geometry A covers Geometry B if no points of B lie in the exterior of A All that is ...


2

There are a couple of different ways you can do this, and it will vary depending on the software you are using. But in QGIS you can use the Vector Grid tool, which is found in Vector - Research Tools. The tool allows you to set the extent of your working area based on a layer (in your case the polygon layer) and then output either a line or polygon grid ...


1

This is caused by the WKT and GML standards using a different convention for separating pair of points and each coordinate of a point. GML uses comma to separate coordinates and space to separate pairs, eg, 52.52735668,12.71762844 52.52633816,12.71518035 whereas WKT uses the opposite, eg, 52.52735668 12.71762844, 52.52633816 12.71518035 You have a ...


1

It looks like you are using an SVN checkout of JTS? You need to compile it then. Alternatively just use the precompiled binaries from http://sourceforge.net/projects/jts-topo-suite/files/jts/


1

Have a look at this documentation of CRS http://docs.geotools.org/latest/userguide/library/referencing/crs.html#well-known-text It is possible to set the CRS from WKT. The documentation says: CoordinateReferenceSystem can also be defined by a text format ((called “Well Known Text” or WKT). This is a standard provided by the OGC and shows up in ...


1

Perhaps the OpenJUMP Jython tool "Rotated Rectangle Tool" can give some inspiration. Code is so short that I copy it all here: # Copyright (C) 2005 Integrated Systems Analysts, Inc. # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License import com.vividsolutions.jts.geom.Coordinate as ...



Only top voted, non community-wiki answers of a minimum length are eligible