Spatial Extent

705
8
03-02-2019 12:47 AM
M_DJohnson
Occasional Contributor

Please let me know how to check if any feature has a longitude value that is less than –180.00000 or greater than +180.00000

0 Kudos
8 Replies
M_DJohnson
Occasional Contributor

No one here to have a look into this.

0 Kudos
M_DJohnson
Occasional Contributor

Does anyone here

0 Kudos
FranciscoPerez1
Esri Contributor

Hello,

We apologize for the late response. Is it a line feature? If you so you can use the Evaluate Polyline Length to check if the feature is within the specified range. Is this your business scenario?

Evaluating segment, part/path, and polyline lengths—Help | ArcGIS Desktop 

0 Kudos
M_DJohnson
Occasional Contributor

Hello,

We want to perform a check for polylines, polygons and points, if any feature lat/long values not between -180, -90 and 180,90 it should be an error. In the suggested configuration between function not allowing negative values. Please suggest how to configure this check.

0 Kudos
FranciscoPerez1
Esri Contributor

You could use a python script to get the X,Y coordinates of polylines, polygons and points and then identify negative values. https://pro.arcgis.com/en/pro-app/arcpy/get-started/reading-geometries.htm 

0 Kudos
M_DJohnson
Occasional Contributor

Thank you for sharing a link. Can you please explain how to use this script in Data Reviewer ?

0 Kudos
FranciscoPerez1
Esri Contributor
  1. You can use the script to to capture the features X,Y coordinates
  2.  You can use the Select by Attributes tool to select features with negative x,y coordinates (http://desktop.arcgis.com/en/arcmap/10.3/map/working-with-layers/using-select-by-attributes.htm)
  3. You can use the selection to write the results to a Reviewer Table (http://desktop.arcgis.com/en/arcmap/10.3/tools/data-reviewer-toolbox/write-to-reviewer-table.htm
0 Kudos
M_DJohnson
Occasional Contributor

My development environment is .Net so please suggest on this.

0 Kudos