[Mapserver-users] shape file reprojection on the fly.

Amit S BEHERE abehere at cs.ucsd.edu
Thu Feb 5 16:06:03 PST 2004


I am talking about WMS (for now) i.e the WMS GetMap Request. Do you mean
that I can specify a list of epsg codes in the wms-srs parameter so that
as long as the WMS getMap request has one of those codes for srs it will
return the right image ?

to put the problem more clearly

1. I have a map file with several layers.
2. I have set it up as a WMS server
3. It has a certain output projection defined in the map object
4. Each layer has a projection for the data that layer uses.
5. I can send OGIS WMS GetMap request to my mapservice. One of the
request parameters is SRS. As long as I give the SRS the same as the espg
code I specified in the map object, I assume everything works fine (haven't tried
it yet!)
6. I specify a list of epsg codes in the wms-srs parameter.
7. Does that mean that as long as I sent OGIS WMS getmap request with srs
that exists in the list I specfied in the above step I would get
the correct image back? Is this right and am I even making any sense?

This projection stuff is a little bit confusing!


Amit Behere.
UCSD.
"Technology doesn't make your life more difficult or easy, it just changes
the rules"......Vishwanathan Anand


On Thu, 5 Feb 2004, Pericles Nacionales wrote:

>
> Can of worms, I tell you... :)
>
> When you say OGIS are you talking about WMS/WFS?  If so, that's where the
> METADATA "wms_srs" parameter is for.  Specify the epsg codes for all
> projections you want supported.  Perhaps the wms folks can confirm this?
>
> See http://mapserver.gis.umn.edu/doc40/wms-server-howto.html for more
> info.
>
> -Perry
>
> On Thu, 5 Feb 2004, Amit S BEHERE wrote:
>
> > Hi,
> >
> > I have an additional question on this one. I understand that the
> > projection in the MAP object is the output projection. However say I have
> > a map with a few layers and I want to do a OGIS get map request on one or
> > more
> > layer(s). So unless I do the request in the same SRS as the one defined on
> > the map object I am not going to get useful stuff back. Is that right ?
> > So whats the use of the SRS field in the OGIS Getmap request ?
> >
> > Is there any way I can send th OGIS getmap request with an srs thats
> > different from the one specified on the map object and have it return the
> > correct image.
> >
> >
> > -Amit
> >
> >
> > Amit Behere.
> > UCSD.
> > "Technology doesn't make your life more difficult or easy, it just changes
> > the rules"......Vishwanathan Anand
> >
> >
> > On Wed, 4 Feb 2004, Pericles S. Nacionales wrote:
> >
> > > Correct.  The projection definition on the main MAP object is your
> > > output projection and the projection definition in your LAYER object is
> > > whatever projection your data is in.  See
> > > http://hypnos.cbs.umn.edu/projects/tutorial/example1-6.html for an
> > > example.
> > >
> > > -Perry
> > >
> > > On Wed, 2004-02-04 at 16:30, Jason M. Nielsen wrote:
> > > > To reproject shape files on the fly can you simply define a projection for the
> > > > main portion of your map and then also provide one in the definition of a layer?
> > > > Resulting in the proj in the layer def being transformed to the one in the main
> > > > part of the map file.
> > > >
> > > > Someone beat me with a clue stick if I am off in left field on this.
> > > >
> > > > -------------------------------------------------
> > > > This mail sent through IMP: http://horde.org/imp/
> > > > _______________________________________________
> > > > Mapserver-users mailing list
> > > > Mapserver-users at lists.gis.umn.edu
> > > > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
> > > --
> > > "He's no geek.His tan's too good." -Benjamin Choate
> > >
> > > _______________________________________________
> > > 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