ArcREST help documents has been updated with the latest release last week!
It can be found here. (http://esri.github.io/ArcREST/index.html)
As always check out the project here: http://www.github/com/Esri/ArcREST
Friday, February 19, 2016
Thursday, January 7, 2016
Opendata Added to ArcREST
I am very proud to say that the open data REST has been added to ArcREST. OpenData sites hosted on ArcGIS.com allow groups to share authoritative information to users with just a few clicks on their site.
Here is a simple usage example:
The other big thing that you can do with the open data API is export information:
Hope you enjoy searching and exporting the Open Data site!
ArcREST can be found here.
ArcREST Issues should be logged here.
import arcrest
url = "http://opendata.arcgis.com"
opendata = arcrest.opendata.OpenData(url=url)
#Search by Query
searchResults = opendata.search(q="parcels")
print (searchResults)
The other big thing that you can do with the open data API is export information:
import arcrest
url = "http://opendata.arcgis.com"
itemId = "f59603825818413f87d9d819c3acff88_0"
opendata = arcrest.opendata.OpenData(url=url)
item = opendata.getDataset(itemId=itemId)
print (item.export(outFormat="kml", outFolder=r"c:\temp4"))
#supports: 'shp', 'kml', 'csv', and 'geojson' in the outFormat parameter.
Hope you enjoy searching and exporting the Open Data site!
ArcREST can be found here.
ArcREST Issues should be logged here.
Monday, November 30, 2015
Unique Values from NumPy Array
Here is a quick example of how to get a unique value list from a numpy array.
from __future__ import print_function
import numpy as np
values = [['a', 'b', 'c'],
['e', 'b', 'd'],
['a', 'b', 'c']]
np_array = np.array(values)
print (np.unique(np_array[:,1], return_index=False))
# should see: ['b']
Enjoy!
Friday, November 6, 2015
Extending Python 3.x (online resource)
Who doesn't love C++/C, I sure do....
Here is a great guide to developing all your c/c++ extension here (https://docs.python.org/3.4/extending/).
Happy Coding!
Here is a great guide to developing all your c/c++ extension here (https://docs.python.org/3.4/extending/).
Happy Coding!
Labels:
C++,
Programming,
Python Add-ins
Great Blog to Follow (Dan Patterson's GeoNet Blog)
If you have used any ArcGIS software over the years, and asked a question on the Esri or GeoStackExchange Forums you have probably encountered Dan Patterson. He has a great blog, which is full of knowledge any programmer, cartographer or GIS analyst should know.
I don't know the man, but I love reading his posts. I am sure you will too.
The web address is: https://geonet.esri.com/blogs/dan_patterson
Enjoy.
Labels:
ArcGIS,
Programming,
Python
Tuesday, October 27, 2015
ArcREST Help Documentation
ArcREST finally has hosted documentation. Check it out here (http://esri.github.io/ArcREST/index.html)!
Keep on coding.
Keep on coding.
Subscribe to:
Posts (Atom)