Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import implementation from OSMesa project #60

Merged
merged 41 commits into from
Mar 22, 2019
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
b927f93
Clean out project; Remove obsolete code and related documentation
jpolchlo Mar 1, 2019
72470ae
Update README
jpolchlo Mar 1, 2019
f4d6075
Freshen SBT project configs
jpolchlo Mar 1, 2019
a0ccffc
Remove chatty scalac warnings
jpolchlo Mar 1, 2019
acac58c
Import code from external project
jpolchlo Mar 1, 2019
fa2d035
Include SPI registry
jpolchlo Mar 1, 2019
98ce096
Remove extraneous version identifier
jpolchlo Mar 1, 2019
b7092c1
Remove outdated console setup
jpolchlo Mar 1, 2019
82ee939
Import test suite
jpolchlo Mar 1, 2019
f12c970
Bump version number
jpolchlo Mar 4, 2019
115ccb8
Bring in missing SAX parser from OSMesa (oops)
jpolchlo Mar 5, 2019
4f17b6b
Small config fixes
jpolchlo Mar 5, 2019
d47c826
Move files to right place in tree
jpolchlo Mar 5, 2019
da8643c
Make constructGeometries work for inputs from Change streams as well …
jpolchlo Mar 5, 2019
9b78222
Update README
jpolchlo Mar 5, 2019
b01b60f
Remove raster package
jpolchlo Mar 6, 2019
378b5be
Move Geocode out of ProcessOSM
jpolchlo Mar 13, 2019
c4f14f4
Address PR comments (remove caching facilities, improve conversion fu…
jpolchlo Mar 14, 2019
4bcf487
Fix test
jpolchlo Mar 14, 2019
b1569e8
Make tests pass
jpolchlo Mar 14, 2019
ca6a156
Adjust version number [skipci]
jpolchlo Mar 14, 2019
cfd541a
Unused
mojodna Mar 14, 2019
9558453
Ignore benchmark artifacts
mojodna Mar 14, 2019
0ad9c7a
Remove benchmarks referencing unused code
mojodna Mar 14, 2019
ec0e127
Remove unused imports
mojodna Mar 14, 2019
57ce394
geotrellis.spark.io.hadoop._ _is_ required
mojodna Mar 14, 2019
d161297
Upgrade dependencies
mojodna Mar 14, 2019
a51bdae
Style tweaks
mojodna Mar 14, 2019
b118b33
Additional docs for ProcessOSM entrypoints
mojodna Mar 14, 2019
1260e13
Make sure we are using compressed internal representations for member…
jpolchlo Mar 15, 2019
c2e1571
Reorganize library components; simplify and rename main user-facing i…
jpolchlo Mar 18, 2019
b2a0bbd
Update README to use new struture
jpolchlo Mar 18, 2019
23c6b83
Improve description of `toGeometry`'s output [skip ci]
jpolchlo Mar 18, 2019
e68d7e8
Fix slight README issue
jpolchlo Mar 18, 2019
1b7c43f
Fix tests for new structure
jpolchlo Mar 18, 2019
78820aa
Update docs to include section on internal package and compressed mem…
jpolchlo Mar 19, 2019
51f0827
Make tests work
jpolchlo Mar 19, 2019
bf2b5fc
Clean up
jpolchlo Mar 19, 2019
bb64732
Upgrade to `org.locationtech` organization for JTS (bumps GT and Geom…
jpolchlo Mar 19, 2019
230627d
Adjust copy method definitions for CoordinateSequence subclasses
jpolchlo Mar 22, 2019
12e2da2
Fix tests
jpolchlo Mar 22, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Upgrade to org.locationtech organization for JTS (bumps GT and Geom…
…esa versions)
  • Loading branch information
jpolchlo committed Mar 22, 2019
commit bb64732ca6656075f3f72a5ecacbb008ff548cb4
4 changes: 2 additions & 2 deletions project/Version.scala
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ object Version {
val awscala = "0.8.1"
val vectorpipe = "1.0.0-RC1"
val scala = "2.11.12"
val geotrellis = "2.1.0"
val geomesa = "2.1.2"
val geotrellis = "2.2.0"
val geomesa = "2.2.1"
val decline = "0.6.1"
val cats = "1.6.0"
val scalactic = "3.0.6"
Expand Down
2 changes: 1 addition & 1 deletion src/main/scala/vectorpipe/OSM.scala
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package vectorpipe

import java.sql.Timestamp

import com.vividsolutions.jts.{geom => jts}
import org.locationtech.jts.{geom => jts}
import geotrellis.vector._
import org.apache.log4j.Logger
import org.apache.spark.sql._
Expand Down
2 changes: 1 addition & 1 deletion src/main/scala/vectorpipe/internal/package.scala
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package vectorpipe

import java.sql.Timestamp

import com.vividsolutions.jts.{geom => jts}
import org.locationtech.jts.{geom => jts}
import geotrellis.vector._
import org.apache.log4j.Logger
import org.apache.spark.sql._
Expand Down
2 changes: 1 addition & 1 deletion src/main/scala/vectorpipe/model/AugmentedDiff.scala
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package vectorpipe.model

import java.sql.Timestamp

import com.vividsolutions.jts.{geom => jts}
import org.locationtech.jts.{geom => jts}
import geotrellis.vector.{Feature, Geometry => GTGeometry}

case class AugmentedDiff(sequence: Int,
Expand Down
4 changes: 2 additions & 2 deletions src/main/scala/vectorpipe/relations/MultiPolygons.scala
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package vectorpipe.relations
import java.sql.Timestamp

import com.vividsolutions.jts.geom.prep.PreparedGeometryFactory
import com.vividsolutions.jts.geom.{Geometry, LineString, Polygon, TopologyException}
import org.locationtech.jts.geom.prep.PreparedGeometryFactory
import org.locationtech.jts.geom.{Geometry, LineString, Polygon, TopologyException}
import org.apache.log4j.Logger
import vectorpipe.internal.WayType

Expand Down
2 changes: 1 addition & 1 deletion src/main/scala/vectorpipe/relations/Routes.scala
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package vectorpipe.relations
import java.sql.Timestamp

import com.vividsolutions.jts.geom.{Geometry, TopologyException}
import org.locationtech.jts.geom.{Geometry, TopologyException}
import org.apache.log4j.Logger
import vectorpipe.internal.WayType

Expand Down
2 changes: 1 addition & 1 deletion src/main/scala/vectorpipe/relations/package.scala
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package vectorpipe

import com.vividsolutions.jts.geom._
import org.locationtech.jts.geom._
import vectorpipe.relations.utils.{
PartialCoordinateSequence,
ReversedCoordinateSequence,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
package vectorpipe.relations.utils
import com.vividsolutions.jts.geom.{Coordinate, CoordinateSequence, Envelope}
import org.locationtech.jts.geom.{Coordinate, CoordinateSequence, Envelope}

class PartialCoordinateSequence(sequence: CoordinateSequence, offset: Int)
extends CoordinateSequence {
Expand Down Expand Up @@ -47,4 +47,6 @@ class PartialCoordinateSequence(sequence: CoordinateSequence, offset: Int)
override def size(): Int = _size

override def clone(): AnyRef = new PartialCoordinateSequence(sequence, offset)

override def copy(): PartialCoordinateSequence = new PartialCoordinateSequence(sequence, offset)
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
package vectorpipe.relations.utils
import com.vividsolutions.jts.geom.{Coordinate, CoordinateSequence, Envelope}
import org.locationtech.jts.geom.{Coordinate, CoordinateSequence, Envelope}

class ReversedCoordinateSequence(sequence: CoordinateSequence) extends CoordinateSequence {
private lazy val coordinates: Array[Coordinate] = {
Expand Down Expand Up @@ -40,4 +40,6 @@ class ReversedCoordinateSequence(sequence: CoordinateSequence) extends Coordinat
override def expandEnvelope(env: Envelope): Envelope = sequence.expandEnvelope(env)

override def clone(): AnyRef = new ReversedCoordinateSequence(sequence)

override def copy(): ReversedCoordinateSequence = new ReversedCoordinateSequence(sequence)
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package vectorpipe.relations.utils
import com.google.common.collect.{Range, RangeMap, TreeRangeMap}
import com.vividsolutions.jts.geom.{Coordinate, CoordinateSequence, Envelope}
import org.locationtech.jts.geom.{Coordinate, CoordinateSequence, Envelope}

// rather than being a nested set of CoordinateSequences, this is a mutable wrapper to avoid deep call stacks
class VirtualCoordinateSequence(sequences: Seq[CoordinateSequence]) extends CoordinateSequence {
Expand Down Expand Up @@ -111,4 +111,6 @@ class VirtualCoordinateSequence(sequences: Seq[CoordinateSequence]) extends Coor
// we're already playing fast and loose
this
}

override def copy(): VirtualCoordinateSequence = new VirtualCoordinateSequence(sequences)
}
2 changes: 1 addition & 1 deletion src/main/scala/vectorpipe/relations/utils/package.scala
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
package vectorpipe.relations
import com.vividsolutions.jts.geom.CoordinateSequence
import org.locationtech.jts.geom.CoordinateSequence

package object utils {

Expand Down
4 changes: 2 additions & 2 deletions src/main/scala/vectorpipe/util/Geocode.scala
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package vectorpipe.util

import com.vividsolutions.jts.{geom => jts}
import org.locationtech.jts.{geom => jts}
import geotrellis.vector._
import geotrellis.vector.io._
import geotrellis.vector.io.json._
Expand Down Expand Up @@ -69,7 +69,7 @@ object Geocode {
new Traversable[(geotrellis.vector.prepared.PreparedGeometry[geotrellis.vector.MultiPolygon], CountryId)] {
override def foreach[U](f: ((geotrellis.vector.prepared.PreparedGeometry[geotrellis.vector.MultiPolygon],
CountryId)) => U): Unit = {
val visitor = new com.vividsolutions.jts.index.ItemVisitor {
val visitor = new org.locationtech.jts.index.ItemVisitor {
override def visitItem(obj: AnyRef): Unit = f(obj.asInstanceOf[(geotrellis.vector.prepared
.PreparedGeometry[geotrellis.vector.MultiPolygon], CountryId)])
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ import vectorpipe.functions._
import vectorpipe.functions.osm._
import vectorpipe.internal.{VersionedElementEncoder, VersionedElementSchema}
import vectorpipe.model.Member
import com.vividsolutions.jts.{geom => jts}
import com.vividsolutions.jts.io.WKTReader
import org.locationtech.jts.{geom => jts}
import org.locationtech.jts.io.WKTReader
import org.locationtech.geomesa.spark.jts._
import vectorpipe.relations.MultiPolygons.build

Expand Down