Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prototype using builder strategy object and general purpose vector ma…
…p output format
- Loading branch information
Gabriel Roldan
committed
Jun 19, 2015
1 parent
0cc9da3
commit b73a428
Showing
10 changed files
with
542 additions
and
213 deletions.
There are no files selected for viewing
33 changes: 33 additions & 0 deletions
33
...ommunity/vectortiles/src/main/java/org/geoserver/wms/topojson/TopoJSONBuilderFactory.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,33 @@ | |||
package org.geoserver.wms.topojson; | |||
|
|||
import java.awt.Rectangle; | |||
import java.util.Set; | |||
|
|||
import org.geoserver.wms.vector.VectorTileBuilder; | |||
import org.geoserver.wms.vector.VectorTileBuilderFactory; | |||
import org.geotools.geometry.jts.ReferencedEnvelope; | |||
|
|||
import com.google.common.collect.ImmutableSet; | |||
|
|||
public class TopoJSONBuilderFactory implements VectorTileBuilderFactory { | |||
|
|||
public static final String MIME_TYPE = "application/json;type=topojson"; | |||
|
|||
public static final Set<String> OUTPUT_FORMATS = ImmutableSet.of(MIME_TYPE, "topojson"); | |||
|
|||
@Override | |||
public Set<String> getOutputFormats() { | |||
return OUTPUT_FORMATS; | |||
} | |||
|
|||
@Override | |||
public String getMimeType() { | |||
return MIME_TYPE; | |||
} | |||
|
|||
@Override | |||
public VectorTileBuilder newBuilder(Rectangle screenSize, ReferencedEnvelope mapArea) { | |||
return new TopologyBuilder(screenSize, mapArea); | |||
} | |||
|
|||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
156 changes: 0 additions & 156 deletions
156
...mmunity/vectortiles/src/main/java/org/geoserver/wms/topojson/TopoJSONMapOutputFormat.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.