[mapserver-users] extents/coords questions
Daniel Morissette
morissette at dmsolutions.ca
Fri Aug 17 05:59:17 PDT 2001
Hi Drew,
Drew wrote:
>
> 1. What's the best way to get the extents of my map, I have 1000's of tiles
> in a directory, and also a tileindex file. My current extents appear to be
> off, as the bounding box on my reference map is way off.
>
Running OGRINFO on the tileindex file would return you the extent of the
tileindex which is also the extent of all your files.
> 2. How do I plot things on my map based on a list of 100 or so coordinates?
> I'm not sure if there is any coordinate data in my shapefiles, and if there
> is, what format it is in. How do I find out? Do I need to?
>
Again, try OGRINFO to dump the contents of the shapefile and you'll see
if it's a point, line or polygon file and then you can set your map
layer accordingly.
See the OGR-HOWTO on the MapServer website for examples using OGRINFO.
--
------------------------------------------------------------
Daniel Morissette morissette at dmsolutions.ca
DM Solutions Group http://www.dmsolutions.ca/
------------------------------------------------------------
Don't put for tomorrow what you can do today, because if
you enjoy it today you can do it again tomorrow.
More information about the MapServer-users
mailing list