Galen,
We're actually currently working on setting up an indicator that will
automatically invoke ArcGIS. This will be available in the next stable
release of Urbansim.
In the meantime, there is indicator geotiff support that is not in the
"obsolete" package :). You can create a geotiff indicator in much the
same way as other indicators, given that you have installed gdal:
GeotiffMap(
source_data = source_data,
dataset_name = 'gridcell',
package = 'psrc',
attribute = 'urbansim.gridcell.number_of_jobs',
name = 'jobs',
),
GeotiffMap is defined in
opus_core.indicator_framework.image_types.geotiff_map.
The catch is that you need to have an idgrid.tiff file defined for the
package that you wish to use. This allows gdal to associate the values
with the proper gridcells or parcels. It needs to be in a directory
whose path is [package_name].indicators.geotiff_files.
Please let me know if this works for you, as the geotiff indicator is
one of the least tested indicator types.
Cheers,
Travis
p.s. On installing python-gdal: unfortunately, python-gdal has been
inconsistently updated. We have installation instructions for windows
users with python 2.4 at
http://www.urbansim.org/opus/stable-releases/opus-2006-11-21/docs/gdalinstall.html.
Galen Justus Wilkerson wrote:
> I'm passing this on to the list, since I notice there are no entries
> on "geotiff" in the archives, so perhaps this discussion will help
> people.
>
> Brian Miles pointed out this passage in the geotiff wiki page:
>
> "
> Right now in order to export a GeoTIFF indicator to begin with, it is
> necessary to do it in code (see the
> psrc.indicators.obsolete.create_single_year_indicators.py script for
> an example of how to do this). Once you have the GeoTIFF indicator
> exported to your disk, you may then use the second (2) part of this
> project which this page is dedicated to, which is the functionality
> created for ArcMap to automate map production of these previously
> created GeoTIFF indicators.
> "
>
> Given that this is in an "obselete" package, and the wiki page was
> updated some time ago, just wondering how far to pursue this.
>
> We hope to setup a mechanism to pass output to arcgis or arcobjects
> for processing.
>
> Otherwise, I will pursue exporting the .csv table and joining by grid
> id with other map layers.
>
> thanks and happy holidays,
> Galen
>
>
> ---
>
>
>
> Just trying to output an indicator as a geotiff, but getting the error
> below (i'll try to decypher more tomorrow, and play with wingIDE's
> debug features).
>
> Looks like the geotiffmap and opusGDAL packages/libraries are there.
>
> The problems seems to be with the "prototype_dataset" parameter to the
> GeotiffMap constructor. Doesn't seem to be anything in the manual
> about "prototype_dataset", or geotiff. Doesn't seem to be much in the online
> wiki about geotiff indicators either, or the user archives.
>
> http://www.urbansim.org/wiki/external/index.php/Working_with_indicators_and_ArcMAP
>
> Committed make_indicators_example.py to the repository, in:
> C:\myworkspace\chittenden\indicators
>
>
> ---
> C:\myworkspace\chittenden\indicators>python make_indicators_example.py
> Creating cache directory
> 'c:\docume~1\urbansim\locals~1\temp\opus_core_tmpk1dq8t
> \07_12_19_18_25_36'.
> Traceback (most recent call last):
> File "make_indicators_example.py", line 208, in <module>
> name = 'impervious surface'
> File
> "C:\opusworkspace-svn\opus_core\indicator_framework\image_types\geotiff_m
> ap.py", line 46, in __init__
> dir =
> directory_path_from_opus_path('%s.indicators.geotiff_files'%package)
> File "C:\opusworkspace-svn\opus_core\misc.py", line 109, in
> directory_path_fro
> m_opus_path
> exec('import %s as _start_package' % parts[0])
> File "<string>", line 1, in <module>
> ImportError: No module named None
>
>
>
>
> _______________________________________________
> Users mailing list
> Users_at_urbansim.org
> http://www.urbansim.org/mailman/listinfo/users
Received on Thu Dec 20 2007 - 11:41:19 PST
This archive was generated by hypermail 2.2.0 : Thu Dec 20 2007 - 11:41:20 PST