[mapserver-users] OGR Support for TIGER 2000 Data?
Jeff McKenna
mckenna at dmsolutions.ca
Mon Aug 6 12:21:24 PDT 2001
> > I'm trying to use the current (nightly) build of MS 3.5 with OGR
> > support. I'm working with the GDAL-1.1.5 distribution and I can't get
> > it to read TIGER 2000 data I just downloaded from the Census Bureau's
> > site. This is on a Windows 2000 system, and OGR otherwise seems OK
> (as
> > far as I can tell) - I'm using the current GDAL11.DLL.
> >
> > Running ogrinfo on a file ("ogrinfo tgr25001.rt1") in the current
> > directory reports "Unable to open datasource 'tgr25001.rt1' with the
> > following drivers..." (and TIGER is listed).
> >
Hi Ed,
Thanks for reporting this to us. What we've found is that for TIGER
files the OGR Connection string is actually:
<dataset_directory>,<layer_index>.
For example:
CONNECTIONTYPE OGR
CONNECTION "data/tgr25001,5"
OGRINFO also takes a directory (e.g. "ogrinfo tgr25001").
A small demo of this is now live at
http://www2.dmsolutions.ca/msapps/tig_demo/demo_init.html. There is a
link to the demo's map file if you're curious to see its layer
definitions.
I am making the necessary additions to the OGR HOWTO as we speak, so
that should be available very soon.
--
Jeff McKenna
GIS Specialist
DM Solutions Group Inc.
Ottawa, Ontario
http://www.dmsolutions.ca/
More information about the MapServer-users
mailing list