C# Class ArcStache.VectorCache

Inheritance: System.EnterpriseServices.ServicedComponent, IServerObjectExtension, IObjectConstruct, IRESTRequestHandler
Mostrar archivo Open project: dtsagile/arcstache

Public Methods

Method Description
Construct ( IPropertySet props ) : void
CreatePolygonFromEnvelope ( IEnvelope envelope ) : IPolygon

Create a polygon from a set of

GetGeographicToWebMercatorTransformation ( ) : IGeoTransformation
GetSchema ( ) : string
HandleRESTRequest ( string Capabilities, string resourceName, string operationName, string operationInput, string outputFormat, string requestProperties, string &responseProperties ) : byte[]
Init ( IServerObjectHelper pSOH ) : void
ReleaseComObject ( object comObject ) : void

Releases the COM object.

Shutdown ( ) : void
VectorCache ( ) : System

Private Methods

Method Description
ClipFeaturesToTile ( IFeatureCursor &featureCursor, IRecordSet &recordset, IEnvelope tileEnvelope ) : void

Clip features in the recordset to the tile envelope

CreateMapServiceCacheFolderName ( ) : string

Creates the name of the map service cache folder that matches the naming convention used by AGS as seen in the arcgisserver/arcgisoutput directory

CreateRestSchema ( ) : RestResource
CreateTilePath ( int layerId, int zoomLevel, int row ) : void

Build out the path to store the tiles following Esri tile caching structure

EmptyVectorTileHandler ( NameValueCollection boundVariables, JsonObject operationInput, string outputFormat, string requestProperties, string &responseProperties ) : byte[]

Empty tile handler to support ArcGIS Flex API's TiledMapServiceLayer implementation which executes this call using a URL obtained from getTileUrl() method in the Flex layer implementation.

GeographicToWebMercatorPoint ( IPoint geographicPoint ) : IPoint
GeometryToXml ( IGeometry geometry ) : string
GetErrorResponse ( string message ) : JsonObject
GetGeometryTypeFromFields ( IFields fields ) : esriGeometryType
GetIdsOfContainedFeatureCentroids ( IRecordSet recordset, IPolygon tilePolygon ) : List
GetLayerGeometryType ( IMapLayerInfos layerInfos, int layerIndex ) : esriGeometryType
GetMapServiceUnits ( IMapServer3 mapServer ) : esriUnits
GetRecordsetFeatureCount ( IRecordSet recordset ) : int
GetSpatialReferenceFromMapService ( IMapServer3 mapServer ) : ISpatialReference
GetTableDescription ( IMapServer3 mapServer, int layerId, int zoomLevel ) : IMapTableDescription

Create a table description, which includes generalization options

ReadTileFile ( string tilePath ) : byte[]
RecordsetHasFeatures ( IRecordSet recordset ) : bool
RootResHandler ( NameValueCollection boundVariables, string outputFormat, string requestProperties, string &responseProperties ) : byte[]
SpatialReferenceToXml ( ISpatialReference sr ) : string
StrToByteArray ( string str ) : byte[]
ValidateMapServiceSpatialReference ( ) : void
VectorTileHandler ( NameValueCollection boundVariables, JsonObject operationInput, string outputFormat, string requestProperties, string &responseProperties ) : byte[]

Creates and Serves vector tiles

WriteTileFile ( byte jsonContent, string tilePath, int layerId, int zoomLevel, int row ) : void
tracePolygon ( IPolygon polygon ) : void
tracePolygonContainsPoint ( IPolygon polygon, IPoint point, int objectId = -1 ) : void

Method Details

Construct() public method

public Construct ( IPropertySet props ) : void
props IPropertySet
return void

CreatePolygonFromEnvelope() public method

Create a polygon from a set of
public CreatePolygonFromEnvelope ( IEnvelope envelope ) : IPolygon
envelope IEnvelope
return IPolygon

GetGeographicToWebMercatorTransformation() public static method

public static GetGeographicToWebMercatorTransformation ( ) : IGeoTransformation
return IGeoTransformation

GetSchema() public method

public GetSchema ( ) : string
return string

HandleRESTRequest() public method

public HandleRESTRequest ( string Capabilities, string resourceName, string operationName, string operationInput, string outputFormat, string requestProperties, string &responseProperties ) : byte[]
Capabilities string
resourceName string
operationName string
operationInput string
outputFormat string
requestProperties string
responseProperties string
return byte[]

Init() public method

public Init ( IServerObjectHelper pSOH ) : void
pSOH IServerObjectHelper
return void

ReleaseComObject() public method

Releases the COM object.
public ReleaseComObject ( object comObject ) : void
comObject object
return void

Shutdown() public method

public Shutdown ( ) : void
return void

VectorCache() public method

public VectorCache ( ) : System
return System