JTS: You need JTS if you use polygons, or obviously if you use any of the classes prefixed with "Jts".Otherwise, all dependencies listed in the maven pom.xml are either marked optional or are for testing. Spatial4j runs on Java 8 (v1.8) or better. 3 great-circle distance calculators: Law of Cosines, Haversine, Vincentyįor more information on the formats supported, see FORMATS.md.Read and write Shapes using the Jackson-databdind serialization framework.Include the ENVELOPE extension from CQL, plus a Spatial4j custom BUFFER operation. Polygons are supported by wrapping JTS's Geometry, which is to say that most of the fundamental logic for that shape is implemented by JTS. Polygons don't support pole-wrap (sorry, no Antarctica polygon) just dateline-cross.The Rectangle shape exists in the spherical model as a lat-lon rectangle, which basically means it's math is no different than cylindrical.The term "geodetic" or "geodesic" or "geo" is used here as synonymous with that model but technically those words have a more broad meaning. point-radius shape that can operate on a surface-of-a-sphere model. Most shapes are augmented to support a wrap-around at X -180/+180 for compatibility with latitude & longitudes, which is effectively a cylindrical model. Spatial4j has a variety of shapes that operate in Euclidean-space - i.e. Note that Spatial4j doesn't have a notion of "touching". Relationships are: CONTAINS, WITHIN, DISJOINT, INTERSECTS. Compute the relationship to a lat-lon rectangle.Compute if it contains a provided point.The main part of Spatial4j is its collection of shapes. If you are interested in contributing to Spatial4j please review the contribution guidelines. Spatial4j is well tested it's monitored via Travis-CI continuous integration (plus another Hudson build) and we use Codecov for code coverage. ![]() If you are working with spatial grid-square indexing schemes, be it Geohash or something custom, then you are likely to find especially high utility from Spatial4j. Spatial4j is a project of the LocationTech Industry Working Group of the Eclipse Foundation. It's core capabilities are 3-fold: to provide common shapes that can work in Euclidean and geodesic (surface of sphere) world models, to provide distance calculations and other math, and to read & write shapes from formats like WKT and GeoJSON. Spatial4j is a general purpose spatial / geospatial ASL licensed open-source Java library. (note: Spatial4j's official home page is at LocationTech:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |