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

Rahkonen Jukka Jukka.Rahkonen at mmmtike.fi
Tue Aug 30 11:40:45 EDT 2011


Hi,

I do not understand Spanish but it looks like you have something wrong with projections.

MAP
EXTENT -82.65814999999999 29.435378999999998 -82.05008 29.943614
PROJECTION
      "init=epsg:23030"
   END

Projection must be in meters which seem to be the unit for the EPSG:23030 units
http://www.epsg-registry.org/report.htm?type=selection&entity=urn:ogc:def:crs:EPSG::23030&reportDetail=short&style=urn:uuid:report-style:default-with-code&style_name=OGP%20Default%20With%20Code&title=

The same with "wms_extent" "-82.65814999999999 29.435378999999998 -82.05008 29.943614"
use extents in the EPSG:23030 system and units.

-Jukka Rahkonen-


________________________________
Lähettäjä: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] käyttäjän Amalia Carolina Canavire [acarolinagc at gmail.com] puolesta
Lähetetty: 30. elokuuta 2011 16:55
Vastaanottaja: Lista de Usuarios de gvSIG; mapserver-users at lists.osgeo.org
Aihe: [mapserver-users] msWMSLoadGetMapParams(): WMS server error. Invalid SRS given: SRS must be valid for all requested layers. EPSG 23030

Hola gente, una duda  usando gvsig para poder generar una vista desde un .shp debo seleccionar una proyección epsg 23030, porque no me reconece epsg 4326 (con esta opción mi vista es vacia , a que se debe?
Estoy usando gvsig 1.1 por la extensión de publicación, sobre ubuntu.
Debido a ello , por las dudas, respeto esta proyección epsg 23030, cuando utilizo  vista desde wms, me muestra sin problema, ahora cuando lo hago para web, me sale el error de :
msWMSLoadGetMapParams(): WMS server error. Invalid SRS given: SRS must be valid for all requested layers .

Si cambio la proyeccion a 4326, no sale el error pero no me muestra nada. Mi codigo es el sgte:



MAP
   NAME map_generated_by_gvsig
   SIZE 600 400
   EXTENT -82.65814999999999 29.435378999999998 -82.05008 29.943614
   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: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
      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" "-82.65814999999999 29.435378999999998 -82.05008 29.943614"
         "gml_include_items" "all"
      END
   END # Layer
END # Map File

--

**************   :) sonrei que te queda lindo :):):):): amy cgc  **************************



More information about the mapserver-users mailing list