Create an extent from database fields?
I have a database row with four fields - MinX, MinY, MaxX, MaxY - to describe the extent of a conflict area between two projects. How do I translate these fields into an actual extent that I can set my map extent with in a Workflow?
I'm using a SQL Query activity to retrieve the related database rows for the Conflicts. I'm converting my DataTable to a Featureset. I'd like to assign the Geometry of the features to the "extent" described by the four attribute fields, but I'm not sure of the syntax for creating a geometry based on these four XY coordinates so that the ResultsTable of these "features" will zoom to the extent of the conflict area when users click on them.
0
-
Get the X and Y values in variables, create a new Esri.ArcGIS.Client.Envelope (Assign activity) and set the map extent to this envelope (Set Map Extent activity). ext = New Envelope(XMin,YMin,XMax,YMax)http://help.arcgis.com/en/webapi/wpf/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.Geometry.Envelope~_ctor(Double,Double,Double,Double).html0
Please sign in to leave a comment.
Comments
1 comment