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

Mr. Puneet Kishor punk.kish en gmail.com
Mar Ago 30 18:58:41 CEST 2011


On Aug 30, 2011, at 11:21 AM, Amalia Carolina Canavire wrote:

> hi ,I don't good speak english, but i don't understand you, when you say
> "Projection must be in meters which seem to be the unit for the EPSG:23030
> units", you can specify in where may correction in this code, please. thank
> for you time and helping.


Your declared projection "EPSG:23030" uses meters, but your extent `EXTENT -82.65814999999999 29.435378999999998 -82.05008 29.943614` is definitely not in meters (unless, you are plotting a very tiny and strange area of the world that is only a few centimeters wide and long). Make sure your extent and projection units match.


> 
> 2011/8/30 Rahkonen Jukka <Jukka.Rahkonen en mmmtike.fi>
> 
>> 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 en lists.osgeo.org [
>> mapserver-users-bounces en lists.osgeo.org] käyttäjän Amalia Carolina
>> Canavire [acarolinagc en gmail.com] puolesta
>> Lähetetty: 30. elokuuta 2011 16:55
>> Vastaanottaja: Lista de Usuarios de gvSIG; mapserver-users en 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
>> **************************
>> 
>> 
> 
> 
> -- 
> 
> *************** *  :) *sonrei que te queda lindo :):):):): **amy **cgc
> **************************
> *
> _______________________________________________
> mapserver-users mailing list
> mapserver-users en lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users



Más información sobre la lista de distribución gvSIG_usuarios