Fwd: [mapserver-users] Re: Invalid SRS given: SRS must be valid for all requested layers. EPSG 23030

Amalia Carolina Canavire acarolinagc at gmail.com
Tue Aug 30 13:34:13 EDT 2011


hi thank everybody, for you help, i changed my code,, but even i can not see
layer
/*********** on page php **************/

    var options = {
                    minResolution: "auto",
                    minExtent: new OpenLayers.Bounds(-1, -1, 1, 1),
                    maxResolution: "auto",
                    maxExtent: new
OpenLayers.Bounds("529495","602500","588410","660675"),
                    controls:[
                         new
OpenLayers.Control.LayerSwitcher({'ascending':false}),
                         new OpenLayers.Control.MousePosition(),
                         new OpenLayers.Control.PanZoom(),
                         new OpenLayers.Control.ScaleLine()
                    ]

                };

                var map = new OpenLayers.Map('mapa', options );

                var NASAwms2 = new
OpenLayers.Layer.WMS("tl_2010_12001_roads.shp",
                                "
http://localhost/cgi-bin/mapserv?map=%2Fvar%2Fwww%2FgisParcelsFL%2Fmap%2Fdmwms1.map",
{layers: 'tl_2010_12001_roads.shp',
                                format: 'image/png', projection:new
OpenLayers.Projection("EPSG:23030")},{isBaseLayer: true});
                                map.addLayer(NASAwms2);

                 var overview = new OpenLayers.Control.OverviewMap({
                    mapOptions: {
                        projection: new OpenLayers.Projection("EPSG:23030"),
                        units: "m",
                        maxExtent: new
OpenLayers.Bounds("529495","602500","588410","660675"),
                        maxResolution: 20,
                        numZoomLevels: 5
                    }
                   });
                   map.addControl(overview);
                   map.zoomToMaxExtent();


/****************************************/
MAP
   NAME map_generated_by_gvsig
   SIZE 600 400
   EXTENT 529495 602500 588410 660675
   SYMBOLSET "dmwms1.sym"
   FONTSET "fonts.txt"
   LEGEND
      IMAGECOLOR -1 -1 -1
      LABEL
         FONT "vera"
         ANGLE FOLLOW
         COLOR 0 0 0
         ENCODING "UTF-8"
         TYPE truetype
         SIZE 8
      END
      STATUS ON
      TRANSPARENT ON
   END
   WEB
      METADATA
         "wms_encoding" "UTF-8"
         "wms_title" "Mapserver WMS"
         "wms_abstract" ""
         "wms_srs" "epsg:4326 EPSG:23030"
         "wms_onlineresource" "
http://localhost/cgi-bin/mapserv?map=%2Fvar%2Fwww%2FgisParcelsFL%2Fmap%2Fdmwms1.map
"
      END
   END
   PROJECTION
      "init=epsg:23030"
   END
   LAYER
      NAME "tl_2010_12001_roads.shp"
      STATUS ON
      TYPE LINE
      UNITS METERS
      DATA
"/var/www/gisParcelsFL/tl_2010_12001_roads/tl_2010_12001_roads.shp"
      MAXSCALE -1.0
      MINSCALE -1.0
      TRANSPARENCY 100
      SIZEUNITS pixels
      LABELITEM "FULLNAME"
      #PROJECTION
       #  "init=epsg:23030"
      #END
      CLASS
         STYLE
            COLOR 153 153 153
            WIDTH 1
         END
         NAME "default"
         LABEL
            FONT "vera"
            ANGLE FOLLOW
            COLOR 0 0 0
            TYPE truetype
            SIZE 7.0
         END
      END
      METADATA
         "wms_title" "tl_2010_12001_roads.shp"
         "wms_abstract" "generated by gvSIG"
         "wms_extent" "529495 602500 588410 660675"
         "gml_include_items" "all"
      END
   END # Layer
END # Map File
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20110830/aa28d1a7/attachment-0001.html


More information about the mapserver-users mailing list