https://github.com/hhkaos/arcgis-geometry-calculations
Create and grab ArcGIS geometry calculations
https://github.com/hhkaos/arcgis-geometry-calculations
arcgis buffer esri intersection spatial-analysis
Last synced: 8 months ago
JSON representation
Create and grab ArcGIS geometry calculations
- Host: GitHub
- URL: https://github.com/hhkaos/arcgis-geometry-calculations
- Owner: hhkaos
- Created: 2022-12-30T11:16:08.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-01-13T11:42:49.000Z (almost 3 years ago)
- Last Synced: 2025-01-29T09:22:50.527Z (10 months ago)
- Topics: arcgis, buffer, esri, intersection, spatial-analysis
- Language: HTML
- Homepage: https://hhkaos.github.io/arcgis-geometry-calculations/
- Size: 380 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-arcgis-developers - arcgis-geometry-calculations - Web application to create and grab ArcGIS geometry calculations. (Helpers)
README
# arcgis-geometry-calculations
[This tool](https://hhkaos.github.io/arcgis-geometry-calculations/) 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](https://youtu.be/dkEt_dz8KZA).
> **(1)** Feature services have a ["distance" parameter](https://developers.arcgis.com/documentation/mapping-apis-and-services/data-hosting/services/feature-service/#distance) 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](https://hhkaos2.maps.arcgis.com/home/item.html?id=cb1886ff0a9d4156ba4d2fadd7e8a139) that contains +5800 weather stations.
**Service url**: [Current Weather and Wind Station Data service URL](https://services9.arcgis.com/RHVPKKiFTONKtxq3/ArcGIS/rest/services/NOAA_METAR_current_wind_speed_direction_v1/FeatureServer/0).

The response of the query shown on the video was:
```json
{
"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](https://hhkaos.github.io/mercator-geographic-converter/).
## 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](https://developers.arcgis.com/documentation/mapping-apis-and-services/spatial-analysis/geometry-analysis/calculation/).