Welcome
Guest
, you are in:
<root>
EnterpriseLibrary
FDOT Security STS
FDOT_Application_Model
GisFramework
•
Login
FDOT Wiki
GisFramework
¶
Gis Framework
Fdot Wiki
Random Page
All Pages
Categories
Search the wiki
»
Back
Advanced GIS Functionality
Modified on Monday, 18 July 2011 08:39 AM
by 156.75.200.64
Categorized as
Uncategorized
The GIS Framework contains a number of GIS Functionality that is already supplied. Some of this functionality contains the ability to perform Measurements, Unit Conversions, ConvexHulls, and Geometry Encoding. {toc} ==Measurements== Measurements are supports two types of Measurements, planer and spherical. =====MeasureManager===== The class FDOT.GIS.Client.Domain.Measurement.MeasureManager automatically takes into account the spatial reference of the map and uses the correct type of measurement. The MeasureManager has a static method GetMeasureManager that returns an instance of the MeasureManager. {| class="tablesorter" ! Name !! Type !! Description |- | GetMeasureManager(Unit unit,SquareUnit squareUnit) || MeasureManager || The method takes in the Unit and Square Unit that measurements will be outputted in. |- | GetPerimeter(DataContracts.IPolygon polygon) || double || Gets the perimeter from a polygon. |- | GetPolygonArea(DataContracts.IPolygon polygon) || double || Gets the area from a polygon. |- | GetPolyLineDistance(DataContracts.IPolyline polyline) || double || Gets the distance for a polyline. |} =====Example===== (((@@var measureManager=MeasureManager.GetMeasureManager(Unit.Mile, SquareUnit.SquareMile); measureManager.GetPolygonArea(polygon); measureManager.GetPolyLineDistance(polygon);@@))) ==Unit Conversion== The framework includes the ability to do a number of unit conversions. =====UnitConversion===== {| class="tablesorter" ! Name !! Type !! Description |- | ConvertUnit(Unit from, Unit to,double distance) || double || Converts distance unit from another. |- | ConvertSquareUnit(SquareUnit from,SquareUnit to,double distance) || double || Converts a square unit from another. |} =====Example===== (((@@var converter = new UnitConversion(); var convertedMeasurement = converter.ConvertUnit(Unit.Mile, Unit.Feet, 5000);@@))) ==ConvexHull== Find the convex hull of a point set in the plane. {| class="tablesorter" ! Name !! Return Type !! Description |- | GetConvexhull(IEnumerable<IPoint> points) || [Geometry] || Creates a convex hull based on a list of points. |} =====Example===== (((@@ConvexHull.Convexhull.GetConvexhull(points);@@))) ==Geometry Encoding== The Framework contains the ability to Encode and Decode geometry to a string that has reduces the size. For more information about the about the algorithm see [http://code.google.com/apis/maps/documentation/utilities/polylinealgorithm.html|Google Encoded Polyline Algorithm]. (((@@GeometryEncoder.Encode(geometry.Points)@@))) ==See Also== {incoming}
Meta Keywords:
Meta Description:
Change Comment:
Any Questions or Comments? Email
GIS Framework Development Team
Some of the icons created by
FamFamFam
.