[mapserver-users] WFS with several SRS?

2011-11-08 Thread sulu
I would like to offer a WFS-Service which supports several different
projections.

(WFS_SRSEPSG:31254 EPSG:3785 EPSG:4326 EPSG:31284 EPSG:32632
EPSG:25832 EPSG:21781)

My mapserver is of version 5.6.6 on a Centos-Box

MapServer version 5.6.6 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP
OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV
SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER
SUPPORTS=WFS_CLIENT SUPPORTS=FASTCGI INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR
INPUT=GDAL INPUT=SHAPEFILE


As expected the default SRS is 31254.

A GetFeature-Call with this EPSG works just fine:
Example:
http://vogis.cnv.at/cgi-bin/mapserv?map=wfs.mapSERVICE=WFSVERSION=1.1.0REQUEST=GetFeatureTYPENAME=nutzungs-grenzenSRSNAME=epsg:31254

But if i try a other SRS from the WFS_SRS (e.g. 4326) above i receive:
...
msWFSGetFeature(): WFS server error. Invalid GetFeature Request: SRSNAME
value should be valid for all the TYPENAMES. Please check the capabilities
and reformulate your request.
...

As you can see in the Mapfile below, i avoided specifying any projection in
the layer section so i have to wonder what i am doing wrong?

Thanks
Andy


MAPFILE


MAP

EXTENT -7 18 5000 28#for EPSG:31254
FONTSET./fontset
IMAGETYPE  png
MAXSIZE8000
RESOLUTION 96
SYMBOLSET  ./etc/symbol/symbols.sym


# Debugging
CONFIG MS_ERRORFILE /tmp/mapserver_wfs_error.txt
DEBUG 5

WEB

METADATA
WFS_TITLE  DKM Vorarlberg
WFS_SRSEPSG:31254 EPSG:3785 EPSG:4326 
EPSG:31284
EPSG:32632 EPSG:25832 EPSG:21781
WFS_ABSTRACT   Geodaten des Bundeslandes 
Vorarlberg als OGC-WFS

WMS_SRSEPSG:4326 EPSG:31254 EPSG:31284 
EPSG:32632
EPSG:25832 EPSG:21781
WMS_TITLE  DKM Vorarlberg
WMS_ABSTRACTGeodaten des Bundeslandes 
Vorarlberg als OGC-WMS
#WMS_ONLINERESOURCE
http://vogis.cnv.at/mapserver/mapserv?map=wfs.mapversion=1.1.0;
WMS_FORMATLIST  
image/gif,image/png,image/jpeg,image/tif
WMS_FEATURE_INFO_MIME_TYPE text/html

END
END

OUTPUTFORMAT
NAME jpg
DRIVER GDAL/JPEG
MIMETYPE image/jpeg
IMAGEMODE RGB
EXTENSION jpg
END

OUTPUTFORMAT
NAME jpg
DRIVER GDAL/JPEG
MIMETYPE image/jpg
IMAGEMODE RGB
EXTENSION jpg
END

OUTPUTFORMAT
NAME gif
DRIVER GD/GIF
MIMETYPE image/gif
IMAGEMODE PC256
EXTENSION gif
END

OUTPUTFORMAT
NAME png
# Driver AGG/PNG weil der GDAL-Driver Probleme bei der 
Transparenz hat
DRIVER AGG/PNG
MIMETYPE image/png
IMAGEMODE RGBA
EXTENSION png
TRANSPARENT ON
FORMATOPTION INTERLACE=OFF
END

OUTPUTFORMAT
NAME wbmp
DRIVER GD/WBMP
MIMETYPE image/wbmp
IMAGEMODE PC256
EXTENSION wbmp
END

OUTPUTFORMAT
NAME GTiff
DRIVER GDAL/GTiff
MIMETYPE image/tiff
IMAGEMODE RGB
EXTENSION tif
END


# Start of LAYER DEFINITIONS 
-

# --
# Layer: Nutzungs-Grenzen
# --
LAYER
NAME nutzungs-grenzen
#GROUP nutzungs-grenzen
METADATA
'OWS_TITLE' 'Nutzungs-Grenzen'
WFS_TITLE Nutzungs-Grenzen

GML_INCLUDE_ITEMS  all
GML_FEATUREID  ID

END

MAXFEATURES 1000
EXTENT  -7 18 -1000 28  #for EPSG:31254

DATA /data/Geodaten/Grenzen/DKM/Vorarlberg/Nutzung/NFL

OPACITY  100

TYPE polygon
MINSCALEDENOM 100
MAXSCALEDENOM 5001
STATUS ON
DUMP TRUE

CLASS
NAME Nutzungs-Grenzen
STYLE

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

2011-11-08 Thread sulu
Hi Jörg.

Thanks for answering.


Jörg Thomsen wrote:
 
 hi,
 
 1st: there is no definition of the srs of the source data.
 2nd: have you tried putting the line
 WFS_SRSEPSG:31254 EPSG:3785 EPSG:4326 EPSG:31284
 EPSG:32632
 EPSG:25832 EPSG:21781
 into your metadata-layer-section?
 
 Jörg
 


ad 1st:
something like 
PROJECTION
init=epsg:31254
END #end projection
??
I intentionally left it out because my impression is that WFS does not like
any SRS-Definitions on the layer level.

ad 2nd:
Yes. I tried but no effect.

What i'm really searching is a mapfile which works with different SRS.









--
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/WFS-with-several-SRS-tp6973831p6974205.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


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

2011-11-08 Thread sulu

Yewondwossen Assefa wrote:
 
 Hi,
 
   Multiple SRS is only valid for wfs 1.1 and higher.
   The support of it in  MapServer was added only for MapServer 6.0 [1].
 Hope this helps.
 
 [1] http://trac.osgeo.org/mapserver/ticket/3227
 
 best regards,
 
 Y. Assefa
 
 
Thanks. 
This answers it quite thoroughly i would say. 
So next thing is to try out mapserver 6.xxx

Cheers Andy


--
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/WFS-with-several-SRS-tp6973831p6974377.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


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

2011-11-08 Thread sulu



Jeff McKenna wrote:
 
 Hello,
 
 Some quick notes that may assist you as you travel down this path:
 
 - for any WMS/WFS/OGC mapfiles, I always
- check my GetCapabilities response in a text editor for any
 Warning text, if any exist then change the mapfile until all warnings
 from GetCapabilities are gone
- make sure that each layer has a PROJECTION object (the source
 projection for that layer)
- make sure to have a MAP-level PROJECTION object
- make sure the WEB object's METADATA parameter has a wms_srs or
 wfs_srs or ows_srs line that lists/advertises several different
 projections (as previously mentioned in another response)
 
 Hope that helps you through your travels.
 
 -jeff
 

Thanks for the hints.
I tried them all but as Yewondwossen ASSEFA points out there ist no avail
for multiple SRS and WFS   with mapserver prior version 6.0.
But your posting gives me something akin of a checklist for my mapfiles.
btw. I had only some harmless warnings in my GetCapabiltities-XML.

-Andy



--
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/WFS-with-several-SRS-tp6973831p6974399.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


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

2011-11-08 Thread sulu

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 25
   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@.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.
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] Re: HTTP request error. CURLOPT_PROXYAUTH not supported. Requires Curl 7.10.7 and up

2011-06-01 Thread sulu
Update.

Am i doing something wrong here?

There is the same problem when i use the ms4w-windows-mapserver (5.6.6)

It also complains about 
CURLOPT_PROXYAUTH not supported. Requires Curl 7.10.7 and up

Maybe there is something amiss in the mapefile.
snippet start
wms_proxy_auth_type ntlm
wms_proxy_type http
wms_proxy_host that_proxy_of_ours
wms_proxy_port 8080
wms_proxy_username xxx
wms_proxy_password yy
snippet end

Cheers
Andy




--
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/HTTP-request-error-CURLOPT-PROXYAUTH-not-supported-Requires-Curl-7-10-7-and-up-tp6421746p6426115.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] Re: HTTP request error. CURLOPT_PROXYAUTH not supported. Requires Curl 7.10.7 and up

2011-06-01 Thread sulu
That sould not be the problem.

On the centos-box we have:
yum list | grep -i curl
curl.i386  7.15.5-9.el5_6.2   
installed
curl.x86_647.15.5-9.el5_6.2   
installed
curl-devel.i3867.15.5-9.el5_6.2   
installed
curl-devel.x86_64  7.15.5-9.el5_6.2   
installed


I cant tell about ms4w-mapserver. I just installed the binary.


--
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/HTTP-request-error-CURLOPT-PROXYAUTH-not-supported-Requires-Curl-7-10-7-and-up-tp6421746p6426136.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] Re: HTTP request error. CURLOPT_PROXYAUTH not supported. Requires Curl 7.10.7 and up

2011-06-01 Thread sulu
Hi Jukka.

Thanks for answering.

If i use only wms_proxy_host and wms_proxy_port parameter in the
Layer/Metadata i get a plain old 407 because of missing credentials.
But if wms_proxy_password comes into use the CURLOPT_PROXYAUTH not
supported-error shows up.

--
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/HTTP-request-error-CURLOPT-PROXYAUTH-not-supported-Requires-Curl-7-10-7-and-up-tp6421746p6426206.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] HTTP request error. CURLOPT_PROXYAUTH not supported. Requires Curl 7.10.7 and up

2011-05-31 Thread sulu
Hello.

Im struck with
HTTP request error. CURLOPT_PROXYAUTH not supported. Requires Curl 7.10.7
and up
whenever i try to use proxy authentification.

I use mapserver 5.6.6 built from Source on a centos-linux-box.
Configure-statement:
./configure --with-proj=/usr/local --with-gdal=/usr/bin/gdal-config
--with-ogr=/usr/bin/gdal-config --with-fastcgi=/usr --with-wfs
--with-postgis=/usr/bin/pg_config --with-xml2-config=/usr/bin 
--with-wmsclient  --with-wfsclient

I found a thread from April-2011 covering the same issue but i could not
figure out a solution for myself.
But in that thread a compiler-option 
-DUSE_CURL -DCURLOPT_PROXYAUTH
caught my eye.

Is this -DUSE_CURL -DCURLOPT_PROXYAUTH the solution to my problem and how to
enable it?


Cheers
Andy



--
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/HTTP-request-error-CURLOPT-PROXYAUTH-not-supported-Requires-Curl-7-10-7-and-up-tp6421746p6421746.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] How to format a GetfeatureInfoRequest results?

2011-03-14 Thread sulu

Hi.

I'm in search of information/tutorial on formatting GetfeatureInfoRequests
by using HTML-Templates.

As an example; assume there is an attibute test which may have some
content or may not.

As far as i know i can format the result in the Body-HTML-Template like
that:
[item name=test format=$value escape=none]

This works but i would like to add some logic in order to improve it a bit.

E.g. add an if clause that returns n/a if the attribute has no content or
turn it red if the value exceeds som threshold.


--
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/How-to-format-a-GetfeatureInfoRequest-results-tp6168987p6168987.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] RE: How to format a GetfeatureInfoRequest results?

2011-03-14 Thread sulu
Hi Steve.

Thanks!

That works.

Is there a synopsis where i can look up the format options that are
available?

Maybe i'm struck with blindness  but i could not find them in the
mapserver.pdf.


Cheers
Andy



--
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/How-to-format-a-GetfeatureInfoRequest-results-tp6168987p6169182.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] MAXSCALEDENOM does not work as expected.

2011-02-21 Thread sulu

Hi.

Maybe there is an explanation for this phenomenon but if so, i don't know of
any.

If i want want to set an upper Scale limit of e. g. 1:5000 i have to
multiply 5000 by 0.75 (MAXSCALEDENOM 3750).

Thanks in advance.
Andy



-- 
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/MAXSCALEDENOM-does-not-work-as-expected-tp6048023p6048023.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: AW: [mapserver-users] MAXSCALEDENOM does not work as expected.

2011-02-21 Thread sulu

Hi Andreas.

Thanks a lot.

Works perfectly!

I didn't notice this parameter in the MAP-Section.

My bad.


Cheers
Andy
-- 
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/MAXSCALEDENOM-does-not-work-as-expected-tp6048023p6048401.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] RE: GetfeatureInfo-Request in an UTF-8 environment with shapfile in cp-1252

2011-02-11 Thread sulu

Hi Tom.

Just got out of my sick bed. Sorry for my late reply.

Interesting information. Thanks.
We intend to use open-source-source-software as much as possible.
The issue refers to UMN-Mapserver.
-- 
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/GetfeatureInfo-Request-in-an-UTF-8-environment-with-shapfile-in-cp-1252-tp6004140p6015899.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] Re: GetfeatureInfo-Request in an UTF-8 environment with shapfile in cp-1252

2011-02-11 Thread sulu

Hi Daniel.



Daniel Morissette wrote:
 
 The short answer is that there is no mechanism in MapServer at the 
 moment to convert encoding of attributes displayed in a query template, 
 so your only options are to either change the encoding of the data files 
 to UTF-8, or change the template.html and its header to match the 
 encoding of the data. (The only place where MapServer supports encoding 
 conversion at the moment is in map labels, see the ENCODING keyword in 
 the LABEL docs.)
 
 Of course this could be a nice enhancement to MapServer if there was a 
 group interested in funding it.
 

Yeah. I thought so myself.
It would be a nice enhancement. One just have to think of some heterogeneous
data-source, with different encodings, which feed a single map.

Can you give some crude guess what amount of funding this feature would
require?

Cheers
Andy


-- 
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/GetfeatureInfo-Request-in-an-UTF-8-environment-with-shapfile-in-cp-1252-tp6004140p6015915.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] Re: GetfeatureInfo-Request in an UTF-8 environment with shapfile in cp-1252

2011-02-11 Thread sulu

Hi Milo.

Thanks fo the hint. 
Unfortunately it has noc effect. Whatever i put in the Template file, e. g.
meta http-equiv=Content-Type content=text/html;
charset=iso-8859-1/meta , mozzilla tells me it uses utf-8 (right-click
on the displayed html-page).

I have no clue.
-- 
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/GetfeatureInfo-Request-in-an-UTF-8-environment-with-shapfile-in-cp-1252-tp6004140p6015930.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] Re: GetfeatureInfo-Request in an UTF-8 environment with shapfile in cp-1252

2011-02-11 Thread sulu

Hi Assefa.


Yewondwossen Assefa wrote:
 
 [1] http://trac.osgeo.org/mapserver/ticket/3297
 

So, is there a patch for Mapserver 6.0 (we use 5.6.5 currently) which allows
to apply custom encoding on a layer basis? That would be rather convenient.
-- 
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/GetfeatureInfo-Request-in-an-UTF-8-environment-with-shapfile-in-cp-1252-tp6004140p6015965.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users