spatial4j icon indicating copy to clipboard operation
spatial4j copied to clipboard

LocationTech Spatial4j: A Geospatial Library for Java

Results 78 spatial4j issues
Sort by recently updated
recently updated
newest added

When deserializing geometries with 3D coordinates using the jackson `ShapeDeserializer` I get a `NullPointerException` (s. stack trace below). This is probably due to lines 47 and 60 in https://github.com/locationtech/spatial4j/blob/master/src/main/java/org/locationtech/spatial4j/io/jackson/ShapeDeserializer.java where...

Just updating the dependencies for security reasons

I'm quite confused about distance calculations. I'm using this website as a reference: https://www.omnicalculator.com/other/latitude-longitude-distance Then I got an implementation of a distance calculation (haversine) from here: https://tutorialspoint.dev/algorithm/geometric-algorithms/program-distance-two-points-earth And I want...

Hi, I am trying to find the distance between a moving point p1 and a fixed point p2. Both of them are on the same y-coordinate. Point p1 just travels...

question

Is it possible to replicate the following with this library? `SELECT ST_AsText(ST_Buffer( ST_GeomFromText( 'LINESTRING(-105.279057455338 40.0157700624913,-105.279021664612 40.0158066914082,-105.278825611896 40.0158601679504,-105.278177942238 40.0159837172032,-105.278111222289 40.0159908418209,-105.277966634459 40.0158862356693,-105.277770665563 40.0153484527617,-105.277472353629 40.0144385971722,-105.277516023345 40.0144085899588,-105.277577546514 40.0144604739395,-105.277956073261 40.0147031300363,-105.278068055488 40.0147474703041,-105.27818380957 40.0148268469272,-105.278272909201 40.0148850173352,-105.278353710748 40.0149219815282,-105.278412719346 40.0149662379769,-105.278506848119...

question

https://github.com/locationtech/spatial4j/blob/2926812ae302c6e0f24fb5995b1fd24be7fe0b56/src/main/java/org/locationtech/spatial4j/shape/jts/JtsGeometry.java#L492 Why does this check in `unwrapDateline()` require the exterior ring of a polygon to `contains()` any interior rings? Doesn't `contains()` on two `LineString`s require one to be a subset...

It is possible to create invalid shapes through the `JtsShapeFactory.MultipolygonBuilder`. You can reproduce by running the following class: ```java import org.locationtech.spatial4j.context.jts.JtsSpatialContext; import org.locationtech.spatial4j.context.jts.JtsSpatialContextFactory; import org.locationtech.spatial4j.exception.InvalidShapeException; import org.locationtech.spatial4j.shape.jts.JtsShapeFactory; public class Main...

These artifacts have classes in the same package which causes major headaches if one wants to use them together with the module system. Would it be at all possible to...

Hi everyone, I have a small application that I'm using to verify if geojson files are correct. also checked with https://geojsonlint.com/ `{ "type": "FeatureCollection", "features": [{ "type": "Feature", "properties": {},...

Hello, We are using Lucene and Geotools in our application and tried to update to a newer Geotools version. Now our tests in lucene fail, because of spatial4j dependency. Geotools...