Esri Developer Summit 2018
Another GIS Blog
by Andrew
3y ago
See me live and in-person at the Esri DevSummit 2018! Tomato's optional. Like Pokemon, you gotta catch them all. Copyright AJC ..read more
Visit website
ArcGIS API for Python
Another GIS Blog
by Andrew
3y ago
Sorry for not posting folks, but I've been busy working on the ArcGIS API for Python. For those who don't know I wrote ArcREST with another colleague of mine, Mike.  Since the announcement of the ArcGIS API for Python, we have decided to retire ArcREST, though if pull requests are submitted to fix critical issues, we will do our best to merge them.   So what does that leave the people with to work with the REST API?  There is a great package from Esri, the ArcGIS API for Python.  Get it here (https://developers.arcgis.com/python/guide/install-and-set-up/).   It ..read more
Visit website
Microsoft Compiler for Python 2.7
Another GIS Blog
by Andrew
3y ago
Doesn't everyone hate this message:  Microsoft Visual C++ 9.0 is required (Unable to find vcvarsall.bat). I sure do, and I solved it by downloading a helpful program from Microsoft!  Don't believe me, just google it!  Install Microsoft's compiler for Python 2.7 from here: https://www.microsoft.com/en-us/download/details.aspx?id=44266 and most of the pip installs should work! Enjoy Copyright AJC ..read more
Visit website
So long VBA and Thanks for all the Memories
Another GIS Blog
by Andrew
3y ago
Microsoft has stopped providing fixes or troubleshooting for VB and VBA.  Esri just announced the same in the 10.5 release.  It's time to update that old code. Some options moving forwards for your old desktop applications are: .NET Python It IS time to re-evaluate the application and see how it fits into the other development frameworks. VB/VBA is officially dead. Check out the article here: (https://blogs.esri.com/esri/arcgis/2016/11/14/arcgis-desktop-and-vba-moving-forward/) Copyright AJC ..read more
Visit website
Configuring Juypter Notebook Startup Folder
Another GIS Blog
by Andrew
3y ago
By default when you install jupyter notebook (formally iPython), the product will point to Window's My Document folder.  I find this to be less than optimal because My Documents can contain a mishmash of various documents.  To change the start up directory, there is a run time option where you can specify a folder, but that is not a permanent solution.  A better solution is to create a configuration file. After Jupyter is installed (I used anacoda's distribution of Python 3.5), navigate to the folder containing the jupyter.exe Type the following: jupyter notebook --generate-c ..read more
Visit website
Panda Dataframe as a Process Tracker (postgres example)
Another GIS Blog
by Andrew
3y ago
Sometimes you need to keep track of the number of rows processed for a given table. Let's assume you are working in postgres and you want want to do row by row operations to do some sort of data manipulation.  Your user requires you to keep track of each row's changes and wants to know the number of failures with the updates and the number of successful updates. The output must be in a text file with pretty formatting. There are many ways to accomplish this task, but let's use Pandas, arcpy.da Update Cursor, and some sql ..read more
Visit website
More on Pandas Data Loading with ArcGIS (Another Example)
Another GIS Blog
by Andrew
3y ago
Large datasets can be a major problem with systems that are running 32-bit Python because there is an upper limit on memory use: 2 GB.  Most times programs fail before they even hit the 2 GB mark, but there it is. When working with large data that cannot fit into the 2 GB of RAM, how can we push the data into DataFrames? One way is to chunk it into groups: #-------------------------------------------------------------------------- def grouper_it(n, iterable):     """     creates chunks of cursor row objects to make the memory     footprint more manageable ..read more
Visit website
Reading Spatial Data Into a Pandas Dataframe
Another GIS Blog
by Andrew
3y ago
At 10.4.x scipy is included in your basic python install, which is great! Working with Pandas DataFrame can make life easy, especially if you need to do it quickly. import arcpyimport pandas as pdimport sys#--------------------------------------------------------------------------def trace(): """ trace finds the line, the filename and error message and returns it to the user """ import traceback tb = sys.exc_info()[2] tbinfo = traceback.format_tb(tb)[0] # script name + line number line = tbinfo.split(", ")[1] # Get Python syntax error # syn ..read more
Visit website
ArcREST is now on PyPi
Another GIS Blog
by Andrew
3y ago
Installing ArcREST just got easier because you can use pip. It's easy as: pip install arcrest_package Enjoy to much fanfare. Copyright AJC ..read more
Visit website
ArcREST 3.5.3 Help Now Online
Another GIS Blog
by Andrew
3y ago
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 Copyright AJC ..read more
Visit website

Follow Another GIS Blog on FeedSpot

Continue with Google
Continue with Apple
OR