[mapserver-users] Using OGR with a TILEINDEX layer
Frank Warmerdam
warmerdam at pobox.com
Fri Dec 3 10:43:52 PST 2010
Brent Fraser wrote:
> I used ogrtindex to create a tileindex shapefile with absolute paths but
> get an error in mapserver v5.6.1 when attempting to use it:
>
> msDrawMap(): Image handling error. Failed to draw layer named
> 'LINE'.
> msOGRFileOpen(): OGR error. Open failed for OGR connection in layer
> `LINE'. File not found or unsupported format
>
> LAYER
> NAME "index_west"
> TYPE TILEINDEX
> DATA "G:\GeoData\1_250k\Alberta\AltaLIS\250k_west.shp"
> END
>
>
> LAYER # LINE
> NAME 'LINE'
> STATUS on
> TYPE LINE
> TILEINDEX "index_west"
> CONNECTIONTYPE OGR
> # CONNECTION 'G:\GeoData\1_250k\Alberta\AltaLIS\82opos.dgn' # entities'
>
> INCLUDE "AltaLIS_250k_render_inc.map"
> END
>
> Does OGR work when referencing a TILEINDEX?
Brent,
I don't have an authoritative answer, but a brief skim of mapogr.cpp seems
to suggest that it only supports tileindexes in OGR supported formats and
not in a separate layer. So, the answer seems to be no, though you should
be able to just specify the 250k_west.shp file directly as your tileindex
in the main OGR layer.
It would be desirable to rework mapogr.cpp to support the current more
general concept of tileindexes but it might be a non-trivial amount of work
and significant care would be required to avoid backward compatibility
problems.
Best regards,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush | Geospatial Programmer for Rent
More information about the MapServer-users
mailing list