Class: GeometryE-mail This Topic Printable Version Give Us Feedback

Description

The base class for geometry objects. This class has no constructor.

Class hierarchy

esri.geometry.Geometry

Subclasses

Extent  Multipoint  Point  Polygon  Polyline  

Properties

Property Type Description
spatialReference SpatialReference The spatial reference of the geometry. See Projected Coordinate Systems and Geographic Coordinate Systems for the list of supported spatial references.
type String The type of geometry.

Methods

Method Return Value Description
setSpatialReference(sr) Geometry Sets the spatial reference.

The return value of Geometry was added at v1.4.
toJson() Object Converts object to its ArcGIS Server JSON representation.
Properties Detail

<SpatialReference> spatialReference

The spatial reference of the geometry. See Projected Coordinate Systems and Geographic Coordinate Systems for the list of supported spatial references.

<String> type

The type of geometry.
Known values: point | multipoint | polyline | polygon | extent
Methods Detail

setSpatialReference(sr)

Sets the spatial reference.

The return value of Geometry was added at v1.4.
Return value: Geometry
Input Parameters:
<SpatialReference> sr Required Spatial reference of the geometry.

toJson()

Converts object to its ArcGIS Server JSON representation.
Return value: Object