Projects the geometries locally.
An array of geometries which needs to be projected.
outSR The spatial reference to which the geometries should be converted
A function to be called after the geometries have been projected.
The error callback function.
Converts a specified number of meters on the current map given the current coordinate system (geographic or projected) to the corresponding number of map points.
Creates and returns a circle with given specifications
Creates a tolerance envelope around a point. Only applies to points; other geometries are returned as-is.
The map instance.
The geometry to create an envelope for.
A positive integer that defines the maximum number of pixels away from the point geometry. Determines the width of the generated envelope.
Split polyline or polygon geometries where they cross the cutter polyline.
The polyline or polygon geometries to cut.
The polyline used to cut the geometries.
The {@link geocortex.framework.application.Application}.
Separate a multi-part geometry into a list of individual geometries.
The geometry to separate.
Converts an extent to a polygon.
Fixes the aspect ratio, such that the width or height of the envelope is expanded so that the aspect ratio of the envelope matches that of the reference envelope.
A new envelope with the width or height adjusted to match the aspect ratio of the reference envelope.
Retrieves the datum transform to be used when projecting geometries between the specified spatial references, and whether to transform forward.
The spatial reference you are projecting from.
The spatial reference you are projecting to.
An object with the properties transformation
and transformForward
, relating to the datum transform for the given spatial reference parameters.
Returns the type of ESRI geometry
Returns the ESRI geometry service
The {@link geocortex.framework.application.Application}
Returns the ArcGis version that the geometry service is hosted on. Returns null if unable to resolve. The resultant promise is never rejected. If no geometry service url is provided, will retrieve version of default geometry service configured in the app.
The {@link geocortex.framework.application.Application}
Returns an approximation of the center point of the given geometry, as measured in Cartesian space.
The geometry whose center needs to be returned
Returns the midpoint of the line segment defined by two endpoints.
The beginning point of the line segment.
The ending point of the line segment.
Returns a positive integer hash (as a string) for a given esri.Graphic
an esri.geometry.Geometry or esri.Graphic containing a geometry
Determines whether or not the geometries intersect.
The geometry that is tested for the intersects relationship to the other geometry.
The geometry being intersected.
A promise for whether or not the geometries intersect.
Returns true if a given geometry is valid, false otherwise.
The geometry to test.
Determines if there requires a projection to go between a given Spatial Reference and the current application instance.
The geometry we would like to determine if it needs to be projected
An instance of the application (used to get the current map spatial reference).
Compares two point geometries for equality. Returns true if both Point structures contain the same X, Y values and spatial reference; otherwise, false.
Projects the geometries provided in the projectParameters.
The project parameters (see http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi/projectparameters.htm).
The callback function for success (http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi/geometryservice.htm#onProjectComplete).
The error callback function.
An instance of the application (used to get the url to the geometry service).
Projects a geometry from one coordinate system to another (well-known) coordinate system, firing a failure callback on error.
The geometry to project.
The spatial reference of the target coordinate system.
The callback function for success (http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi/geometryservice.htm#onProjectComplete).
The error callback function.
An instance of the application (used to get the url to the geometry service).
Projects a geometry from one coordinate system to another (well-known) coordinate system with a transformation, firing a failure callback on error.
The geometry to project.
The spatial reference of the target coordinate system.
The WKID for the transformation to be applied.
The callback function for success (http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi/geometryservice.htm#onProjectComplete).
The error callback function.
An instance of the application (used to get the url to the geometry service).
Registers the datum transform to be used when projecting geometries between the specified spatial references.
An array of datum transforms to add to the registry
Registers default datum transforms. This includes RD New (28992), British National Grid (27700), and Czech S-JTSK(102067).
Simplify a polygon.
A single esri.geometry.Polygon.
A function to be called with a simplified polygon once completed.
The error callback function.
An instance of the application (used to get the url to the geometry service).
Simplify the polygons.
An array of esri.geometry.Polygons.
A function to be called with the set of simplified polygons once completed.
The error callback function.
An instance of the application (used to get the url to the geometry service).
Converts an envelope to a ring.
Unions an array of given geometries. All inputs must be of the same type of geometries and share one spatial reference.
The array of geometries to union
Optional. The 'app' object is optional. It needs to be specified for this function to work in IE9 and IE10. (See GVH-16461 and GVH-16256)
This "protected" method is deprecated. Use the public "getGeometryService" instead. This is being retained in order to avoid breaking external/services code that may be using it.