Re: [mapserver-users] Call layer

2009-10-06 Thread Daniel Walton
I have this same problem, only I am using a Silverlight client to view the
layers. I can view layers only by setting their status to DEFAULT.  Whenever
I request a layer whose status is ON, I get the response:

Invalid CRS given : CRS must be valid for all requested layers.

The CRS query string I passed is:

CRS=EPSG:4326

The projection in my mapfile both for the whole map and individual layers
is:

PROJECTION
  proj=longlat
  ellps=WGS84
  datum=WGS84
  no_defs
END

It looks like the problem is in referencing the EPSG file, and I have tried
every method I know to reference it:

   1. setting CONFIG PROJ_LIB C:/ms4w/proj/nad/ at the top of my mapfile
   2. adding the line SetEnv PROJ_LIB c:/ms4w/proj/nad/ to Apache's
   httpd.conf file
   3. doing 1 and 2 but omitting the leading c:

Further confirmation that this is the problem is that I tried to set the
map's projection in MapScript using the line

mapObj.setProjection(init=epsg:4326);

and received the PROJ4 error:

msProcessProjection(): Projection library error. No such file or directory

Any ideas out there?

 Dan Walton
dgwal...@gmail.com



On Mon, Oct 5, 2009 at 8:49 AM, jbloc1...@googlemail.com wrote:

 Thanks for the response. I am using openlayers and my map does not appear
 unless layer is STATUS DEFAULT.

 I call layer as follows

 layer1 = new OpenLayers.Layer.WMS(OpenLayers WMS,  
 http://localhost/cgi-bin/mapserv.exe
 http://localhost/cgi-bin/mapserv.exe?;, { layers: testlayer, map:
 '/ms4w/.../data/tr00.map',
   gutter: 15, minZoomLevel: 1, maxZoomLevel: 10, units:'meters' });

  map.addLayer(layer1);

 I only view pink tiles when STATUS ON?

 Thanks

 On 5 Oct 2009, at 14:40, Fawcett, David david.fawc...@state.mn.us
 wrote:

  You don’t.  That is how you tell MapServer that you want to view a
 particular layer that doesn’t have a status of default.



 In many cases, if you are viewing your map using a client like OpenLayers,
 the client does this for you.



 David.



 *From:* mapserver-users-boun...@lists.osgeo.org [mailto:
 mapserver-users-boun...@lists.osgeo.org] *On Behalf Of *
 jbloc1...@googlemail.com
 *Sent:* Monday, October 05, 2009 8:31 AM
 *To:* mapserver-users@lists.osgeo.org
 *Subject:* [mapserver-users] Call layer



 Hi,



   If  the status of my layer is set to ON how do I call the layer without
 adding 'layer=[layername]' on the end of the URL?



   I am viewing the map via localhost/cgi-bin/mapserv.exe?



 Cheers for any help


 ___
 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


Re: [mapserver-users] Call layer

2009-10-06 Thread jbloc1878

Yeah I have the same Projection in my map file.

PROJECTION
  proj=longlat
  ellps=WGS84
  datum=WGS84
  no_defs
END

Thanks for the response. It's pretty fustrating there must be another  
simple method to call the layer


On 6 Oct 2009, at 13:37, Daniel Walton dgwal...@gmail.com wrote:

I have this same problem, only I am using a Silverlight client to  
view the layers. I can view layers only by setting their status to  
DEFAULT.  Whenever I request a layer whose status is ON, I get the  
response:


Invalid CRS given : CRS must be valid for all requested layers.

The CRS query string I passed is:

CRS=EPSG:4326

The projection in my mapfile both for the whole map and individual  
layers is:


PROJECTION
  proj=longlat
  ellps=WGS84
  datum=WGS84
  no_defs
END

It looks like the problem is in referencing the EPSG file, and I  
have tried every method I know to reference it:

setting CONFIG PROJ_LIB C:/ms4w/proj/nad/ at the top of my mapfile
adding the line SetEnv PROJ_LIB c:/ms4w/proj/nad/ to Apache's  
httpd.conf file

doing 1 and 2 but omitting the leading c:
Further confirmation that this is the problem is that I tried to set  
the map's projection in MapScript using the line


mapObj.setProjection(init=epsg:4326);

and received the PROJ4 error:

msProcessProjection(): Projection library error. No such file or  
directory


Any ideas out there?

Dan Walton
dgwal...@gmail.com


On Mon, Oct 5, 2009 at 8:49 AM, jbloc1...@googlemail.com wrote:
Thanks for the response. I am using openlayers and my map does not  
appear unless layer is STATUS DEFAULT.


I call layer as follows

layer1 = new OpenLayers.Layer.WMS(OpenLayers WMS,
  http://localhost/cgi-bin/mapserv.exe?;, { layers:  
testlayer, map: '/ms4w/.../data/tr00.map',
  gutter: 15, minZoomLevel: 1, maxZoomLevel: 10,  
units:'meters' });


 map.addLayer(layer1);

I only view pink tiles when STATUS ON?

Thanks

On 5 Oct 2009, at 14:40, Fawcett, David  
david.fawc...@state.mn.us wrote:


You don’t.  That is how you tell MapServer that you want to view a 
 particular layer that doesn’t have a status of default.




In many cases, if you are viewing your map using a client like  
OpenLayers, the client does this for you.




David.



From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver- 
users-boun...@lists.osgeo.org] On Behalf Of jbloc1...@googlemail.com

Sent: Monday, October 05, 2009 8:31 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] Call layer



Hi,




If  the status of my layer is set to ON how do I call the layer  
without adding 'layer=[layername]' on the end of the URL?





I am viewing the map via localhost/cgi-bin/mapserv.exe?



Cheers for any help



___
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


[mapserver-users] Call layer

2009-10-05 Thread jbloc1878

Hi,

If  the status of my layer is set to ON how do I call the layer  
without adding 'layer=[layername]' on the end of the URL?


I am viewing the map via localhost/cgi-bin/mapserv.exe?

Cheers for any help


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


RE: [mapserver-users] Call layer

2009-10-05 Thread Fawcett, David
You don’t.  That is how you tell MapServer that you want to view a particular 
layer that doesn’t have a status of default.  

 

In many cases, if you are viewing your map using a client like OpenLayers, the 
client does this for you.

 

David.

 

From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of 
jbloc1...@googlemail.com
Sent: Monday, October 05, 2009 8:31 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] Call layer

 

Hi,





If  the status of my layer is set to ON how do I call the layer without adding 
'layer=[layername]' on the end of the URL?





I am viewing the map via localhost/cgi-bin/mapserv.exe?  

 

Cheers for any help



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


Re: [mapserver-users] Call layer

2009-10-05 Thread jbloc1878
Thanks for the response. I am using openlayers and my map does not  
appear unless layer is STATUS DEFAULT.


I call layer as follows

layer1 = new OpenLayers.Layer.WMS(OpenLayers WMS,
  http://localhost/cgi-bin/mapserv.exe?;, { layers: testlayer,  
map: '/ms4w/.../data/tr00.map',

  gutter: 15, minZoomLevel: 1, maxZoomLevel: 10, units:'meters' });

 map.addLayer(layer1);

I only view pink tiles when STATUS ON?

Thanks

On 5 Oct 2009, at 14:40, Fawcett, David david.fawc...@state.mn.us  
wrote:


You don’t.  That is how you tell MapServer that you want to view a p 
articular layer that doesn’t have a status of default.




In many cases, if you are viewing your map using a client like  
OpenLayers, the client does this for you.




David.



From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver- 
users-boun...@lists.osgeo.org] On Behalf Of jbloc1...@googlemail.com

Sent: Monday, October 05, 2009 8:31 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] Call layer



Hi,




If  the status of my layer is set to ON how do I call the layer  
without adding 'layer=[layername]' on the end of the URL?





I am viewing the map via localhost/cgi-bin/mapserv.exe?



Cheers for any help

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