[Mapserver-users] Integrating MapServ with Another Existing map server.

Brent Fraser bfraser at geoanalytic.com
Wed Oct 15 10:41:46 EDT 2003


Omry,

  There are several applications that can re-project the raster:

gdal_translate - a command line program packaged with GDAL
GlobalMapper - a GUI (but scriptable) commercial package ( $180 US)
shp2img - a command line program packaged with Mapserver
and I'm sure there are plenty of others....

I use GlobalMapper, but shp2img would work as well.  Here's the syntax:

Syntax: shp2img -m [mapfile] -o [image] -e minx miny maxx maxy
                -t -l [layers] -i [format]
  -m mapfile: Map file to operate on - required.
  -i format: Override the IMAGETYPE value to pick output format.
  -t: enable transparency
  -o image: output filename (stdout if not provided)
  -e minx miny maxx maxy: extents to render - optional
  -l layers: layers to enable - optional
  -all_debug n: Set debug level for map and all layers.
  -map_debug n: Set map debug level.
  -layer_debug layer_name n: Set layer debug level.

Here are the basic steps:
1. Set up a map file with a tile index referencing your existing raster
files.
2. Set the projection of the map file to be ITM.
3. Run the shp2img command once for every desired output tile varying the
extents using the -e option.
4. Build a tile index of your new raster files.
5. Use the tile index in your RMS map file.

Brent Fraser
bfraser at geoanalytic.com


----- Original Message -----
From: "Omry Yadan" <omry at telmap.com>
To: "Ed McNierney" <ed at topozone.com>; <mapserver-users at lists.gis.umn.edu>
Sent: Wednesday, October 15, 2003 6:37 AM
Subject: RE: [Mapserver-users] Integrating MapServ with Another Existing map
server.


Using WMS was what I had in mind.
I'll check the option to re-project the raster...
Although, I am not sure how to do it, especially given that it's not a
standard projection.


-----Original Message-----
From: Ed McNierney [mailto:ed at topozone.com]
Sent: ã 15 àå÷èåáø 2003 14:19
To: Omry Yadan; mapserver-users at lists.gis.umn.edu
Subject: RE: [Mapserver-users] Integrating MapServ with Another Existing map
server.

Omry -

The Open GIS Consortium's WMS interface is very easy to use.  I would
recommend modifying your client software so it can read raster data from
a WMS server; that way you can read your "RMS" data and you'll also be
able to read from other raster systems in the future.

As far as raster performance goes, it sounds like your system only
produces maps at the client in one projection.  Whatever that projection
is, you should simply reproject all your raster data in advance and do
it once - then you don't even have to think about reprojection
performance, because you won't be doing it.

I do not think "lat/lon" is a very good projection in general, but it is
particularly unattractive when using raster data.  The spatial
distortion is pretty bad except at the equator (you can't even put an
accurate scale bar on it, unless the units are degrees) and that tends
to produce visible distortions in imagery.

- Ed

Ed McNierney
President and Chief Mapmaker
TopoZone.com
ed at topozone.com


-----Original Message-----
From: Omry Yadan [mailto:omry at telmap.com]
Sent: Wednesday, October 15, 2003 5:00 AM
To: mapserver-users at lists.gis.umn.edu
Subject: [Mapserver-users] Integrating MapServ with Another Existing map
server.

Here is the scenario of my problem:
First two definitions:
1. TMS - Telmap map server, a proprietary map server developed by the
company I work for.

2. RMS - Raster map server, the map server CGI you all know, (I know it
can
do vectors too, but I only care about the raster for now).

TMS sends vector data in a proprietary format and in a proprietary
projection to a java map client that renders it.
I need to integrate raster data from RMS into this system - more
specifically, I want to combine data from TMS with raster data from RMS,
and
to render the vector data over the raster data in the client.

My current problem is the coordinate system and units in which to
request
the raster map.
My client understands LatLong, and the proprietary projection (and can
convert from one to the other), and RMS understands LatLong and many
other
projections my client currently does not.
So one clear solution will be to use LatLong as the common coordinate
system. (Have the client request maps using LatLong bounding box - does
it
even make sense?).
Another option I see is to teach my client to convert to the projection
used
in the specific project I am working on, but it's a solution I don't
like,
because it means more development whenever I get raster data which is in
a
different coordinate system.

I would appreciate any suggestions / Insight about this issues.

Thanks.
_______________________________________________
Mapserver-users mailing list
Mapserver-users at lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users

_______________________________________________
Mapserver-users mailing list
Mapserver-users at lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users




More information about the mapserver-users mailing list