Skip to content

hhkaos/arcgis-geometry-calculations

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

arcgis-geometry-calculations

This tool allow you to easily grab the geometry resulting from a spatial geometry calculation (buffers, intersections, unions, ...). It was made to provide an additional1 way to spatial queries within ArcGIS feature services as shown in the following video.

(1) Feature services have a "distance" parameter that allow you request the service to make the spatial intersect with the buffer on the backend in your behalf.

About the demo

The service used on that video was Current Weather and Wind Station Data that contains +5800 weather stations.

Service url: Current Weather and Wind Station Data service URL.

The response of the query shown on the video was:

{
  "type" : "FeatureCollection", 
  "features" : [
    {
      "type" : "Feature", 
      "id" : 1566, 
      "geometry" : 
      {
        "type" : "Point", 
        "coordinates" : [
          -4.46999999958736, 36.6699999997956
        ]
      }, 
      "properties" : {
        "OBJECTID" : 1566, 
        "ICAO" : "LEMG", 
        "OBS_DATETIME" : 1672398000000, 
        "STATION_NAME" : "Malaga (Civ/Mil)", 
        "COUNTRY" : "Spain", 
        "ELEVATION" : 5, 
        "TEMP" : 62.6, 
        "DEW_POINT" : 48.2, 
        "R_HUMIDITY" : 59, 
        "WIND_DIRECT" : 320, 
        "WIND_SPEED" : 13, 
        "WIND_GUST" : 0, 
        "WIND_CHILL" : null, 
        "VISIBILITY" : 10000, 
        "PRESSURE" : 1027.9, 
        "SKY_CONDTN" : "Ceiling and Visibility are OK", 
        "WEATHER" : "No significant weather present at this time.", 
        "REMARKS" : null, 
        "HEAT_INDEX" : null, 
        "LATITUDE" : 36.67, 
        "LONGITUDE" : -4.47, 
        "FLT_CATEGORY" : "VFR"
      }
    }
  ]
}

Resources

Feel free to use this tool to convert projected (WKID 102100) to/from geographic coordinates (WKID 4326, a.k.a. lat/long) if needed.

Attribution

The original code that was used to make this app is at developers.arcgis.com. If you want to learn how to programmatically do geometry calculations go to Mapping APIs and location services > Spatial analysis > Geometry analysis > Geometric calculation.