-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
/
Topology.java
50 lines (35 loc) · 1.18 KB
/
Topology.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/* (c) 2015 Open Source Geospatial Foundation - all rights reserved
* This code is licensed under the GPL 2.0 license, available at the root
* application directory.
*/
package org.geoserver.wms.topojson;
import java.awt.geom.AffineTransform;
import java.util.List;
import java.util.Map;
import org.geoserver.wms.topojson.TopoGeom.GeometryColleciton;
import com.vividsolutions.jts.geom.Envelope;
import com.vividsolutions.jts.geom.LineString;
public class Topology {
private List<LineString> arcs;
private AffineTransform screenToWorld;
private Envelope envelope;
private Map<String, GeometryColleciton> layers;
public Topology(AffineTransform screenToWorld, List<LineString> arcs,
Map<String, TopoGeom.GeometryColleciton> layers) {
this.screenToWorld = screenToWorld;
this.arcs = arcs;
this.layers = layers;
}
public AffineTransform getScreenToWorldTransform() {
return screenToWorld;
}
public List<LineString> getArcs() {
return arcs;
}
public Envelope getEnvelope() {
return envelope;
}
public Map<String, TopoGeom.GeometryColleciton> getLayers() {
return layers;
}
}