Re: [mapserver-users] Doubt about MapServer projections and WMS

2011-11-28 Thread Havard Tveite

Hello Jorge,

Your interpretation of the documentation seems correct.

Regarding the need for a PROJECTION object at the MAP
level:
Without it, Mapserver will generate an error message.
I agree with you that for a WMS service it seems illogical
to have to provide a PROJECTION element at the MAP level
if there are projections defined in the MAP METADATA
section.

Perhaps one of the developers can explain.

Håvard Tveite

On 11/10/2011 7:49 PM, Jorge Arévalo wrote:

Hello,


From http://mapserver.org/mapfile/projection.html


I get this:

(...) To set up projections you must define one projection object for
the output image (in the MAP object) and one projection object for
each layer (in the LAYER objects) to be projected.

(..)

Think of the MAP-level projection object as your output projection.
The EXTENT and UNITS values at the MAP-level must be in the output
projection units. Also, if you have layers in other projections (other
than the MAP-level projection) then you must define PROJECTION objects
for those layers, to tell MapServer what projections they are in.

Ok, pretty clear so far. Mapserver will render one or more data
layers. Each data layer will have its own projection, and this is
specified in the PROJECTION property of the layer object. The layers
will be render to a image map with another projection. This projection
is specified in the PROJECTION property of the MAP object, at highest
level. This is the output projection.

Now, I want to serve my maps under WMS protocol.
http://mapserver.org/ogc/wms_server.html#setup-a-mapfile-for-your-wms

So, I need to define a MAP PROJECTION. And that projection will be
used to generate a BoundingBox tag for the GetCapabilities XML
response. But, my first question: Is this the projection in which the
data will be rendered? What about if I want to serve my data in
different projections? Do I need to specify several PROJECTION objects
at MAP level?

I guess not, because I read: (...)  it is often impossible to find an
EPSG code to match the projection of your data. In those cases, the
“wms_srs” metadata is used to list one or more EPSG codes that the
data can be served in, and the PROJECTION object contains the real
PROJ4 definition of the data’s projection

So, if I understood, I specify the output projections I offer for my
data in wms_srs at WEB object level. But then, why do I need a
PROJECTION object at MAP level? I specified the projection of all my
input data in each LAYER object. Or other way:

- My input data projection is defined at LAYER level
- The output projections offered are specified in wms_srs at WEB level

Then,,, why do I need PROJECTION object at MAP level when I want to
configure my WMS server?

Sorry for the basic questions, and many thanks in advance

Best regards,



--
Håvard Tveite
Department of Mathematical Sciences and Technology, UMB
Drøbakveien 31, POBox 5003, N-1432 Ås, NORWAY
Phone: +47 64965483 Fax: +47 64965401 http://www.umb.no/imt/
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] doubt about mapserver URL: coordinate system

2010-10-07 Thread Sebastian E. Ovide
you are right. Thanks

On Wed, Oct 6, 2010 at 6:15 PM, Rahkonen Jukka jukka.rahko...@mmmtike.fiwrote:

 Hi,

 It looks like your application is calling Mapserver with native CGI
 requests and I believe you have defined some special Mapserver layer in your
 application. Try to change it to standard WMS layer.


 -Jukka Rahkonen-


 Sebastian E. Ovide wrote:

 Lähetetty: ke 6.10.2010 18:06
 Vastaanottaja: mapserver-users@lists.osgeo.org
 Aihe: [mapserver-users] doubt about mapserver URL: coordinate system

 Hi List

 I'm using OpenLayers + MapServer. With Firebug I see that OpenLayers calls
 MapServer with ULRs like this:

 http://mapserver/mapserver?layers=NAFRA_2008_final
 map=/home/gis/conf/mapserver/uk.map
 mode=map
 map_imagetype=png
 mapext=-374388.56527373+7296678.7179959+-374312.12824546+7296755.1550241
 imgext=-374388.56527373+7296678.7179959+-374312.12824546+7296755.1550241
 map_size=256+256
 imgx=128
 imgy=128
 imgxy=256+256

 Just trying to understand the coordinate system used by mapext and imgext.
 (
 it is different from than that used to call Google servers:

 http://mt0.google.com/vt/lyr...@133hl=ensrc=apix=257246y=166679z=19s=G
 )

 Is it possible to use a different coordinate system ? say for example the
 same coordinate system specified in the LAYER (in my case epsg:27700)

 thanks

 --
 Sebastian E. Ovide




-- 
Sebastian E. Ovide
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] doubt about mapserver URL: coordinate system

2010-10-07 Thread Michael Smith
Sebastian,

You can use either mapserver  or wms syntax with openlayers.

The coordinates you see are in the Google Mercator or Spherical Mercator
projection. The google coordinates are the tile references (z=19) and the x
and y should match the center point of your mapext/imgext.

To use mapserver with google mercator you¹d use the projection block at the
mapfile level of

PROJECTION
 proj=merc lon_0=0 k=1 x_0=0 y_0=0 a=6378137 b=6378137
towgs84=0,0,0,0,0,0,0 units=m no_defs
END

Mike


-- 
Michael Smith
US Army Corps of Engineers
Remote Sensing/GIS Center
Hanover, NH 




On 10/7/10 7:42 AM, Sebastian E. Ovide sebastian.ov...@gmail.com wrote:

 you are right. Thanks
 
 On Wed, Oct 6, 2010 at 6:15 PM, Rahkonen Jukka jukka.rahko...@mmmtike.fi
 wrote:
 Hi,
 
 It looks like your application is calling Mapserver with native CGI requests
 and I believe you have defined some special Mapserver layer in your
 application. Try to change it to standard WMS layer.
 
 
 -Jukka Rahkonen-
 
 
 Sebastian E. Ovide wrote:
 
 Lähetetty: ke 6.10.2010 18:06
 Vastaanottaja: mapserver-users@lists.osgeo.org
 Aihe: [mapserver-users] doubt about mapserver URL: coordinate system
 
 Hi List
 
 I'm using OpenLayers + MapServer. With Firebug I see that OpenLayers calls
 MapServer with ULRs like this:
 
 http://mapserver/mapserver?layers=NAFRA_2008_final
 map=/home/gis/conf/mapserver/uk.map
 mode=map
 map_imagetype=png
 mapext=-374388.56527373+7296678.7179959+-374312.12824546+7296755.1550241
 imgext=-374388.56527373+7296678.7179959+-374312.12824546+7296755.1550241
 map_size=256+256
 imgx=128
 imgy=128
 imgxy=256+256
 
 Just trying to understand the coordinate system used by mapext and imgext. (
 it is different from than that used to call Google servers:
 http://mt0.google.com/vt/lyr...@133hl=ensrc=apix=257246y=166679z=19s=G
 )
 
 Is it possible to use a different coordinate system ? say for example the
 same coordinate system specified in the LAYER (in my case epsg:27700)
 
 thanks
 
 --
 Sebastian E. Ovide
 
 
 

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] doubt about mapserver URL: coordinate system

2010-10-06 Thread Rahkonen Jukka
Hi,

It looks like your application is calling Mapserver with native CGI requests 
and I believe you have defined some special Mapserver layer in your 
application. Try to change it to standard WMS layer.


-Jukka Rahkonen-


Sebastian E. Ovide wrote:

Lähetetty: ke 6.10.2010 18:06
Vastaanottaja: mapserver-users@lists.osgeo.org
Aihe: [mapserver-users] doubt about mapserver URL: coordinate system
 
Hi List

I'm using OpenLayers + MapServer. With Firebug I see that OpenLayers calls
MapServer with ULRs like this:

http://mapserver/mapserver?layers=NAFRA_2008_final
map=/home/gis/conf/mapserver/uk.map
mode=map
map_imagetype=png
mapext=-374388.56527373+7296678.7179959+-374312.12824546+7296755.1550241
imgext=-374388.56527373+7296678.7179959+-374312.12824546+7296755.1550241
map_size=256+256
imgx=128
imgy=128
imgxy=256+256

Just trying to understand the coordinate system used by mapext and imgext. (
it is different from than that used to call Google servers:
http://mt0.google.com/vt/lyr...@133hl=ensrc=apix=257246y=166679z=19s=G
)

Is it possible to use a different coordinate system ? say for example the
same coordinate system specified in the LAYER (in my case epsg:27700)

thanks

-- 
Sebastian E. Ovide

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


RE: [mapserver-users] Doubt

2008-08-12 Thread Carlos Ruiz
Ramya,

Please check the FEATURE section within LAYER section.

LAYER
...
FEATURE
POINTS x y END
END
...
END

OR

LAYER

...

FEATURE
WKT POINT(2000 2500)END

...


END


Greetings from México

IC Carlos Ruiz 

--- On Tue, 8/12/08, Venkat Rao Tammineni [EMAIL PROTECTED] wrote:
From: Venkat Rao Tammineni [EMAIL PROTECTED]
Subject: RE: [mapserver-users] Doubt
To: 'ramya srinivasan' [EMAIL PROTECTED], mapserver-users@lists.osgeo.org
Date: Tuesday, August 12, 2008, 3:32 AM




 
 






Hi, 

    Please check this url. 

   

     http://mapserver.gis.umn.edu/docs/reference/vector_data/VirtualSpatialData 

   

I hope it will help you… 

Thanks and Regards 

Venkat. 

   

   



From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of ramya
srinivasan

Sent: Tuesday, August 12, 2008 1:29 PM

To: mapserver-users@lists.osgeo.org

Subject: [mapserver-users] Doubt 



   



Hi,

i will have to display point in a map given its co-ordinates.The co-ordinates
has to be given manually.What do i have to do for that? 





 

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users



  ___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users