public abstract class AbstractVectorTileProviderBase extends java.lang.Object implements MapProvider, TiledVectorProvider, ProviderContextAware, Disposable
| Modifier and Type | Field and Description |
|---|---|
protected static double |
DEFAULTDPI |
protected MapParameter |
defaultMapParameter |
protected double |
dpi |
| Constructor and Description |
|---|
AbstractVectorTileProviderBase() |
| Modifier and Type | Method and Description |
|---|---|
void |
clearCache(java.lang.String mapName, Rectangle2D bounds)
Clears the cache corresponding to a specified area.
|
QueryResult |
findNearest(java.lang.String mapName, Geometry geometry, double maxDistance, QueryParameterSet queryParameterSet)
Queries the nearest geometric object on a specified map whose distance to a specified geometry is within a certain value.
|
MapParameter |
getDefaultMapParameter(java.lang.String mapName)
Gets the default map parameters of the specified map.
|
MapImage |
getMapImage(MapParameter mapParameter, ImageOutputOption outputOption)
Gets map images according to map parameters and image output settings.
|
protected MapParameter |
getMapParameter(MapMetaData metaData)
Gets the status of a map (the map parameters) after outputting map images last time.
|
java.lang.String |
getMVTSpriteJson(java.lang.String spriteName)
Gets the json of the MVT Sprite.
|
byte[] |
getMVTSpriteResource(java.lang.String spriteName)
Gets the resource of the MVT Sprite.
|
byte[] |
getMVTTile(VectorTileParameter vectorTileParameter)
Gets the mvt tile.
|
java.util.List<java.lang.String> |
getNames()
Gets all the map names corresponding to the current map service provider.
|
Overview |
getOverview(MapParameter mapParameter, ImageOutputOption outputOption)
Gets eagle-eye map according to map parameters and image output settings.
|
java.lang.String |
getResource(java.lang.String mapName, ResourceParameter resourceParameter)
Gets the resource image of a specified map according to a resource image parameter.
|
byte[] |
getResource(java.lang.String mapName, ResourceParameter resourceParameter, Point2D[] points)
Gets the resource image of a specified map according to a resource image parameter.
|
byte[] |
getSDFFonts(java.lang.String fontstack, java.lang.String range)
Gets data of sdf format.
|
byte[] |
getSymbolData(java.lang.String symbolId, OutputFormat format)
Gets the symbol image.
|
VectorStyle |
getVectorStyle(java.lang.String mapName, java.lang.String[] layerNames, VectorStyleType type)
Gets the specified vector layer style in the specified map.
|
VectorTileData |
getVectorTile(VectorTileParameter vectorTileParameter)
Gets vector tile of the map.
|
java.lang.String[] |
listMVTSprites()
Lists all the Sprites names of the MVT.
|
MeasureResult |
measureArea(java.lang.String mapName, Point2D[] points, MeasureParameter measureParam)
Measures areas on a specified map based on 2D geographic coordinates and a measuring parameter.
|
MeasureResult |
measureDistance(java.lang.String mapName, Point2D[] points, MeasureParameter measureParam)
Measures distances on a specified map based on 2D geographic coordinates and a measuring parameter.
|
protected double |
pixelToMillMeter(int pixel) |
QueryResult |
queryByBounds(java.lang.String mapName, Rectangle2D bounds, QueryParameterSet queryParameterSet)
Queries the geometries in the specified range on the map.
|
QueryResult |
queryByDistance(java.lang.String mapName, Geometry geometry, double distance, QueryParameterSet queryParameterSet)
Queries all the geometric objects on a specified map whose distances to a specified geometry are within a certain value.
|
QueryResult |
queryByGeometry(java.lang.String mapName, Geometry geometry, SpatialQueryMode spatialQueryMode, QueryParameterSet queryParameterSet)
Queries geometric objects that satisfy a certain spatial relationship with a specified geometric object and meet query conditions on a specified map.
|
QueryResult |
queryByKeywords(java.lang.String mapName, KeywordsQueryParameterSet queryParameterSet)
Querys the features on the map based on the keywords.
|
QueryResult |
queryBySQL(java.lang.String mapName, QueryParameterSet queryParameterSet)
Performs SQL query on specified map.
|
MapParameter |
setDefaultMapParameter(MapParameter mapParameter)
Sets the default map parameters.
|
boolean |
updateMap(MapParameter mapParameter)
Updates the map status permanently, which will do a persistence in the disk.
|
void |
updateVectorStyle(java.lang.String layerName, VectorStyleType type, java.lang.String style)
Updates the vector tile style according to the input layer name and the input vector style type.
|
MapImage |
viewEntire(java.lang.String layerName, MapParameter mapParameter, ImageOutputOption outputOption)
Displays a map in the Full Extent mode according to map layer name, map parameters and image output settings.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsupportsetProviderContextdisposeprotected static final double DEFAULTDPI
protected double dpi
protected MapParameter defaultMapParameter
protected MapParameter getMapParameter(MapMetaData metaData)
MapProviderGets the status of a map (the map parameters) after outputting map images last time.
getMapParameter in interface MapProvidermetaData - The specified map name.public MapImage getMapImage(MapParameter mapParameter, ImageOutputOption outputOption)
MapProviderGets map images according to map parameters and image output settings.
getMapImage in interface MapProvidermapParameter - Map parameters.outputOption - Image output settings.public MapParameter getDefaultMapParameter(java.lang.String mapName)
MapProviderGets the default map parameters of the specified map.
Retrieval of the initial default map parameter depends on the type of the service accessed. For example, if the GIS functions provided by SuperMap Objects Java are accessed, the initial default map parameter is obtained from a workspace file; if the GIS functions of a WMS service are accessed, the default map parameter is determined in the WMS service.
getDefaultMapParameter in interface MapProvidermapName - The map name.protected double pixelToMillMeter(int pixel)
public java.util.List<java.lang.String> getNames()
MapProviderGets all the map names corresponding to the current map service provider.
getNames in interface MapProviderpublic MeasureResult measureDistance(java.lang.String mapName, Point2D[] points, MeasureParameter measureParam)
MapProviderMeasures distances on a specified map based on 2D geographic coordinates and a measuring parameter.
measureDistance in interface MapProvidermapName - The map name.points - The array of 2D geographic coordinates.measureParam - The measuring parameter.public MeasureResult measureArea(java.lang.String mapName, Point2D[] points, MeasureParameter measureParam)
MapProviderMeasures areas on a specified map based on 2D geographic coordinates and a measuring parameter.
measureArea in interface MapProvidermapName - The map name.points - The array of 2D geographic coordinates.measureParam - The measuring parameter.public QueryResult queryByDistance(java.lang.String mapName, Geometry geometry, double distance, QueryParameterSet queryParameterSet)
MapProviderQueries all the geometric objects on a specified map whose distances to a specified geometry are within a certain value.
Which means to query all the geometries within a circle whose center is the specified geometry.
queryByDistance in interface MapProvidermapName - The map name.geometry - The geometric object.distance - The querying distance.queryParameterSet - Query parameters can query multiple layers of a map. The query parameters in a single layer can be set in queryParameterSet.queryParams[i] .public QueryResult queryByGeometry(java.lang.String mapName, Geometry geometry, SpatialQueryMode spatialQueryMode, QueryParameterSet queryParameterSet)
MapProviderQueries geometric objects that satisfy a certain spatial relationship with a specified geometric object and meet query conditions on a specified map.
queryByGeometry in interface MapProvidermapName - The map name.geometry - The geometric object, which has spatial information and shape information, but no attribute information.spatialQueryMode - The spatial query mode, which defines several spatial relationships between geometries, and it allows users to construct filter conditions to perform querying. For example, searching spatial objects which are contained in specified region object, or which have a disjoint or adjacent relationship with the specified region object.queryParameterSet - Query parameters can query multiple layers of a map. The query parameters in a single layer can be set in queryParameterSet.queryParams[i] .public QueryResult queryByBounds(java.lang.String mapName, Rectangle2D bounds, QueryParameterSet queryParameterSet)
MapProviderQueries the geometries in the specified range on the map.
queryByBounds in interface MapProvidermapName - The map name.bounds - The specified query bounds.public QueryResult queryBySQL(java.lang.String mapName, QueryParameterSet queryParameterSet)
MapProviderPerforms SQL query on specified map.
queryBySQL in interface MapProvidermapName - The map name.queryParameterSet - Query parameters can query multiple layers of a map. The query parameters in a single layer can be set in queryParameterSet.queryParams[i] .public MapParameter setDefaultMapParameter(MapParameter mapParameter)
MapProviderSets the default map parameters.
setDefaultMapParameter in interface MapProvidermapParameter - Map parameters.public MapImage viewEntire(java.lang.String layerName, MapParameter mapParameter, ImageOutputOption outputOption)
MapProviderDisplays a map in the Full Extent mode according to map layer name, map parameters and image output settings.
The full geographic map extent to display is the minimum circumscribed rectangle of the specified layer.
viewEntire in interface MapProviderlayerName - Layer name, used to determine the full map extent.mapParameter - Map parameters.outputOption - Image output settings.public Overview getOverview(MapParameter mapParameter, ImageOutputOption outputOption)
MapProviderGets eagle-eye map according to map parameters and image output settings.
getOverview in interface MapProvidermapParameter - Map parameters.outputOption - Image output settings.public QueryResult findNearest(java.lang.String mapName, Geometry geometry, double maxDistance, QueryParameterSet queryParameterSet)
MapProviderQueries the nearest geometric object on a specified map whose distance to a specified geometry is within a certain value. When limit the number of returned geometric objects (specified by QueryParameterSet.expectCount), the query result is the expectCount features nearest to the center in the records. There is no orders of expectCount.
findNearest in interface MapProvidermapName - The map name.geometry - The geometric object.maxDistance - The maximum distance, of which the unit is identical with that of the map specified with mapName parameter.queryParameterSet - Query parameters can query multiple layers of a map. The query parameters in a single layer can be set in queryParameterSet.queryParams[i] .
public void clearCache(java.lang.String mapName,
Rectangle2D bounds)
MapProviderClears the cache corresponding to a specified area.
clearCache in interface MapProviderpublic QueryResult queryByKeywords(java.lang.String mapName, KeywordsQueryParameterSet queryParameterSet)
KeywordsQueryablequeryByKeywords in interface KeywordsQueryablemapName - Map name.public VectorTileData getVectorTile(VectorTileParameter vectorTileParameter)
TiledVectorProviderGets vector tile of the map.
getVectorTile in interface TiledVectorProvidervectorTileParameter - The parameters of the vector tile.
public void updateVectorStyle(java.lang.String layerName,
VectorStyleType type,
java.lang.String style)
TiledVectorProviderupdateVectorStyle in interface TiledVectorProviderlayerName - The layer name.type - The vector style type.style - The vector tile style to be updated.
public byte[] getSymbolData(java.lang.String symbolId,
OutputFormat format)
TiledVectorProvidergetSymbolData in interface TiledVectorProvidersymbolId - Symbol id.format - Symbol format.public byte[] getMVTTile(VectorTileParameter vectorTileParameter)
TiledVectorProvidergetMVTTile in interface TiledVectorProvidervectorTileParameter - The parameters of the vector tile.public VectorStyle getVectorStyle(java.lang.String mapName, java.lang.String[] layerNames, VectorStyleType type)
MapProvidergetVectorStyle in interface MapProvidermapName - The map name.layerNames - The layer name.type - The vector style type.
public java.lang.String getResource(java.lang.String mapName,
ResourceParameter resourceParameter)
MapProviderGets the resource image of a specified map according to a resource image parameter.
getResource in interface MapProvidermapName - The map name.resourceParameter - The resource image parameter.
public byte[] getResource(java.lang.String mapName,
ResourceParameter resourceParameter,
Point2D[] points)
MapProviderGets the resource image of a specified map according to a resource image parameter.
getResource in interface MapProvidermapName - The map name.resourceParameter - The resource image parameter.points - The points used to draw resource images.public java.lang.String[] listMVTSprites()
TiledVectorProviderlistMVTSprites in interface TiledVectorProviderpublic java.lang.String getMVTSpriteJson(java.lang.String spriteName)
TiledVectorProvidergetMVTSpriteJson in interface TiledVectorProviderspriteName - Sprite name.public byte[] getMVTSpriteResource(java.lang.String spriteName)
TiledVectorProvidergetMVTSpriteResource in interface TiledVectorProviderspriteName - Sprite name.
public byte[] getSDFFonts(java.lang.String fontstack,
java.lang.String range)
TiledVectorProvidergetSDFFonts in interface TiledVectorProviderfontstack - The font name.range - Fontpublic boolean updateMap(MapParameter mapParameter)
MapProviderupdateMap in interface MapProvidermapParameter - The map status to update to.