geospatial

Java geospatial utils

License

License

Categories

Categories

Geo Business Logic Libraries Geospatial
GroupId

GroupId

com.github.sterkh66
ArtifactId

ArtifactId

geospatial_2.11
Last Version

Last Version

0.1
Release Date

Release Date

Type

Type

jar
Description

Description

geospatial
Java geospatial utils
Project URL

Project URL

https://github.com/sterkh66/geospatial
Project Organization

Project Organization

com.github.sterkh66
Source Code Management

Source Code Management

https://github.com/sterkh66/geospatial

Download geospatial_2.11

How to add to project

<!-- https://jarcasting.com/artifacts/com.github.sterkh66/geospatial_2.11/ -->
<dependency>
    <groupId>com.github.sterkh66</groupId>
    <artifactId>geospatial_2.11</artifactId>
    <version>0.1</version>
</dependency>
// https://jarcasting.com/artifacts/com.github.sterkh66/geospatial_2.11/
implementation 'com.github.sterkh66:geospatial_2.11:0.1'
// https://jarcasting.com/artifacts/com.github.sterkh66/geospatial_2.11/
implementation ("com.github.sterkh66:geospatial_2.11:0.1")
'com.github.sterkh66:geospatial_2.11:jar:0.1'
<dependency org="com.github.sterkh66" name="geospatial_2.11" rev="0.1">
  <artifact name="geospatial_2.11" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.github.sterkh66', module='geospatial_2.11', version='0.1')
)
libraryDependencies += "com.github.sterkh66" % "geospatial_2.11" % "0.1"
[com.github.sterkh66/geospatial_2.11 "0.1"]

Dependencies

compile (4)

Group / Artifact Type Version
org.scala-lang : scala-library jar 2.11.8
com.opencsv : opencsv jar 3.8
com.vividsolutions : jts jar 1.13
org.scalactic : scalactic_2.11 jar 3.0.4

test (1)

Group / Artifact Type Version
org.scalatest : scalatest_2.11 jar 3.0.4

Project Modules

There are no modules declared in this project.

Scala spatial extension over Java Topology Suite (JTS)

Provides various spatial utils over JTS such as:

  • polygon map quad tree (trie) spatial indexing
  • improved STRTree index search with result refinement and neighboors detecting

Example: Query polygons containing point

      import com.github.sterkh66.spatial.index.quadtree.QuadTree
      import com.github.sterkh66.spatial.index.Shape
      import org.locationtech.jts.io.WKTReader

      val wkt = new WKTReader()
      val shape = Shape("s1", wkt.read("POLYGON ((3 3, 3 4, 4 4, 4 3, 3 3))"))
      val qt = new QuadTree[String]()

      qt.createIndex(List(shape), 8)
      qt.queryIndex(3.1, 3.5)
      
      Seq("s1")

Versions

Version
0.1