|
|
Line 1: |
Line 1: |
| [[Category:ESRI]] | | I am resurrecting this page to document WPS (Web Processing Service) first in [[GeoServer]] and later on in ArcGIS Enterprise. |
|
| |
|
| Online help: http://webhelp.esri.com/arcgisdesktop/9.1/index.cfm
| | I used to have tips here for ArcGIS Geoprocessing using Python. It was so outdated I removed it. |
| | I have separate pages on building and using GDAL and PostGIS, see the GIS category. |
|
| |
|
| Different ways to do geoprocessing in ArcGIS
| | I built a Docker Compose GeoServer for testing, and I have added plugins to it for WPS. |
|
| |
|
| # Basic stuff the buffering in ArcMap
| | == Use case: Select adjacent taxlots == |
| # From ArcToolbox in either ArcMap or ArcCatalog
| |
| # Command line, either a shell or from a command window in ArcCatalog; if you run it in an ArcCatalog window it helps you type the right args. Not quite sure why anyone would want to use the command line this way...
| |
| # [[Model Builder]] can be used to invoke standard tools or to call your scripts.
| |
| # Scripting usually with [[Python]], then calling scripts from one of the above methods.
| |
|
| |
|
| == TIPS ==
| | # User selects a taxlot in the Javscript client. |
| | # User clicks the "buffer" button. |
| | # This causes adjacent taxlots to be selected. |
|
| |
|
| === ArcCatalog Tools->Options->Geoprocessing ===
| | I have to look at GeoMoose to see how their UI works for all the various buffering options but this is just the initial test case. |
|
| |
|
| Check the box to allow overwriting of files, so that you don't end up creating numbered files like water_1 and allstreets_3
| |
|
| |
|
| Set your default tools directory to something reasonable.
| |
|
| |
|
| === ESRI ===
| | [[Category:GIS]] |
| | |
| See also [[Model Builder]]
| |
| | |
| 27-Jun-2011 At ArcGIS release 10 they realized [[ArcPy]] which was a huge step up. It's pythonic now.
| |
| | |
| 31-Dec-2007 update: ArcGIS Desktop 9.3 includes a new python wrapper module that makes working with ArcObjects a lot easier. I am using ActiveState 2.4.3 with it with good results. It breaks if you try to move up to 2.5.1.
| |
| | |
| You now just use the python line "import arcgisscripting" instead of directly invoking the COM dispatch thing.
| |
| | |
| ====Old notes from ArcGIS 9.1 ====
| |
| | |
| This guy seems to have slogged through a lot of development with it and collected useful notes: http://www.ollivier.co.nz/support/python.shtm
| |
| | |
| I can add a new one to his list. I was getting error messages on setting gp.workspace = 'foo' where ''foo'' is a valid path. It's because the gp object was hanging around in pythonwin's memory. You should be able to say 'del gp' but I gave up and restarted pythonwin to fix it.
| |
| | |
| When working with ArcToolbox 9.1 and Python 2.1 I have been having lots of crashes in PythonWin. Using it on a computer with ActiveState 2.4.3 I have not been experiencing the same problems. I am going to try installing 2.4x without removing 2.1 so I can fall back on it... I followed the instructions above.
| |
| | |
| It still crashes. Oh joy. It does not even crash faster.
| |
| | |
| == Open source ==
| |
| | |
| ESRI has broken down and started to use http://www.gdal.org OGR/GDAL] for some things. I need to get the Python bindings installed...
| |
| | |
| '''23-Aug-2006''' Python+OGR probably not worth messing with right now.
| |
| From the OGR site: ''The Python API isn't really well documented at this time, but parallels the C/C++ APIs. The interface classes can be browsed in the pymod/ogr.py (simple features) and pymod/osr.py (coordinate systems) python modules. The pymod/samples/assemblepoly.py sample script is one demonstration of using the python API.''
| |
| | |
| === ArcGIS 10 + Python + GDAL ===
| |
| | |
| See [[How I build GDAL for Windows]]
| |
| | |
| === FWTools ===
| |
| | |
| [http://fwtools.maptools.org/ FWtools] installs a GUI called OpenEV_FW and a shell environment. It comes with python 2.3.4 which is old. I think Frank does this because it's stable and test with his tools. Going to a newer version means the DLL won't work so you'd need to compile your own.
| |
I am resurrecting this page to document WPS (Web Processing Service) first in GeoServer and later on in ArcGIS Enterprise.
I used to have tips here for ArcGIS Geoprocessing using Python. It was so outdated I removed it.
I have separate pages on building and using GDAL and PostGIS, see the GIS category.
I built a Docker Compose GeoServer for testing, and I have added plugins to it for WPS.
Use case: Select adjacent taxlots
- User selects a taxlot in the Javscript client.
- User clicks the "buffer" button.
- This causes adjacent taxlots to be selected.
I have to look at GeoMoose to see how their UI works for all the various buffering options but this is just the initial test case.