Re: [mapserver-users] mapserver wms: srs problem
Hi All, I'm posting further findings and observations. I made a simple mapfile and dumped the shape information to a .shp file. I have made a .zip file with all of the components to verify what I will be saying, and will provided it upon request to individuals (don't want to pollute inboxes on the listserv indiscriminantly). First, I have discovered that when I render the shapefile NOT as a WMS, but just with a url like: http://localhost/cgi-bin/mapserv.exe?map=C:\ms4w\Apache\htdocs\tb\ex.mapmode=map the coords are unprojected, and I get the expected (tall and skinny) map of MN. When I call mapserver as a WMS (with epsg:26915), like: http://localhost/cgi-bin/mapserv.exe?map=C:\ms4w\Apache\htdocs\tb\ex.mapSERVICE=WMSVERSION=1.1.1REQUEST=GetMapSTYLES=LAYERS=stateBBOX=184056.505,4809728.25,767381.245,5478975.75SRS=EPSG:26915format=image/pngwidth=800height=600 then I get a map, but the map stretches to the dimensions I set the image 'height' and 'width' parameters to. This does not happen with the non-WMS request. So the point is, my WMS map calls stretch as a function of the image width and height (which is how it is called for openlayers). If I want the unprojected map via WMS (that doesn't stretch based on the tile image dimensions), how do I configure my WMS url, or .map file (particularly for openlayers)? Thanks again for everybody's help, Matt On Tue, Jun 10, 2008 at 11:26 AM, Barend Kobben [EMAIL PROTECTED] wrote: Hi, It looks like your mixing up several things that shouldn't be mixed: 1) http://localhost/cgi-bin/mapserv.exe?map=C:\ms4w\Apache\htdocs\ol\wms.mapSE RVICE=WMSVERSION=1.1.1REQUEST=GetCapabilities ...is a valid WMS GetCapabilities request. It might result in a valid WMS response (although I cannot test this as I obviously do not have the same localhost as you...) However: http://localhost/cgi-bin/mapserv.exe?map=C:\ms4w\Apache\htdocs\ol\wms.mapmo de=map ...is a non-WMS request, it uses the 'old' MapServer CGI mode, not the OGC standardised WMS interface. To get a map the WMS way you'd request something like: http://localhost/cgi-bin/mapserv.exe?map=C:\ms4w\Apache\htdocs\ol\wms.mapm; SERVICE=WMSVERSION=1.1.1REQUEST=GetMapSTYLES=LAYERS=aLayerBBOX=1,2,3,4 SRS=EPSG:4326format=image/gif 2) next, you advertise your data to be in lat-lon on the WGS 84 (PROJECTION init=epsg:4326), but you proclaim the EXTENT of the data to be in meters or some other projected unit: EXTENT 184056.505 4809728.25 767381.245 5478975.75 This obviously are not lat-lon degrees (which have a max extent of -180,180,-90,90)... Now MS will be really confused! H, this client wants lat-lon data that stretches over the whole of the universe... :-) 3) you then advertise the WMS to be able to deliver data in a non-projected and a projected SRS: wms_srs EPSG:4326 EPSG:26915 Which is fine, but you do it again for the LAYER, which I think is superfluous. 4) You do NOT tell the WMS what SRS the data originally is in. There is no PROJECTION object in the LAYER, which in some case might lead to MapServer trying to find out for itself, BUT NOT in the Postgis case you have. A connection to PostGIS in itself needs to be told which projection to fetch the data in (because PosGIS can reproject if necessary). One of the ways of doing that is to make the DATA statement a bit more elaborate than the_geom from shp_state, instead use DATA the_geom from shp_state using unique your_primary_key using srid=26915 Hope this helps... -- Barend Köbben International Institute for Geo-Information Sciences and Earth Observation (ITC) PO Box 6 7500AA Enschede, The Netherlands +31 (0)53 4874253 International Institute for Geo-Information Science and Earth Observation (ITC) Chamber of Commerce: 410 27 560 E-mail disclaimer The information in this e-mail, including any attachments, is intended for the addressee only. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or action in relation to the content of this information is strictly prohibited. If you have received this e-mail by mistake, please delete the message and any attachment and inform the sender by return e-mail. ITC accepts no liability for any error or omission in the message content or for damage of any kind that may arise as a result of e-mail transmission. -- It is from the wellspring of our despair and the places that we are broken that we come to repair the world. -- Murray Waas ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] mapserver wms: srs problem
Matthew Pettis wrote: So the point is, my WMS map calls stretch as a function of the image width and height (which is how it is called for openlayers). If I want the unprojected map via WMS (that doesn't stretch based on the tile image dimensions), how do I configure my WMS url, or .map file (particularly for openlayers)? BBOX and width and height are all compulsory in WMS so you need to know what you want and build the request so that the image is not stretched. Some simple calculation is needed to make image size and BBOX to suit. -Jukka Rahkonen- ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] mapserver wms: srs problem
Hi All, Thanks to everyone that contributed. The mapfile that renders (thanks to Tom [Burlington] Kralidis for it) is below. I am still working on it not being the projection that makes the state of MN look short and squat. If anyone wants a screenshot, contact me and i'll send it to you directly rather than to the listserv. Thanks everybody for your help, matt === MAP # http://localhost/cgi-bin/mapserv.exe?map=C:\ms4w\Apache\htdocs\ol\wms.mapSERVICE=WMSVERSION=1.1.1REQUEST=GetCapabilities # http://localhost/cgi-bin/mapserv.exe?map=C:\ms4w\Apache\htdocs\ol\wms.mapmode=map # Map attributes IMAGETYPE PNG EXTENT -100 30 90 55 SIZE660 495 IMAGECOLOR 255 255 255 FONTSET C:/ms4w/Apache/htdocs/fonts/fonts.list PROJECTION init=epsg:4326 END # Web settings WEB IMAGEPATH C:/ms4w/Apache/htdocs/tmp/ IMAGEURL/tmp/ METADATA wms_title WMS Demo Server wms_onlineresource http://localhost/cgi-bin/mapserv.exe?center=45,-95zoom=6; wms_srs EPSG:4326 EPSG:26915 END END # State # Background shows through missing precincts to show where no votes will be coming from LAYER NAME state METADATA wms_title state wms_format image/png END PROJECTION init=epsg:26915 END CONNECTIONTYPEpostgis CONNECTIONuser=postgres dbname=gisvote password=postgres DATA the_geom from shp_state STATUSon TYPE polygon CLASS NAMEstate COLOR 200 200 200 END END # Layer state END === On Tue, Jun 10, 2008 at 12:48 AM, Rahkonen Jukka [EMAIL PROTECTED] wrote: Hi, I have not followed this discussion closely, but at least map extents and map level projection do not match. It may not have any effect on WMS but it does not harm if they were correct. EXTENT 184056.505 4809728.25 767381.245 5478975.75 ... PROJECTION init=epsg:4326 END -Jukka Rahkonen- -- It is from the wellspring of our despair and the places that we are broken that we come to repair the world. -- Murray Waas ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] mapserver wms: srs problem
Hi, It looks like your mixing up several things that shouldn't be mixed: 1) http://localhost/cgi-bin/mapserv.exe?map=C:\ms4w\Apache\htdocs\ol\wms.mapSE RVICE=WMSVERSION=1.1.1REQUEST=GetCapabilities ...is a valid WMS GetCapabilities request. It might result in a valid WMS response (although I cannot test this as I obviously do not have the same localhost as you...) However: http://localhost/cgi-bin/mapserv.exe?map=C:\ms4w\Apache\htdocs\ol\wms.mapmo de=map ...is a non-WMS request, it uses the 'old' MapServer CGI mode, not the OGC standardised WMS interface. To get a map the WMS way you'd request something like: http://localhost/cgi-bin/mapserv.exe?map=C:\ms4w\Apache\htdocs\ol\wms.mapm; SERVICE=WMSVERSION=1.1.1REQUEST=GetMapSTYLES=LAYERS=aLayerBBOX=1,2,3,4 SRS=EPSG:4326format=image/gif 2) next, you advertise your data to be in lat-lon on the WGS 84 (PROJECTION init=epsg:4326), but you proclaim the EXTENT of the data to be in meters or some other projected unit: EXTENT 184056.505 4809728.25 767381.245 5478975.75 This obviously are not lat-lon degrees (which have a max extent of -180,180,-90,90)... Now MS will be really confused! H, this client wants lat-lon data that stretches over the whole of the universe... :-) 3) you then advertise the WMS to be able to deliver data in a non-projected and a projected SRS: wms_srs EPSG:4326 EPSG:26915 Which is fine, but you do it again for the LAYER, which I think is superfluous. 4) You do NOT tell the WMS what SRS the data originally is in. There is no PROJECTION object in the LAYER, which in some case might lead to MapServer trying to find out for itself, BUT NOT in the Postgis case you have. A connection to PostGIS in itself needs to be told which projection to fetch the data in (because PosGIS can reproject if necessary). One of the ways of doing that is to make the DATA statement a bit more elaborate than the_geom from shp_state, instead use DATA the_geom from shp_state using unique your_primary_key using srid=26915 Hope this helps... -- Barend Köbben International Institute for Geo-Information Sciences and Earth Observation (ITC) PO Box 6 7500AA Enschede, The Netherlands +31 (0)53 4874253 International Institute for Geo-Information Science and Earth Observation (ITC) Chamber of Commerce: 410 27 560 E-mail disclaimer The information in this e-mail, including any attachments, is intended for the addressee only. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or action in relation to the content of this information is strictly prohibited. If you have received this e-mail by mistake, please delete the message and any attachment and inform the sender by return e-mail. ITC accepts no liability for any error or omission in the message content or for damage of any kind that may arise as a result of e-mail transmission. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] mapserver wms: srs problem
Thank you! I will try this, and the explanation was helpful. On Sun, Jun 8, 2008 at 1:08 PM, Barend Kobben [EMAIL PROTECTED] wrote: It looks like your datastore's SRS is 4326 (latlon on the WGS84). In other words, the data in your shapefile, database or raster image are (or are advertised to be) in 4326. Its because your data is indeed in that srs and/or advertised as such in the Mapfile LAYER as PROJECTION init=epsg:4326 END But you tell the WMS interface that the layer is in 26915, by setting layer metadata srs = EPSG:26915 If you want MS to reproject your data from 4326 to 26915 upon request, make sure you set the layerdata projection: PROJECTION init=epsg:4326 END Then make sure you tell the WMS interface to advertise it can be reprojected to 26915 by setting it in web metadata srs: wms_srs EPSG:4326 EPSG:26915 EPSG:[others you want to offer] AFAIK there no wms_srs metadata in the LAYER object... -- Barend Köbben International Institute for Geo-Information Sciences and Earth Observation (ITC) PO Box 6 7500AA Enschede, The Netherlands +31 (0)53 4874253 On 08-06-08 02:21, Matthew Pettis [EMAIL PROTECTED] wrote: Hi, I am not a GIS guy, and am a bit confused by the projection attributes i have to specify in mapserver. In particular, I have a simple example. I have a map that has the following metadata: Horizontal Coordinate Scheme UTM Ellipsoid GRS80 Horizontal Datum NAD83 Horizontal Units Meters UTM Zone Number 15 I believe this translates to an epsg=26915 Now, according to mapserver, I have to specify a projection object, a web metadata srs, and a layer metadata srs. To compress the mapfile, i'll just note what i have specified for each of these settings. First, I would think that this would work: projection = init=epsg:26915 web metadata srs = EPSG:26915 layer metadata srs = EPSG:26915 this give me the error: msWMSLoadGetMapParams(): WMS Server Error. Invalid SRS given. SRS must be valid for all requested layers. I only have the one layer (it's of the state of MN from www.gis.leg.mn). However, the following renders, but I don't think it is the projection i want (as the top of MN is too wide): projection = init=epsg:26915 web metadata srs = EPSG:26915 layer metadata srs = EPSG:4326 Now, I am using mapserver as a WMS. Before I was using it NOT as a WMS, but just making it render the shapefile without any projection information, it worked, and it was the projection I had come to expect when seeing the state of MN rendered. Why does my first configuration give me an error? How can I make it render in the way I expect without giving mapserver explicit projection instructions? please forgive the ignorance of map projection knowledge. thanks, matt International Institute for Geo-Information Science and Earth Observation (ITC) Chamber of Commerce: 410 27 560 E-mail disclaimer The information in this e-mail, including any attachments, is intended for the addressee only. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or action in relation to the content of this information is strictly prohibited. If you have received this e-mail by mistake, please delete the message and any attachment and inform the sender by return e-mail. ITC accepts no liability for any error or omission in the message content or for damage of any kind that may arise as a result of e-mail transmission. -- It is from the wellspring of our despair and the places that we are broken that we come to repair the world. -- Murray Waas ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] mapserver wms: srs problem
Hi Barend, All, I tried your suggested changes: ... PROJECTION init=epsg:4326 END # Web settings WEB IMAGEPATH C:/ms4w/Apache/htdocs/tmp/ IMAGEURL/tmp/ METADATA wms_title WMS Demo Server wms_onlineresource http://localhost/cgi-bin/mapserv.exe?center=45,-95zoom=6; wms_srs EPSG:4326 EPSG:26915 END END # State # Background shows through missing precincts to show where no votes will be coming from LAYER NAME state METADATA wms_title state wms_format image/png END ... Now, the map is blank (no error messages either). It looks like i can drag and zoom per the controls, but there is no image of the state of MN to move around. Any idea what could still be the matter? Thanks, Matt On Sun, Jun 8, 2008 at 1:08 PM, Barend Kobben [EMAIL PROTECTED] wrote: It looks like your datastore's SRS is 4326 (latlon on the WGS84). In other words, the data in your shapefile, database or raster image are (or are advertised to be) in 4326. Its because your data is indeed in that srs and/or advertised as such in the Mapfile LAYER as PROJECTION init=epsg:4326 END But you tell the WMS interface that the layer is in 26915, by setting layer metadata srs = EPSG:26915 If you want MS to reproject your data from 4326 to 26915 upon request, make sure you set the layerdata projection: PROJECTION init=epsg:4326 END Then make sure you tell the WMS interface to advertise it can be reprojected to 26915 by setting it in web metadata srs: wms_srs EPSG:4326 EPSG:26915 EPSG:[others you want to offer] AFAIK there no wms_srs metadata in the LAYER object... -- Barend Köbben International Institute for Geo-Information Sciences and Earth Observation (ITC) PO Box 6 7500AA Enschede, The Netherlands +31 (0)53 4874253 On 08-06-08 02:21, Matthew Pettis [EMAIL PROTECTED] wrote: Hi, I am not a GIS guy, and am a bit confused by the projection attributes i have to specify in mapserver. In particular, I have a simple example. I have a map that has the following metadata: Horizontal Coordinate Scheme UTM Ellipsoid GRS80 Horizontal Datum NAD83 Horizontal Units Meters UTM Zone Number 15 I believe this translates to an epsg=26915 Now, according to mapserver, I have to specify a projection object, a web metadata srs, and a layer metadata srs. To compress the mapfile, i'll just note what i have specified for each of these settings. First, I would think that this would work: projection = init=epsg:26915 web metadata srs = EPSG:26915 layer metadata srs = EPSG:26915 this give me the error: msWMSLoadGetMapParams(): WMS Server Error. Invalid SRS given. SRS must be valid for all requested layers. I only have the one layer (it's of the state of MN from www.gis.leg.mn). However, the following renders, but I don't think it is the projection i want (as the top of MN is too wide): projection = init=epsg:26915 web metadata srs = EPSG:26915 layer metadata srs = EPSG:4326 Now, I am using mapserver as a WMS. Before I was using it NOT as a WMS, but just making it render the shapefile without any projection information, it worked, and it was the projection I had come to expect when seeing the state of MN rendered. Why does my first configuration give me an error? How can I make it render in the way I expect without giving mapserver explicit projection instructions? please forgive the ignorance of map projection knowledge. thanks, matt International Institute for Geo-Information Science and Earth Observation (ITC) Chamber of Commerce: 410 27 560 E-mail disclaimer The information in this e-mail, including any attachments, is intended for the addressee only. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or action in relation to the content of this information is strictly prohibited. If you have received this e-mail by mistake, please delete the message and any attachment and inform the sender by return e-mail. ITC accepts no liability for any error or omission in the message content or for damage of any kind that may arise as a result of e-mail transmission. -- It is from the wellspring of our despair and the places that we are broken that we come to repair the world. -- Murray Waas ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] mapserver wms: srs problem
Maybe you could attach your entire .map file for the mailing list to see. --- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ On 9-Jun-08, at 4:44 PM, Matthew Pettis wrote: Hi Barend, All, I tried your suggested changes: ... PROJECTION init=epsg:4326 END # Web settings WEB IMAGEPATH C:/ms4w/Apache/htdocs/tmp/ IMAGEURL/tmp/ METADATA wms_title WMS Demo Server wms_onlineresource http://localhost/cgi-bin/mapserv.exe?center=45,-95zoom=6; wms_srs EPSG:4326 EPSG:26915 END END # State # Background shows through missing precincts to show where no votes will be coming from LAYER NAME state METADATA wms_title state wms_format image/png END ... Now, the map is blank (no error messages either). It looks like i can drag and zoom per the controls, but there is no image of the state of MN to move around. Any idea what could still be the matter? Thanks, Matt On Sun, Jun 8, 2008 at 1:08 PM, Barend Kobben [EMAIL PROTECTED] wrote: It looks like your datastore's SRS is 4326 (latlon on the WGS84). In other words, the data in your shapefile, database or raster image are (or are advertised to be) in 4326. Its because your data is indeed in that srs and/or advertised as such in the Mapfile LAYER as PROJECTION init=epsg:4326 END But you tell the WMS interface that the layer is in 26915, by setting layer metadata srs = EPSG:26915 If you want MS to reproject your data from 4326 to 26915 upon request, make sure you set the layerdata projection: PROJECTION init=epsg:4326 END Then make sure you tell the WMS interface to advertise it can be reprojected to 26915 by setting it in web metadata srs: wms_srs EPSG:4326 EPSG:26915 EPSG:[others you want to offer] AFAIK there no wms_srs metadata in the LAYER object... -- Barend Köbben International Institute for Geo-Information Sciences and Earth Observation (ITC) PO Box 6 7500AA Enschede, The Netherlands +31 (0)53 4874253 On 08-06-08 02:21, Matthew Pettis [EMAIL PROTECTED] wrote: Hi, I am not a GIS guy, and am a bit confused by the projection attributes i have to specify in mapserver. In particular, I have a simple example. I have a map that has the following metadata: Horizontal Coordinate Scheme UTM Ellipsoid GRS80 Horizontal Datum NAD83 Horizontal Units Meters UTM Zone Number 15 I believe this translates to an epsg=26915 Now, according to mapserver, I have to specify a projection object, a web metadata srs, and a layer metadata srs. To compress the mapfile, i'll just note what i have specified for each of these settings. First, I would think that this would work: projection = init=epsg:26915 web metadata srs = EPSG:26915 layer metadata srs = EPSG:26915 this give me the error: msWMSLoadGetMapParams(): WMS Server Error. Invalid SRS given. SRS must be valid for all requested layers. I only have the one layer (it's of the state of MN from www.gis.leg.mn ). However, the following renders, but I don't think it is the projection i want (as the top of MN is too wide): projection = init=epsg:26915 web metadata srs = EPSG:26915 layer metadata srs = EPSG:4326 Now, I am using mapserver as a WMS. Before I was using it NOT as a WMS, but just making it render the shapefile without any projection information, it worked, and it was the projection I had come to expect when seeing the state of MN rendered. Why does my first configuration give me an error? How can I make it render in the way I expect without giving mapserver explicit projection instructions? please forgive the ignorance of map projection knowledge. thanks, matt International Institute for Geo-Information Science and Earth Observation (ITC) Chamber of Commerce: 410 27 560 E-mail disclaimer The information in this e-mail, including any attachments, is intended for the addressee only. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or action in relation to the content of this information is strictly prohibited. If you have received this e- mail by mistake, please delete the message and any attachment and inform the sender by return e-mail. ITC accepts no liability for any error or omission in the message content or for damage of any kind that may arise as a result of e-mail transmission. -- It is from the wellspring of our despair and the places that we are broken that we come to repair the world. -- Murray Waas ___ mapserver-users mailing list mapserver-users@lists.osgeo.org
Re: [mapserver-users] mapserver wms: srs problem
Will do. Here it is below: === MAP # http://localhost/cgi-bin/mapserv.exe?map=C:\ms4w\Apache\htdocs\ol\wms.mapSERVICE=WMSVERSION=1.1.1REQUEST=GetCapabilities # http://localhost/cgi-bin/mapserv.exe?map=C:\ms4w\Apache\htdocs\ol\wms.mapmode=map # Map attributes IMAGETYPE PNG EXTENT 184056.505 4809728.25 767381.245 5478975.75 SIZE660 495 IMAGECOLOR 255 255 255 FONTSET C:/ms4w/Apache/htdocs/fonts/fonts.list PROJECTION init=epsg:4326 END # Web settings WEB IMAGEPATH C:/ms4w/Apache/htdocs/tmp/ IMAGEURL/tmp/ METADATA wms_title WMS Demo Server wms_onlineresource http://localhost/cgi-bin/mapserv.exe?center=45,-95zoom=6; #wms_srs EPSG:4269 EPSG:4326 #wms_srs EPSG:26915 wms_srs EPSG:4326 EPSG:26915 END END # State # Background shows through missing precincts to show where no votes will be coming from LAYER NAME state PROJECTION init=epsg:4326 END METADATA wms_title state #wms_srs EPSG:26915 #wms_srs EPSG:4326 wms_format image/png END CONNECTIONTYPEpostgis CONNECTIONuser=postgres dbname=gisvote password=postgres DATA the_geom from shp_state STATUSdefault TYPE polygon CLASS NAMEstate COLOR 200 200 200 END END # Layer state END === On Mon, Jun 9, 2008 at 8:19 PM, Jeff McKenna [EMAIL PROTECTED] wrote: Maybe you could attach your entire .map file for the mailing list to see. --- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ On 9-Jun-08, at 4:44 PM, Matthew Pettis wrote: Hi Barend, All, I tried your suggested changes: ... PROJECTION init=epsg:4326 END # Web settings WEB IMAGEPATH C:/ms4w/Apache/htdocs/tmp/ IMAGEURL/tmp/ METADATA wms_title WMS Demo Server wms_onlineresource http://localhost/cgi-bin/mapserv.exe?center=45,-95zoom=6; wms_srs EPSG:4326 EPSG:26915 END END # State # Background shows through missing precincts to show where no votes will be coming from LAYER NAME state METADATA wms_title state wms_format image/png END ... Now, the map is blank (no error messages either). It looks like i can drag and zoom per the controls, but there is no image of the state of MN to move around. Any idea what could still be the matter? Thanks, Matt On Sun, Jun 8, 2008 at 1:08 PM, Barend Kobben [EMAIL PROTECTED] wrote: It looks like your datastore's SRS is 4326 (latlon on the WGS84). In other words, the data in your shapefile, database or raster image are (or are advertised to be) in 4326. Its because your data is indeed in that srs and/or advertised as such in the Mapfile LAYER as PROJECTION init=epsg:4326 END But you tell the WMS interface that the layer is in 26915, by setting layer metadata srs = EPSG:26915 If you want MS to reproject your data from 4326 to 26915 upon request, make sure you set the layerdata projection: PROJECTION init=epsg:4326 END Then make sure you tell the WMS interface to advertise it can be reprojected to 26915 by setting it in web metadata srs: wms_srs EPSG:4326 EPSG:26915 EPSG:[others you want to offer] AFAIK there no wms_srs metadata in the LAYER object... -- Barend Köbben International Institute for Geo-Information Sciences and Earth Observation (ITC) PO Box 6 7500AA Enschede, The Netherlands +31 (0)53 4874253 On 08-06-08 02:21, Matthew Pettis [EMAIL PROTECTED] wrote: Hi, I am not a GIS guy, and am a bit confused by the projection attributes i have to specify in mapserver. In particular, I have a simple example. I have a map that has the following metadata: Horizontal Coordinate Scheme UTM Ellipsoid GRS80 Horizontal Datum NAD83 Horizontal Units Meters UTM Zone Number 15 I believe this translates to an epsg=26915 Now, according to mapserver, I have to specify a projection object, a web metadata srs, and a layer metadata srs. To compress the mapfile, i'll just note what i have specified for each of these settings. First, I would think that this would work: projection = init=epsg:26915 web metadata srs = EPSG:26915 layer metadata srs = EPSG:26915 this
Re: [mapserver-users] mapserver wms: srs problem
Hi, I have not followed this discussion closely, but at least map extents and map level projection do not match. It may not have any effect on WMS but it does not harm if they were correct. EXTENT 184056.505 4809728.25 767381.245 5478975.75 ... PROJECTION init=epsg:4326 END -Jukka Rahkonen- ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users