[mapserver-users] Re: WFS with several SRS?

sulu andreas.siegel at vorarlberg.at
Tue Nov 8 06:24:05 PST 2011


Jörg Thomsen wrote:
> 
> hello Andreas,
> 
> Am 08.11.2011 14:08, schrieb sulu:
>> ad 1st:
>> something like 
>> PROJECTION
>> 	"init=epsg:31254"
>> END #end projection
>> ??
> 
> yes
> 
>> I intentionally left it out because my impression is that WFS does not
>> like
>> any SRS-Definitions on the layer level.
> 
> mapserver has to know the source srs to transform the data into another
> srs i think.
> 
>> What i'm really searching is a mapfile which works with different SRS.
> 
> this one works with both srs, 4326 and 3035:
>> MAP
>>    NAME Bundelaender
>>    EXTENT 3957944 2678000 4749055 3568000
>>    SYMBOLSET "symbols/test.sym"
>>    FONTSET "fonts/fonts.txt"
>>    IMAGECOLOR 255 255 255
>> 
>>    LEGEND
>>       ....
>>    END
>>    WEB
>>       IMAGEPATH "temp"
>>       METADATA
>>          "ows_encoding" "UTF-8"
>>          "wms_title" "Bundesländer Verwaltungsgrenzen"
>>          "wfs_title" "Bundeslaänder Verwaltungsgrenzen"
>>          "ows_abstract" "WMS der Bundesländer der Bundesrepublik"
>>          "wms_srs" "EPSG:4326 EPSG:3035"
>>          "ows_onlineresource" "http://....."
>>       END
>>    END
>>    PROJECTION
>>       "init=epsg:3035"
>>    END
>> 
>> # BUNDESLAENDER
>>    LAYER
>>       NAME "Bundeslaender_1000"
>>       STATUS ON
>>       TYPE POLYGON
>>       METADATA
>>          "ows_title" "Bundesländer Verwaltungsgrenzen"
>>          "ows_extent" "5.8659987449646 47.1703590393066 15.0415315628052
>> 55.0473768615723"
>>          "ows_featureid" "id"
>>          "ows_srs" "EPSG:4326 EPSG:3035"
>>          "gml_include_items" "all"
>>       END
>>       DATA "the_geom from ... using srid=4326"
>>       CONNECTIONTYPE POSTGIS
>>       CONNECTION "user=xx password=xx host=xx port=5432
>> dbname=bkg_geodaten"
>>       MINSCALEDENOM 250000
>>       OPACITY 100
>>       DUMP true
>>       LABELCACHE on
>>       SIZEUNITS pixels
>>       LABELITEM "gen"
>>       PROJECTION
>>          "init=epsg:4326"
>>       END
>>       CLASS
>>          STYLE 
>>             OUTLINECOLOR 100 100 100
>>             WIDTH 1
>>          END
>>          NAME "Bundesländer"
>>          LABEL
>>             FONT "vera"
>>             COLOR 50 50 50
>>             OUTLINECOLOR 240 240 240
>>             TYPE truetype
>>             SIZE 9
>>             ANTIALIAS true
>>             POSITION cc
>>             MINDISTANCE 500
>>          END
>>       END
>>    END # Layer
>> END # Map File
> 
> Grüße in die Berge,
> Jörg
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at .osgeo
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
> 

Hi Jörg.

Thanks for your sample.
I will keep it as a template when i am ready to do WFS 1.1 (requieres
mapserver-6) .
My mapfile was stripped down quasi naked because of my desperation not
finding any errors preventing me to use multiple SRS on WFS. I was not aware
that my mapserver-version does not support that particular feature.

Grüße aus den Bergen
Andy



--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/WFS-with-several-SRS-tp6973831p6974430.html
Sent from the Mapserver - User mailing list archive at Nabble.com.



More information about the MapServer-users mailing list