Re: [mapserver-users] ArcSDE, Win32 and truncated GetCapabilities
I wonder if this could be related to some general issues we've been experiencing with with SDE and queries. Get capabilities obviously doesn't do a query but it might be getting a list of attributes for presentation. That's where the issue seems to be. Check out ticket #3977. I've applied a fix to branch-6-0 only but it's trivial to fix trunk too if you can compile from source. I was waiting on some testing feedback before applying more broadly. Steve On Mon, Aug 8, 2011 at 4:30 AM, Stephan Holl stephan.h...@intevation.dewrote: Hello, since there is no reply for some time now I follow up to myself here. Stephan Holl stephan.h...@intevation.de, [20110728 - 10:15:14] Dear list, I have an ArcSDE-Layer-based mapfile. When requesting a GetCapabilities-doc in Version 1.1.1 and 1.3.0, the output gets truncated. In 1.0.0 the GetCapabilities-Document is finished though, strange. I am running MapServer 6.1-dev (r11785) on Windows 7 with Apache 2.2.19 against ArcSDE 9.3.1. I found some quite old issues[1],[2] which seem to have the same problem, but apparently they are fixed. It seems that mapserver segfaults here (no errors given in any logfile with DEBUG 5 in web and layer-level) or the GetCaps-buffer is to small for the output.. Can anybody provide some debug-hints on windows though? Best Stephan -- Stephan Holl stephan.h...@intevation.de | Tel.: +49 (0)541-33 508 3663 Intevation GmbH, Neuer Graben 17, 49074 OS | AG Osnabrück - HR B 18998 Geschäftsführer: Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Proposed MapServer project additions...
Greetings MapServer User! This message is to inform you about some project changes being considered by the MapServer project steering committee (PSC). Specifically we are looking to expand the functionality offered by the project by integrating a couple of external projects. The projects under consideration are: -- TinyOWS - http://tinyows.org/ for PostGIS-based WFS-T -- MapCache (currently named mod-geocache) - http://code.google.com/p/mod-geocache/ for tile cache support Both projects have close ties to MapServer and add important capabilities. At this point integration means merging project governance, communications (mailing list/website), change management (SVN) and issue tracking (Trac). As a MapServer user you probably won't notice much of a difference since we'd continue to use MapServer infrastructure. You will start to see questions related to these new components on the mapserver mailing lists (-users, -dev) and we hope folks will take advantage of these new features if the need exists. For more detail on the proposed integration visit: -- http://mapserver.org/development/rfc/ms-rfc-70.html -- http://mapserver.org/development/rfc/ms-rfc-71.html The next significant MapServer release would be dubbed MapServer Suite and would contain all project components, that is, MapServer CGI, MapServer MapScript, MapServer TinyOWS and MapServer MapCache. The PSC is excited about the possibilities for the project and our users, and welcome any comments, questions or concerns regarding these proposed changes. Users interested in following or participating in MapServer development are encouraged to join the mapserver-dev mailing list. Steve Chair, MapServer PSC ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] ArcSDE, Win32 and truncated GetCapabilities
Hello Steve, thanks for your answer, Steve Lime sdl...@gmail.com, [20110809 - 01:13:43] I wonder if this could be related to some general issues we've been experiencing with with SDE and queries. Get capabilities obviously doesn't do a query but it might be getting a list of attributes for presentation. That's where the issue seems to be. Check out ticket #3977. I've applied a fix to branch-6-0 only but it's trivial to fix trunk too if you can compile from source. I was waiting on some testing feedback before applying more broadly. Ahh, I see. I will pull out a patch[1] and try to apply on trunk since I have a recent trunk build-env. Reading the ticket seems the exact same problem I am facing. Btw. GetFeatureInfo also returns the famous 500 Premature End of script... error. Probably related. Best Stephan [1] http://trac.osgeo.org/mapserver/changeset/12031 On Mon, Aug 8, 2011 at 4:30 AM, Stephan Holl stephan.h...@intevation.dewrote: Hello, since there is no reply for some time now I follow up to myself here. Stephan Holl stephan.h...@intevation.de, [20110728 - 10:15:14] Dear list, I have an ArcSDE-Layer-based mapfile. When requesting a GetCapabilities-doc in Version 1.1.1 and 1.3.0, the output gets truncated. In 1.0.0 the GetCapabilities-Document is finished though, strange. I am running MapServer 6.1-dev (r11785) on Windows 7 with Apache 2.2.19 against ArcSDE 9.3.1. I found some quite old issues[1],[2] which seem to have the same problem, but apparently they are fixed. It seems that mapserver segfaults here (no errors given in any logfile with DEBUG 5 in web and layer-level) or the GetCaps-buffer is to small for the output.. Can anybody provide some debug-hints on windows though? Best Stephan -- Stephan Holl stephan.h...@intevation.de | Tel.: +49 (0)541-33 508 3663 Intevation GmbH, Neuer Graben 17, 49074 OS | AG Osnabrück - HR B 18998 Geschäftsführer: Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Stephan Holl stephan.h...@intevation.de | Tel.: +49 (0)541-33 508 3663 Intevation GmbH, Neuer Graben 17, 49074 OS | AG Osnabrück - HR B 18998 Geschäftsführer: Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner signature.asc Description: PGP signature ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Variable substitution error with non-ASCII characters
Hi, I am preparing an on-line demonstration about how to make queries against PostgreSQL/PostGIS key-value store with MapServer and I fear it would be too hard for me and possible readers to use UTF-8 encoding with their browsers. I think I will just tell that non-ASCII characters cannot be used at the moment. When it comes to risk of SQL injection I must just take it because I have not found another way to do what I want yet. I hope that having a separate PostGIS user with just select rights is limiting the risk. The data on my server is free so I do not need to protect it. But of course unkind people can easily construct very heavy queries and block my service. What I am playing with is to have OpenSteetMap data in PostGIS so that all the OSM tags are stored into one single column which is of PostgrSQL hstore datatype. It is a key-value store and thus a kind of a NoSQL thing. More info about hstore is at http://www.postgresql.org/docs/9.0/static/hstore.html I notised that MapServer allows to utilise this key-value store without a fixed schema pretty nice through WMS and WFS services, even OGC definitely did not define them to support NoSQL. However, making queries against hstore attribute (the key-value store) is not possible with standard SLD or OGC Filter encoding. Making SQL queries from hstore is somewhat tricky but I have been reading this document and managed to do working queries http://rubydoc.info/gems/activerecord-postgres-hstore/0.1.0/frames OpenStreetMap data from Finland contain right now totally different keys http://tagwatch.stoecker.eu/Finland/En/tags.html and with variable substitution I can query just everything with Mapserver. I can make selection and show a map with WMS and next I can do the same selection and download data with WFS. I have a feeling that Mapserver is one of the best tools that exist for making this kind of Query-Visualize-Download stuff with OpenStreetMap data or any other data having attributes as unstructured key-value pairs. Even the OSM project itseld does not have such a service at the moment. But Mapserver cannot deliver vector data in OSM.xml format so it is a different thing for some people. If question is just about using the data then GML should work as well. Perhaps developers will get interested in making some more secure way for building hstore queries. One alternative could be to make Mapserver to recognise hstore column and make OGC PropertyIsLike queries to lead into suitable SQL. Next should be a working live example about selecting tags highway=bus_stop (or anything else by editing the sql parameter) from OSM point data, showing them on a map and later downloading the same data with WFS. ANDs and ORs are naturally supported as well as BBOX and other OGC spatial filters. Show a map 188.64.1.61/cgi-bin/ms_ows?REQUEST=GetMapSERVICE=WMSVERSION=1.1.1WIDTH=563HEIGHT=437LAYERS=sea,borders,osm_pisteetTRANSPARENT=TRUEFORMAT=image/pngBBOX=-369151.98300283286,6597900.0,1511076.628895184,8057331.444759207SRS=EPSG:3067STYLES=sql=(tags @'highway=bus_stop') Get the data (ten first features with this query) 188.64.1.61/cgi-bin/ms_ows?service=wfsversion=1.0.0request=getfeaturetypename=osm_pisteetsql=(tags @'highway=bus_stop')maxFeatures=10 -Jukka Rahkonen- Even Rouault wrote: Selon Rahkonen Jukka jukka.rahko...@mmmtike.fi: Did you check the encoding of your 'ä' character ? I would think that if it is sent in UTF-8 it should work. I'd also warn you that unless you've defined a very strict validation pattern, such use of substitution is potentially dangerous because it leaves the door wide open to SQL injections. Hi, I have been playing with variable substitution inside the DATA part of my mapfile. I have defined variable %sql% which is tranferred inside a WHERE part of the SQL selecting data for me. The next with sql=highway='bus_stop' works fine. http://188.64.1.61/cgi-bin/ms_ows?REQUEST=GetMapSERVICE=WMSV http://188.64.1.61/cgi-bin/ms_ows?REQUEST=GetMapSERVICE=WMSV ERSION=1.1.1WIDTH=563HEIGHT=437 LAYERS=osm_pisteetTRANSPARENT=TRUEFORMAT=image/pngBBOX=-36 9151.98300283286,6597900.0,1511076.628895184,8057331.444759207 SRS=EPSG:3067STYLES=sql=highway='bus_stop' However, if the variable contains non-ASCII characters the queries will fail. For example sql=highway='ä' gives the following error. ?xml version='1.0' encoding=ISO-8859-1 standalone=no ? !DOCTYPE ServiceExceptionReport SYSTEM http://schemas.opengis.net/wms/1.1.1/exception_1_1_1.dtd http://schemas.opengis.net/wms/1.1.1/exception_1_1_1.dtd ServiceExceptionReport version=1.1.1 ServiceException msDrawMap(): Image handling error. Failed to draw layer named #39;osm_pisteet#39;. msPostGISLayerWhichShapes(): Query error. Error (ERROR: invalid byte sequence for encoding quot;UTF8quot;: 0xe42729 ) executing query: select encode(ST_AsBinary(ST_Force_2D(quot;wayquot;),#39;NDR#39;)
Re: [mapserver-users] WFS Spatial Filter Problem
Dear Kai and Assefa, After you two guys requested me to send you my setup, I exported the content in the databasetable to a shapefile so you can test it. When I tested the spatial filter right after that, it suddenly worked ! This narrows down the possibilities: - The request I send is definitely not the problem anymore. It works with MapServer + shapefile and with GeoServer. - I exported only the geometries to the shapefile in the table with geometrytype = POLYGON because from ~8000 geometries ~10 are linestrings. So I investigated possible problems with the linestring geometries by telling the MapServer not to serve them using a subquery in the mapfile: DATA the_geom from (select * from alldata where geometrytype(the_geom) = 'POLYGON') as subquery using unique product_id using SRID=4326 Error 500 still occured. Therefore, the data can't be the problem neither, right? - Since I didn't change anything else MapServer must have problems communicating with the PostGIS database, but why Error 500 then? Here is my mapfile: MAP NAME WFS Server STATUS ON SIZE 600 400 SYMBOLSET /var/www/html/psa/bhempen/mapservertest/symbols/symbols.sym EXTENT -180 -90 180 90 UNITS DD SHAPEPATH /var/www/html/psa/bhempen/mapservertest/data/ IMAGECOLOR 255 255 255 FONTSET /var/www/html/psa/bhempen/mapservertest/fonts/fonts.list MAXSIZE 4096 # needs to be set because otherwise an error will appear when rendering images on large screens #IMAGECOLOR 200 200 200 #commented out for WFS PROJECTION 'init=epsg:4326' END WEB TEMPLATE '/var/www/html/psa/bhempen/mapservertest/template.html' IMAGEPATH '/var/www/html/psa/bhempen/tmp/' IMAGEURL '/psa/bhempen/tmp/' METADATA wfs_title WFS Demo Server for MapServer ## REQUIRED wfs_onlineresource http://localhost/cgi-bin/psa/mapserv?map=/home/bhempen/wfs.map; ## Recommended wfs_srsEPSG:4326 ## Recommended wfs_abstract This text describes my WFS service. ## Recommended END END LAYER NAME omega STATUS DEFAULT TYPE POLYGON METADATA wfs_title omega footprints ##REQUIRED wfs_srs EPSG:4326 ## REQUIRED gml_include_items all ## Optional (serves all attributes for layer) gml_featureid product_id ## REQUIRED END PROJECTION init=epsg:4326 END CONNECTIONTYPE POSTGIS CONNECTION host=localhost port=xxx dbname=xxx user=xxx password=xxx DATA the_geom from alldata using unique product_id using SRID=4326 CLASS STYLE OUTLINECOLOR125 0 0 END END DUMP TRUE ## REQUIRED END # layer END Does anyone see a problem with the setup? Many thanks to Kai and Assefa for the help so far! I am going to send you the shapefile (which you could import into the database with pgsql2shp), the mapfile, and my client. Kind regards, Bryan This message and any attachments are intended for the use of the addressee or addressees only. The unauthorised disclosure, use, dissemination or copying (either in whole or in part) of its content is not permitted. If you received this message in error, please notify the sender and delete it from your system. Emails can be altered and their integrity cannot be guaranteed by the sender. Please consider the environment before printing this email. = ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] mapserver tilecache
I has wrote a mapfile. It can be published successfully with openlayers. But its speed is very slow. So I try to use tilecache to improve the speed. now I have install the tilecache, and it can run with the example.But it doesn't run with my mapfile. Here is the program [road] type=WMS url=http://localhost/cgi-bin/mapserv.exe?map=/ms4w/Apache/htodcs/file/jia1_test.maptransparent=true; layers=build,street extension=png bbox=-180 -90 180 90 maxResolution=0.0439453 srs=EPSG:4326 level=20 the html as follow: layer = new OpenLayers.Layer.WMS( global, http://localhost/tilecache-2.10/tilecache.py?;, {layers: 'build,street', format: 'image/png' } ); map.addLayer(layer); Anyone can help me,thanks!!! ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] WFS Spatial Filter Problem
Hi again, Another thing I just noticed is that the getCapabilities doesn't list any logical operator: ogc:Scalar_Capabilities ogc:Logical_Operators/ ogc:Comparison_Operators ogc:Simple_Comparisons/ ogc:Like/ ogc:Between/ /ogc:Comparison_Operators /ogc:Scalar_Capabilities According to http://mapserver.org/ogc/filter_encoding.html#currently-supported-features the operators AND OR and NOT should be supported. Shouldn't they be listed then? Even in the example in the documentation they are not listed: http://mapserver.org/ogc/filter_encoding.html#server-side However, it seems that it doesn't make a difference at least in my case. The getCapabilities response is the same with a POSTGIS connection and with a shapefile (both containing the same data). Regards, Bryan This message and any attachments are intended for the use of the addressee or addressees only. The unauthorised disclosure, use, dissemination or copying (either in whole or in part) of its content is not permitted. If you received this message in error, please notify the sender and delete it from your system. Emails can be altered and their integrity cannot be guaranteed by the sender. Please consider the environment before printing this email. = ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] SLD and LABEL MINDISTANCE ..?
Hello, I'm using SLD with a TextSymbolizer section for labeling my polygons (this is what I have at the moment http://www.pastie.org/2344427). It works well except that I miss the MINDISTANCE of the LABEL section and wondered if there is a way to do it in the SLD ..? Does Mapserver supports some VendorOption that are undocumented? Is there a way to mix a LABEL section (in the .map file) with the SLD? Thanks, Julien -- No trees were killed in the creation of this message. However, many electrons were terribly inconvenienced. attachment: jcigar.vcf___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Encoding problems in GetCapabilities-document with WMS_VERSION 1.3.0
Hi, I am running Mapserver 5.6.5. If I request the GetCapabilities with WMS_VERSION 1.1.1, I get a XML-Document encoding UTF-8 and the German Umlaute like üäö and so on are shown correctly. --- ?xml version='1.0' encoding=UTF-8 standalone=no ? !DOCTYPE WMT_MS_Capabilities SYSTEM http://schemas.opengis.net/wms/1.1.1/WMS_MS_Capabilities.dtd; [ !ELEMENT VendorSpecificCapabilities EMPTY ] !-- end of DOCTYPE declaration -- WMT_MS_Capabilities version=1.1.1 !-- MapServer version 5.6.5 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=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS INPUT=TIFF INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=MYGIS INPUT=SHAPEFILE -- Service NameOGC:WMS/Name TitleHintergrundkarten Deutschland/Title AbstractKarte zum ÜÜberblick üüber Deutschland basierend auf DGM250 u.a./Abstract --- But if I change the request to WMS-VERSION 1.3.0 , my browser shows an error xml not well formed and the German Umlaute are not correct. - ?xml version='1.0' encoding=UTF-8 standalone=no ? WMS_Capabilities version=1.3.0 xmlns=http://www.opengis.net/wms; xmlns:sld=http://www.opengis.net/sld; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns:ms=http://mapserver.gis.umn.edu/mapserver; xsi:schemaLocation=http://www.opengis.net/wms http://schemas.opengis.net/wms/1.3.0/capabilities_1_3_0.xsd http://www.opengis.net/sld http://schemas.opengis.net/sld/1.1.0/sld_capabilities.xsd http://mapserver.gis.umn.edu/mapserver http://10.130.63.11/cgi-bin/mapserv?map=/data/mapserver/map/de_vector.mapamp;service=WMSamp;version=1.3.0amp;request=GetSchemaExtension; !-- MapServer version 5.6.5 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=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS INPUT=TIFF INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=MYGIS INPUT=SHAPEFILE -- Service NameWMS/Name TitleHintergrundkarten Deutschland/Title AbstractKarte zum ��berblick ��ber Deutschland basierend auf DGM250 u.a./Abstract ... -- Is there anything I can do? Thanks! Best regards from Munich! Stefan ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] ArcSDE, Win32 and truncated GetCapabilities
On 11-08-09 3:40 AM, Stephan Holl wrote: Ahh, I see. I will pull out a patch[1] and try to apply on trunk since I have a recent trunk build-env. Reading the ticket seems the exact same problem I am facing. Btw. GetFeatureInfo also returns the famous 500 Premature End of script... error. Probably related. Hi Stephan, Is this your own compiled version of MapServer? If yes: I wonder if you could try your same tests with MS4W 3.0.3? Does the same issue occur? If no: what package are you using? Have you tried a different package to see if it can be duplicated? Thanks. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
RE [mapserver-users] mapserver tilecache
htdocs instead of htodcs You can use firebug to see the network errors steve 赫玄惠 xiaoshitou1986...@126.com@lists.osgeo.org Envoy? par : mapserver-users-boun...@lists.osgeo.org 2011-08-09 04:45 A mapserver-users@lists.osgeo.org cc Objet [mapserver-users] mapserver tilecache I has wrote a mapfile. It can be published successfully with openlayers. But its speed is very slow. So I try to use tilecache to improve the speed. now I have install the tilecache, and it can run with the example.But it doesn't run with my mapfile. Here is the program [road] type=WMS url=http://localhost/cgi-bin/mapserv.exe?map=/ms4w/Apache/htodcs/file/jia1_test.maptransparent=true; layers=build,street extension=png bbox=-180 -90 180 90 maxResolution=0.0439453 srs=EPSG:4326 level=20 the html as follow: layer = new OpenLayers.Layer.WMS( global, http://localhost/tilecache-2.10/tilecache.py?;, {layers: 'build,street', format: 'image/png' } ); map.addLayer(layer); Anyone can help me,thanks!!! ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
RE: [mapserver-users] WFS Spatial Filter Problem
Bryan, For testing, I would enable debugging at the MAP or LAYER level. If you set DEBUG 5, I think that you should be able to see the query that MapServer is crafting. More on debugging here: http://mapserver.org/optimization/debugging.html#debugging David. From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Bryan Hempen Sent: Tuesday, August 09, 2011 4:15 AM Cc: mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] WFS Spatial Filter Problem Dear Kai and Assefa, After you two guys requested me to send you my setup, I exported the content in the databasetable to a shapefile so you can test it. When I tested the spatial filter right after that, it suddenly worked ! This narrows down the possibilities: - The request I send is definitely not the problem anymore. It works with MapServer + shapefile and with GeoServer. - I exported only the geometries to the shapefile in the table with geometrytype = POLYGON because from ~8000 geometries ~10 are linestrings. So I investigated possible problems with the linestring geometries by telling the MapServer not to serve them using a subquery in the mapfile: DATA the_geom from (select * from alldata where geometrytype(the_geom) = 'POLYGON') as subquery using unique product_id using SRID=4326 Error 500 still occured. Therefore, the data can't be the problem neither, right? - Since I didn't change anything else MapServer must have problems communicating with the PostGIS database, but why Error 500 then? Here is my mapfile: MAP NAME WFS Server STATUS ON SIZE 600 400 SYMBOLSET /var/www/html/psa/bhempen/mapservertest/symbols/symbols.sym EXTENT -180 -90 180 90 UNITS DD SHAPEPATH /var/www/html/psa/bhempen/mapservertest/data/ IMAGECOLOR 255 255 255 FONTSET /var/www/html/psa/bhempen/mapservertest/fonts/fonts.list MAXSIZE 4096 # needs to be set because otherwise an error will appear when rendering images on large screens #IMAGECOLOR 200 200 200 #commented out for WFS PROJECTION 'init=epsg:4326' END WEB TEMPLATE '/var/www/html/psa/bhempen/mapservertest/template.html' IMAGEPATH '/var/www/html/psa/bhempen/tmp/' IMAGEURL '/psa/bhempen/tmp/' METADATA wfs_title WFS Demo Server for MapServer ## REQUIRED wfs_onlineresource http://localhost/cgi-bin/psa/mapserv?map=/home/bhempen/wfs.map;http://localhost/cgi-bin/psa/mapserv?map=/home/bhempen/wfs.map; ## Recommended wfs_srsEPSG:4326 ## Recommended wfs_abstract This text describes my WFS service. ## Recommended END END LAYER NAME omega STATUS DEFAULT TYPE POLYGON METADATA wfs_title omega footprints ##REQUIRED wfs_srs EPSG:4326 ## REQUIRED gml_include_items all ## Optional (serves all attributes for layer) gml_featureid product_id ## REQUIRED END PROJECTION init=epsg:4326 END CONNECTIONTYPE POSTGIS CONNECTION host=localhost port=xxx dbname=xxx user=xxx password=xxx DATA the_geom from alldata using unique product_id using SRID=4326 CLASS STYLE OUTLINECOLOR125 0 0 END END DUMP TRUE ## REQUIRED END # layer END Does anyone see a problem with the setup? Many thanks to Kai and Assefa for the help so far! I am going to send you the shapefile (which you could import into the database with pgsql2shp), the mapfile, and my client. Kind regards, Bryan This message and any attachments are intended for the use of the addressee or addressees only. The unauthorised disclosure, use, dissemination or copying (either in whole or in part) of its content is not permitted. If you received this message in error, please notify the sender and delete it from your system. Emails can be altered and their integrity cannot be guaranteed by the sender. Please consider the environment before printing this email. = ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] ArcSDE, Win32 and truncated GetCapabilities
Hallo Jeff, Jeff McKenna jmcke...@gatewaygeomatics.com, [20110809 - 08:58:12] On 11-08-09 3:40 AM, Stephan Holl wrote: Ahh, I see. I will pull out a patch[1] and try to apply on trunk since I have a recent trunk build-env. Reading the ticket seems the exact same problem I am facing. Btw. GetFeatureInfo also returns the famous 500 Premature End of script... error. Probably related. Hi Stephan, Is this your own compiled version of MapServer? yes, I compile it by myself based on a trunk-checkout using the SDK provided by Tamas. If yes: I wonder if you could try your same tests with MS4W 3.0.3? Does the same issue occur? I could test for sure, but I am afraid not within this week though. I put it on my list. AFAIK ArcSDE-Support is built in MS4W (which I will need though). If no: what package are you using? Have you tried a different package to see if it can be duplicated? What packages do you mean? Best Stephan -- Stephan Holl stephan.h...@intevation.de | Tel.: +49 (0)541-33 508 3663 Intevation GmbH, Neuer Graben 17, 49074 OS | AG Osnabrück - HR B 18998 Geschäftsführer: Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner signature.asc Description: PGP signature ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Class transparent
Hello, I'ma mapserver beginner. I want to set a class (buffer about hydrant) in a layer transparent. Can I do this with OPACITY 50? Or in the Symbol File? When yes, where in a mapfile? Greets Mark Kellermann ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] problem running python mapscript
Hi all, I've successfully build and install Python MapScript (I get some warnings while building but I don't get any errors). I am trying to run a simple application testing Python MapScript given in Bill Kropla's book. I am able to execute my pytest.py script in command line and can see the generated image in /tmp directory but while I tried using browser (IE 8) to execute it, it just prints my code and doesn't generate image in /tmp directory as well. I don't think I need to make any configuration changes in CGI for execution of the script. Does anyone has idea about the problem? Here is my pytest.py and hello.map file. #!/usr/bin/python import cgi import mapscript import random image_name = helloworld.png map = mapscript.mapObj (/home/public_html/map_server/pytest.map) img=map.draw() img.save(/home/public_html/map_server/tmp/ + image_name) print Content-type: text/html print print html print headertitlePython Mapscript Test/title/header print body print form name=hello action=pytest.py method=POST input type=image name=img src=/tmp/%s /form % image_name print /body print /html my hello.map is: MAP NAME hello_world SIZE 400 300 EXTENT -1.00 -1.00 1.00 1.00 IMAGECOLOR 180 180 250 IMAGETYPE PNG WEB TEMPLATE /home/public_html/pytest.py IMAGEPATH /home/public_html/map_server/tmp/ IMAGEURL /tmp/ END LAYER TYPE point STATUS DEFAULT FEATURE POINTS 0.0 0.0 END TEXT Hello World END CLASS STYLE COLOR 255 0 0 END LABEL TYPE bitmap END END END END___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] WFS Client through Proxy and HTTP Authentication
Hi, I have MapServer 5.6.0 running on RHEL5.5 (FGS9.5 MapServer package) I'm behind a proxy (NTLM), and I want to access a WFS source outside that requires HTTP Authentication. I'm using a WFS Client setup in my Map file, and I'm accessing my MapServer using WFS too - eg. a WFS Client... all up a sort of WFS Relay. I can do it fine with WMS, however, I can't get it to work with WFS - is it actually supposed to work? (not documented in the manual.) I tried using ows_ prefixed METADATA which works fine with WMS (to the same service.) Here's my map file extract: LAYER NAME TempDryBulb TYPE RASTER STATUS ON DEBUG ON CONNECTIONTYPE WMS CONNECTION http://reg.bom.gov.au/cgi-bin/reg/ws/gis/users/bomg0022/wxs?; METADATA # Source Data wfs_connectiontimeout 30 wfs_maxfeatures 10 wfs_typename IDY03103_dryblb wfs_version 1.0.0 wfs_srs EPSG:4283 # Source Auth ows_auth_username mybomuser ows_auth_password {secrethere} ows_auth_type basic # EDN Proxy Auth ows_proxy_auth_type ntlm ows_proxy_host httpgw.mycompany.com.au ows_proxy_port 8080 ows_proxy_type http ows_proxy_username myuser ows_proxy_password {secrethere} # Layer Outgoing Metadata wfs_title TempDryBulbWFS END # METADATA ... Here's my errors: [Tue Aug 9 14:01:18 2011].368922 HTTP: Starting to prepare HTTP requests. [Tue Aug 9 14:01:18 2011].369001 Using CURL_CA_BUNDLE=/home/maptools/fgs/share/curl/cacert.pem [Tue Aug 9 14:01:18 2011].369101 HTTP request: id=0, http://reg.bom.gov.au/cgi-bin/reg/ws/gis/users/bomg0022/wxs? [Tue Aug 9 14:01:18 2011].369260 HTTP: Before download loop [Tue Aug 9 14:01:18 2011].373358 HTTP: After download loop [Tue Aug 9 14:01:18 2011].373370 msHTTPExecuteRequests() timing summary per layer (connect_time + time_to_first_packet + download_time = total_time in seconds) [Tue Aug 9 14:01:18 2011].373378 HTTP: request failed with curl error code 6 (Couldn't resolve host 'reg.bom.gov.au') for http://reg.bom.gov.au/cgi-bin/reg/ws/gis/users/bomg0022/wxs?[Tue Aug 9 14:01:18 2011].373387 msHTTPExecuteRequests(): HTTP request error. HTTP: request failed with curl error code 6 (Couldn't resolve host 'reg.bom.gov.au') for http://reg.bom.gov.au/cgi-bin/reg/ws/gis/users/bomg0022/wxs? [Tue Aug 9 14:01:18 2011].373414 Layer 0: 0.000 + 0.000 + 0.000 = 0.000s [Tue Aug 9 14:01:18 2011].373584 msWFSLayerWhichShapes(): WFS connection error. Got HTTP status -6 downloading WFS layer TempDryBulbWFS [Tue Aug 9 14:01:18 2011].374109 msWFSLayerWhichShapes(): WFS connection error. Got HTTP status -6 downloading WFS layer TempDryBulbWFS [Tue Aug 9 14:01:18 2011].374124 msWFSGetFeature(): WFS server error. ms_error-code not found Note: I used msencrypt for the passwords, and these did work fine for WMS. Note2: using wget or curl from the command line on the server works fine (with the proxy credentials specified.) Thanks in advance! Regards, Bill Teluk - Regards, Bill Teluk -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/WFS-Client-through-Proxy-and-HTTP-Authentication-tp6670451p6670451.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: [mapserver-users] WFS Client through Proxy and HTTP Authentication
The error message says: Couldn't resolve host 'reg.bom.gov.au' Make sure this hostname does resolve on the machine running MapServer, that is has proper DNS config, etc. You could also try using the actual IP address instead of the hostname in the CONNECTION string to confirm that this is indeed the problem. Daniel On 11-08-09 09:10 PM, bte...@gmail.com wrote: Hi, I have MapServer 5.6.0 running on RHEL5.5 (FGS9.5 MapServer package) I'm behind a proxy (NTLM), and I want to access a WFS source outside that requires HTTP Authentication. I'm using a WFS Client setup in my Map file, and I'm accessing my MapServer using WFS too - eg. a WFS Client... all up a sort of WFS Relay. I can do it fine with WMS, however, I can't get it to work with WFS - is it actually supposed to work? (not documented in the manual.) I tried using ows_ prefixed METADATA which works fine with WMS (to the same service.) Here's my map file extract: LAYER NAME TempDryBulb TYPE RASTER STATUS ON DEBUG ON CONNECTIONTYPE WMS CONNECTION http://reg.bom.gov.au/cgi-bin/reg/ws/gis/users/bomg0022/wxs?; METADATA # Source Data wfs_connectiontimeout 30 wfs_maxfeatures 10 wfs_typename IDY03103_dryblb wfs_version 1.0.0 wfs_srs EPSG:4283 # Source Auth ows_auth_username mybomuser ows_auth_password {secrethere} ows_auth_type basic # EDN Proxy Auth ows_proxy_auth_type ntlm ows_proxy_host httpgw.mycompany.com.au ows_proxy_port 8080 ows_proxy_type http ows_proxy_username myuser ows_proxy_password {secrethere} # Layer Outgoing Metadata wfs_title TempDryBulbWFS END # METADATA ... Here's my errors: [Tue Aug 9 14:01:18 2011].368922 HTTP: Starting to prepare HTTP requests. [Tue Aug 9 14:01:18 2011].369001 Using CURL_CA_BUNDLE=/home/maptools/fgs/share/curl/cacert.pem [Tue Aug 9 14:01:18 2011].369101 HTTP request: id=0, http://reg.bom.gov.au/cgi-bin/reg/ws/gis/users/bomg0022/wxs? [Tue Aug 9 14:01:18 2011].369260 HTTP: Before download loop [Tue Aug 9 14:01:18 2011].373358 HTTP: After download loop [Tue Aug 9 14:01:18 2011].373370 msHTTPExecuteRequests() timing summary per layer (connect_time + time_to_first_packet + download_time = total_time in seconds) [Tue Aug 9 14:01:18 2011].373378 HTTP: request failed with curl error code 6 (Couldn't resolve host 'reg.bom.gov.au') for http://reg.bom.gov.au/cgi-bin/reg/ws/gis/users/bomg0022/wxs?[Tue Aug 9 14:01:18 2011].373387 msHTTPExecuteRequests(): HTTP request error. HTTP: request failed with curl error code 6 (Couldn't resolve host 'reg.bom.gov.au') for http://reg.bom.gov.au/cgi-bin/reg/ws/gis/users/bomg0022/wxs? [Tue Aug 9 14:01:18 2011].373414 Layer 0: 0.000 + 0.000 + 0.000 = 0.000s [Tue Aug 9 14:01:18 2011].373584 msWFSLayerWhichShapes(): WFS connection error. Got HTTP status -6 downloading WFS layer TempDryBulbWFS [Tue Aug 9 14:01:18 2011].374109 msWFSLayerWhichShapes(): WFS connection error. Got HTTP status -6 downloading WFS layer TempDryBulbWFS [Tue Aug 9 14:01:18 2011].374124 msWFSGetFeature(): WFS server error. ms_error-code not found Note: I used msencrypt for the passwords, and these did work fine for WMS. Note2: using wget or curl from the command line on the server works fine (with the proxy credentials specified.) Thanks in advance! Regards, Bill Teluk - Regards, Bill Teluk -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/WFS-Client-through-Proxy-and-HTTP-Authentication-tp6670451p6670451.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 -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Re: WFS Client through Proxy and HTTP Authentication
Thanks Daniel, I can't get the actual IP because I'm behind a proxy, on an intranet. But I know the proxy can correctly resolve the URL, because it works fine when I send a WMS request into my server (which then successfully sends a WMS request back out to the external source.) Likewise if I manually generate the WFS requests on the server using curl, it works fine (noting that I have to specify the proxy name and credentials.) It seems as if something is preventing the WFS request from using the same proxy handling metadata as per the WMS request. I've checked the curl installation and it certainly works using manual parameters for the proxy to the same external WFS URL. I've tried a packet trace whilst sending the request to my map server - for WMS, I can that it performs look-ups to the local DNS for the proxy and then communicates with the proxy from then on for the rest of the transaction (expected behaviour.) But for WFS, it doesn't attempt a DNS lookup for the proxy or even connect to it - it just tries to get the WFS request out using the local DNS - which fails of course because I'm in an intranet environment where the DNS can't see the Internet. I've attached my full map file - the WMS is a separate layer and works fine. The localhost:20080 references are to overcome the server being behind a private network within the Intranet - localhost:20080 is a PuTTY tunnel to access the server - the server itself can get out to the Internet fine when using proxy credentials. Regards, Bill Teluk http://osgeo-org.1803224.n2.nabble.com/file/n6670606/bom.map bom.map - Regards, Bill Teluk -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/WFS-Client-through-Proxy-and-HTTP-Authentication-tp6670451p6670606.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: [mapserver-users] Re: WFS Client through Proxy and HTTP Authentication
Hi Bill, It turns out that proxy and auth support is not implemented in the WFS client layer code. It is only present in the WMS layer code. I have created a ticket for this and attached an untested patch to it: http://trac.osgeo.org/mapserver/ticket/3982 The final fix will require a cleaner job, but this quick patch should work if you are able to build from source. Daniel On 11-08-09 10:29 PM, bte...@gmail.com wrote: Thanks Daniel, I can't get the actual IP because I'm behind a proxy, on an intranet. But I know the proxy can correctly resolve the URL, because it works fine when I send a WMS request into my server (which then successfully sends a WMS request back out to the external source.) Likewise if I manually generate the WFS requests on the server using curl, it works fine (noting that I have to specify the proxy name and credentials.) It seems as if something is preventing the WFS request from using the same proxy handling metadata as per the WMS request. I've checked the curl installation and it certainly works using manual parameters for the proxy to the same external WFS URL. I've tried a packet trace whilst sending the request to my map server - for WMS, I can that it performs look-ups to the local DNS for the proxy and then communicates with the proxy from then on for the rest of the transaction (expected behaviour.) But for WFS, it doesn't attempt a DNS lookup for the proxy or even connect to it - it just tries to get the WFS request out using the local DNS - which fails of course because I'm in an intranet environment where the DNS can't see the Internet. I've attached my full map file - the WMS is a separate layer and works fine. The localhost:20080 references are to overcome the server being behind a private network within the Intranet - localhost:20080 is a PuTTY tunnel to access the server - the server itself can get out to the Internet fine when using proxy credentials. Regards, Bill Teluk http://osgeo-org.1803224.n2.nabble.com/file/n6670606/bom.map bom.map - Regards, Bill Teluk -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/WFS-Client-through-Proxy-and-HTTP-Authentication-tp6670451p6670606.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 -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Re: WFS Client through Proxy and HTTP Authentication
Hi Daniel, Thanks for confirming the problem - now I know it's not a fault with my config. Much appreciated! Thanks very much for writing a patch so quickly - I'm not able to take advantage of it immediately but I may be able to, further down the track. Regards, Bill Teluk. Daniel Morissette wrote: Hi Bill, It turns out that proxy and auth support is not implemented in the WFS client layer code. It is only present in the WMS layer code. I have created a ticket for this and attached an untested patch to it: http://trac.osgeo.org/mapserver/ticket/3982 The final fix will require a cleaner job, but this quick patch should work if you are able to build from source. Daniel On 11-08-09 10:29 PM, bte...@gmail.com wrote: Thanks Daniel, I can't get the actual IP because I'm behind a proxy, on an intranet. But I know the proxy can correctly resolve the URL, because it works fine when I send a WMS request into my server (which then successfully sends a WMS request back out to the external source.) Likewise if I manually generate the WFS requests on the server using curl, it works fine (noting that I have to specify the proxy name and credentials.) It seems as if something is preventing the WFS request from using the same proxy handling metadata as per the WMS request. I've checked the curl installation and it certainly works using manual parameters for the proxy to the same external WFS URL. I've tried a packet trace whilst sending the request to my map server - for WMS, I can that it performs look-ups to the local DNS for the proxy and then communicates with the proxy from then on for the rest of the transaction (expected behaviour.) But for WFS, it doesn't attempt a DNS lookup for the proxy or even connect to it - it just tries to get the WFS request out using the local DNS - which fails of course because I'm in an intranet environment where the DNS can't see the Internet. I've attached my full map file - the WMS is a separate layer and works fine. The localhost:20080 references are to overcome the server being behind a private network within the Intranet - localhost:20080 is a PuTTY tunnel to access the server - the server itself can get out to the Internet fine when using proxy credentials. Regards, Bill Teluk http://osgeo-org.1803224.n2.nabble.com/file/n6670606/bom.map bom.map - Regards, Bill Teluk -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/WFS-Client-through-Proxy-and-HTTP-Authentication-tp6670451p6670606.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 -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users - Regards, Bill Teluk -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/WFS-Client-through-Proxy-and-HTTP-Authentication-tp6670451p667.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