[mapserver-users] pre-projection
Paul Ramsey
pramsey at refractions.net
Wed Oct 31 15:43:59 PST 2001
Bill,
Get the OGR library (you may have it already) and use the 'ogr2ogr'
utility. It'll read/write TIGER data. It'll also do reprojections. The
usage summary is this:
Usage: ogr2ogr [-skipfailures] [-f format_name]
[-where restricted_where] [-spat xmin ymin xmax ymax]
[-t_srs srs_def] [-a_srs srs_def]
[[-dsco NAME=VALUE] ...] dst_datasource_name
src_datasource_name
[-lco NAME=VALUE] [-nln name] layer [layer ...]]
-f format_name: output file format name, possible values are:
-f "ESRI Shapefile"
-f "TIGER"
-f "MapInfo File"
-f "PostgreSQL"
-where restricted_where: Attribute query (like SQL WHERE)
-spat xmin ymin xmax ymax: spatial query extents
-dsco NAME=VALUE: Dataset creation option (format specific)
-lco NAME=VALUE: Layer creation option (format specific)
-nln name: Assign an alternate name to the new layer
-a_srs srs_def: Assign an output SRS
-t_srs srs_def: Reproject/transform to this SRS on output
Srs_def can be a full WKT definition (hard to escape properly),
or a well known definition (ie. EPSG:4326) or a file with a WKT
definition.
In Frank we trust...
Paul
Brian Hill wrote:
>
> I have tiger data in geographic projection, and other data in a mercator
> projection. My output projection is the mercator projection. All the
> preceding is specified in my .map file.
>
> Does one of the MapServer utilities allow me to pre-project all the
> tiger data into the same mercator projection so that the transformation
> doesn't have to be done on-the-fly? If so, are there directions
> somewhere (something much more detailed than the discussion at
> http://mapserver.gis.umn.edu/coordinates.html ) that I can follow to do
> this operation?
>
> My goal is to make my installation perform better, and I am hoping from
> previous posts to this list that this will be the ticket. Thanks very
> much for any pointers. --Brian Hill
--
__
/
| Paul Ramsey
| Refractions Research
| Email: pramsey at refractions.net
| Phone: (250) 885-0632
\_
More information about the MapServer-users
mailing list