Welcome Guest, you are in: Login

FDOT Wiki

RSS RSS

GisFramework



Search the wiki
»

GeometryService WCF

RSS
Modified on Thursday, 14 July 2011 03:33 PM by 156.75.200.64 Categorized as Service Calls
The GeometryService contains utility methods, which provide access to sophisticated and frequently used geometric operations.


Project

Projects an array of input geometries from an input spatial reference to an output spatial reference.

ProjectOptions

NameTypeDescription
GeometriesGeometryOptionsThe Geometries that are be projected.
InSpatialReferenceSpatialReferenceThe input Spatial Reference
OutSpatialReferenceSpatialReferenceThe output Spatial Reference

Example


var geometryOption = new GeometryOptions
    {
        Geometeries = new[]
                      {
                          new Geometry {X = -117, Y = 34}
                      },
        GeometryType = GeometryTypes.Point
    };

var options = new ProjectOptions
    {
        InSpatialReference = new SpatialReference { WellKnownId = "4326" },
        OutSpatialReference = new SpatialReference { WellKnownId = "102113" },
        Geometries = geometryOption
    };

var svs = new GeometryService();
svs.Project(options);

Simplify

Simplify permanently alters the input geometry so that the geometry becomes topologically consistent. This resource applies the ArcGIS simplify operation to each geometry in the input array.

Buffer

The result of this operation is buffer polygons at the specified distances for the input geometry array.

Areas and lengths

This operation calculates areas and perimeter lengths for each polygon specified in the input array.

Relation

This operation determines the pairs of geometries from the input geometry arrays that participate in the specified spatial relation.

Label Points

This operation calculates an interior point for each polygon specified in the input array. These interior points can be used by clients for labeling the polygons.

See Also

Any Questions or Comments? Email
Some of the icons created by FamFamFam.