Utility Questions
Cameron Shorter
cameron at socialchange.net.au
Wed Nov 29 13:23:19 PST 2000
Yes, and the main page of shapelib can be found at:
http://gdal.velocet.ca/projects/shapelib/index.html
Brent Fraser wrote:
>
> Kieran,
>
> 1. Shpinfo is part of the "contrib" directory of shapelib. I'll send you a
> copy of the exe file. It seems to work with long file names. (I've used it
> on NT 4.0)
>
> 2. You can invoke shp2img from a batch file. What scripting language were
> you planning to use? You must give it a map file name but you can over-ride
> on the commandline some of the map file settings:
>
> The syntax is documented as:
> shp2img -m [mapfile] -o [image] -t -l [layers]
>
> There is also an undocumented option to set the extents from the
> commandline:
> -e minx miny maxx maxy
>
> And an option to substute a different data file for a layer (can be used
> multiple times):
> -d <layer name> <data file pathname>
>
> Brent Fraser
> bfraser at geoanalytic.com
> GeoAnalytic Inc.
> #300 , 700 - 4th Avenue SW Calgary, AB
> Canada T2P 3J4
> Tel: (403)213-2700 Fax: (403)213-2707
> www.geoanalytic.com
>
> ----- Original Message -----
> From: "Kieran J. Ames" <kames at keyspanenergy.com>
> To: <mapserver-users at lists.gis.umn.edu>
> Sent: Tuesday, November 28, 2000 8:09 AM
> Subject: Utility Questions
>
> > Group,
> > I have a couple of questions that I hope someone could help me with.
> >
> > 1. I have a utility called shpinfo, but I can't remember where I got it.
> It is Ver 1.1
> > 07/15/96
> > It seems to have a problem with long file names and I was wondering if
> anyone knows of a
> > more recent version or an easy work-around (before I re-invent the wheel).
> >
> > 2. I'm trying to make small image files on the fly. I'm also trying not
> have to maintain
> > the housekeeping for small only-used-once map files or waste the time with
> the disk I/O
> > activity. Can the utility shp2img be called from a script and given
> command-line
> > parameters instead of pointing to a map file?
> >
> > I'm running WINNT 4.0
> >
> > As usual... thanks to all for any assistance.
> > Kieran
> >
--
Cameron Shorter Web Mapping Manager
Social Change Online
248 Johnson St Tel: +61 (0) 2 9692 5115
Annandale NSW 2038 Fax: +61 (0) 2 9692 5192
Sydney, Australia http://online.socialchange.net.au
More information about the MapServer-users
mailing list