Re: [mapserver-users] ogc:Literal parameter for size tags in SLD
Hi Yves, I opened a ticket [1] regarding the support of both Literal and non literal use for the size parameter. I have committed a fix in trunk. If possible please cc your self in that trac bug comments. best regards, Y Assefa [1]: http://trac.osgeo.org/mapserver/ticket/4065 On 11-10-28 08:01 AM, Yves Jacolin wrote: Hello, I have a SLD with the following: se:Graphic se:Mark se:WellKnownNamecross/se:WellKnownName se:Fill/se:Fill se:Stroke/se:Stroke /se:Mark se:Opacity/se:Opacity se:Size ogc:Literal12/ogc:Literal /se:Size ... /se:Graphic If I change se:Size ogc:Literal12/ogc:Literal /se:Size to se:Size12/se:Size it is not working anymore. OGC standards gives some example with the former structure. Does MapServer support this structure? Thanks, Y. -- Assefa Yewondwossen Software Analyst Email: ass...@dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ___ 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, Is it possible for you to provide a sample data/map/request that I can try that would reproduce your problems? If that is the case, please send it to me directly and I will test it with the latest MapServer and possibly provide answers. regards, Assefa On 08/08/2011 10:58 AM, Bryan Hempen wrote: Hi there! These are things that I've tried in the meantime: - Manually sending the request to the server, but without different results compared to using OpenLayers functions. Also trying to force the usage of the proxy.cgi by containing it in the URL, but didn't bring up different results. - Thought about the solution as suggested by the John, but substituting a Polygon with a BBOX only works for rectangular Polygons! I need to be able to specify arbitrary Polygons/Shapes. I am sure the solution proposed by him will work, because it will be just a request just like the one that already works. - Thought about trying a newer version of the MapServer. However, I run is the newest ms4w on my local machone and I remember that I had the same problem a few weeks ago. Furthermore, John had the same problem with MapServer 6.0.0, and since then nothing changed about WFS or filter encoding according to the release announcements. - Thought sending a GET request instead of a POST request could solve the problem! They provided examples in the documentation with links, something they definitely wouldn't have done in case those examples wouldn't work! However, even GET requests didn't work! What is strange: Also got errors with code 500. Shouldn't the mapserver return some error message? I AM CONFUSED! Please hlp! Regards, Bryan On 05/08/2011 15:04, John Callahan wrote: This thread may or may not help: http://osgeo-org.1803224.n2.nabble.com/WFS-intersect-request-td6458533.html I have not tried using AND compound filters. The following format does work for me using the BBOX filter. ogc:BBOX ogc:PropertyNameSHAPE/ogc:PropertyName gml:Envelope xmlns:gml=http://www.opengis.net/gml; srsName=EPSG:26957 gml:lowerCorner149081.76574899518 163078.62572595105/gml:lowerCorner gml:upperCorner205627.85303800018 194899.95291598293/gml:upperCorner /gml:Envelope /ogc:BBOX - John *** John Callahan, Research Scientist Delaware Geological Survey University of Delaware URL: http://www.dgs.udel.edu 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 -- Assefa Yewondwossen Software Analyst Email: yass...@dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] KML output and timestamp
Sorry for the delay. It is not supported for now. I have added trac bug on it [1]. You are right that similar mechanism (in terms for metedata) can be used to extract time specfic value for the attributes and write it to the kml. best regards, [1] http://trac.osgeo.org/mapserver/ticket/3980 On 04/08/2011 9:13 AM, Jørn Vegard Røsnes wrote: Hi all, do you know if Mapserver support KML Timestamp for KML output. http://code.google.com/apis/kml/documentation/time.html The documentation (http://mapserver.org/output/kml_output.html) says TimePrimitive: No but it's kinda strange because Mapserver supports WMS Time. Thanks. kind regards Jorn Vegard ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Assefa Yewondwossen Software Analyst Email: yass...@dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Re: WFS intersect request
Hi John, Can you try something like : FilterIntersectsPropertyNameGeometry/PropertyNamegml:Polygongml:outerBoundaryIsgml:LinearRinggml:coordinates-61.63,45.04 -60.78,45.04 -60.78,46.08 -61.63,46.08/gml:coordinates/gml:LinearRing/gml:outerBoundaryIs/gml:Polygon/Intersects/Filter, Polygon, MultiPolygon, MultiSurface, Box, LineString are supported as geometries for these operators. gml:Envelope is not right now. Let me know. best regards, \On 09/06/2011 12:47 PM, John Callahan wrote: Thanks. Yes, my server does support Intersect filter, according to the WFS GetCaps file. I'm using the latest MS4W install with MS 6. John On Thursday, June 9, 2011, Alexandre Dubead...@mapgears.com wrote: Hello, If you run a WFS GetCapabilities request on your server, it should tell which filters it supports, see : http://mapserver.org/ogc/filter_encoding.html#server-side Someone correct me if I'm wrong, but I think MapServer needs to be compiled with GEOS in order to do intersect filters. HTH, Alexandre On 11-06-09 12:09 PM, John Callahan wrote: I have the following WFS intersect request that if working with GeoServer, and I'm trying to run this app with MapServer. The error I'm getting is: ows:ExceptionTextmsWFSGetFeature(): WFS server error. Invalid or Unsupported FILTER in GetFeature ... I've dome some reading but not sure exactly what's supported. I have used both INTERSECT and INTERSECTS, both return the same error. Should I skip these and go with BBOX? If so, I assume I would need to get rid of the lowerCorner/upperCorner items and just list the coordinates separated by commas. Or could there be a problem with the PropertyName = SHAPE? I couldn't find doc on what this value should be. My data are either shapefiles or postgis layers. The POST request is: wfs:GetFeature resultType=hits xmlns:wfs=http://www.opengis.net/wfs; service=WFS version=1.1.0 xsi:schemaLocation=http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; wfs:Query typeName=Municipal_Boundaries srsName=EPSG:26957 xmlns:massgis=http://massgis.state.ma.us/featuretype; ogc:Filter xmlns:ogc=http://www.opengis.net/ogc; ogc:Intersects ogc:PropertyNameSHAPE/ogc:PropertyName gml:Envelope xmlns:gml=http://www.opengis.net/gml; srsName=EPSG:26957 gml:lowerCorner149081.76574899518 163078.62572595105/gml:lowerCorner gml:upperCorner205627.85303800018 194899.95291598293/gml:upperCorner /gml:Envelope /ogc:Intersects /ogc:Filter /wfs:Query /wfs:GetFeature Thanks for any help you can provide. - John *** John Callahan, Research Scientist Delaware Geological Survey University of Delaware URL: http://www.dgs.udel.edu *** ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Alexandre Dubé Mapgears www.mapgears.com -- Assefa Yewondwossen Software Analyst Email: yass...@dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Re: WFS intersect request
Hi, On 16/06/2011 7:29 AM, Marco Bagni wrote: Dear John, let me take your request as the occasion to share a thought with this community. You are experiencing my same problem and your last deduction is correct: BBOX works, for the rest the mismatch between the available documentation and the real implementation of the spatial filters (if really implemented! at this point doubting is legitimate) makes impossible for a normal human being to sort out how to make the Intersect or other filters work. The docs on this at http://mapserver.org/ogc/filter_encoding.html on Spatial operator Intersects http://demo.mapserver.org/cgi-bin/wfs?VERSION=1.0.0SERVICE=WFSREQUEST=GetFeatureTYPENAME=citiesFilter=%3CFilter%3E%3CIntersect%3E%3CPropertyName%3EGeometry%3C/PropertyName%3E%3Cgml:Polygon%3E%3Cgml:outerBoundaryIs%3E%3Cgml:LinearRing%3E%3Cgml:coordinates%3E135.5329,34.6624%20135.4921,34.8153%20135.3673,34.7815%20135.3800,34.6216%20135.5361,34.6210%20135.5329,34.6624%3C/gml:coordinates%3E%3C/gml:LinearRing%3E%3C/gml:outerBoundaryIs%3E%3C/gml:Polygon%3E%3C/Intersect%3E%3C/Filter%3E suggests to use intersect with polygon. It was not revised for some time but was working at the time of implementation. You can also check examples in the the autotest tools; http://svn.osgeo.org/mapserver/trunk/msautotest/wxs/ (in wfs_filter.map) What is missing is the proper syntax on how to describe the feature boundaries that you want to use to perform the spatial filter. I have seen examples where your SHAPE was replaced by Polygon but also for that statement was not clear how to say what projection (EPSG) use. Fortunately the given (working) example for the BBOX filter that you can find in the documentation is complete (covers also the declaration of the EPSG directive) and works. You and I (and many more users with the same problem) are facing the other side of the Open Source. Who writes the code and releases it for public domain, sometimes arranges things in such a way that, elegantly, the users are suggested to turn to his commercial consultancy services in order to have the information that makes the whole thing work; he has to put some bread on his table too! wow, that is an unfair comment. I think you are very wrong on your assumptions and how you think people make a living on open source. Non constructive comment here. Sometime it simply takes time to as answer to questions on the mailing list and address every requests. Note that all things put in trac as bugs or enhancements are considered at release time and depending on time and how critical they are, they are addressed. But almost all of the problems that we are facing in this specific area depend mostly on us, since I find difficult to think that in so many years nobody has tried to apply a Spatial filter different from BBOX. Most probably these guys used this very list to ask the support from other users but when it came the time to return something to the user's community (for instance the simple howto recipe that solved their problem), then all the animosity and kindness shown up in the request message, disappeared and the found solution remained in their code without being shared with the rest of us. Let's start to SHARE. Be generous and the community shall become a real living thing made of requests and also of solutions (real solution, well written and comprehensible to everybody). Many parts of Mapserver features are well supported by this community and the knowledge is already generously shared. This peculiar area (SLD and WFS filtering) is not but the solution is within our realm, just share it. I have not tried or checked your specific issue you sent but reading through it, I did not see a MapServer version. Try it with 6.0. If things don't work, provide a sample map/data/test that I can reproduce and attach it to a trac bug. Assefa -- Assefa Yewondwossen Software Analyst Email: yass...@dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Re: WFS Server with ArcGIS Client
Thanks. Updated on the server and svn. On 14/06/2011 3:51 AM, Rahkonen Jukka wrote: Hi, Thanks for the update. The included config.xml was still using the old syntax and new version of TinyOWS does not work with it. I paste here below a config.xml that works with the 1.0 rc3 version with the demo data layers france and world. Demo shapefiles are included in the package http://tinyows.org/tracdocs/release/tinyows-1.0.0rc3.tar.bz2 and they should be imported into PostGIS first. tinyows online_resource=http://127.0.0.1/cgi-bin/tinyows.exe; schema_dir=/ms4w/apps/tinyows/schema/ pg host=127.0.0.1 user=postgres password=postgres dbname=tinyows_demo port=5432/ metadata name=TinyOWS Server title=TinyOWS Server - Demo Service / layer retrievable=1 writable=1 ns_prefix=tows ns_uri=http://www.tinyows.org; name=world title=World Administrative Boundaries / layer retrievable=1 writable=1 ns_prefix=tows ns_uri=http://www.tinyows.org; name=france title=French Administrative Sub Boundaries (IGN - GeoFLA Departements) / /tinyows -Jukka Rahkonen- Lähettäjä: mapserver-users-boun...@lists.osgeo.org [mapserver-users-boun...@lists.osgeo.org] k#228;ytt#228;j#228;n Yewondwossen Assefa [yass...@dmsolutions.ca] puolesta Lähetetty: 14. kesäkuuta 2011 0:35 Vastaanottaja: mapserver-users@lists.osgeo.org Kopio: TinyOWS users discuss list; ms4w-users Aihe: Re: [mapserver-users] Re: WFS Server with ArcGIS Client ms4w adds on for tinyows 1.0.0rc3 is uploaded on the server and should be available in few minutes for download. best regards, On 13/06/2011 4:53 PM, Rahkonen Jukka wrote: Hi, Another quick note: Version 1.0 c is much much better than 0.9 which is available as MS4W addon package. But of course one can experiment with 0.9 too until 1.0 for MS4W is ready. -Jukka- Jeff McKenna wrote: On 11-06-13 5:12 PM, Rahkonen Jukka wrote: TinyOWS is in 1.0 release candidate phase but Windows executables are not yet available, therefore Linux. Quick note: TinyOWS has been available in MS4W as an addon package for quite some time now. -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 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Assefa Yewondwossen Software Analyst Email: yass...@dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ___ 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 -- Assefa Yewondwossen Software Analyst Email: yass...@dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Re: WFS Server with ArcGIS Client
ms4w adds on for tinyows 1.0.0rc3 is uploaded on the server and should be available in few minutes for download. best regards, On 13/06/2011 4:53 PM, Rahkonen Jukka wrote: Hi, Another quick note: Version 1.0 c is much much better than 0.9 which is available as MS4W addon package. But of course one can experiment with 0.9 too until 1.0 for MS4W is ready. -Jukka- Jeff McKenna wrote: On 11-06-13 5:12 PM, Rahkonen Jukka wrote: TinyOWS is in 1.0 release candidate phase but Windows executables are not yet available, therefore Linux. Quick note: TinyOWS has been available in MS4W as an addon package for quite some time now. -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 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Assefa Yewondwossen Software Analyst Email: yass...@dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Mapserver 6.0, SLD and halo
Thanks for putting this in trac (#3915 and #3916). I will give it a look early next week. beat regards, On 10/06/2011 9:35 AM, Rahkonen Jukka wrote: Hi, This part of SLD used to work with 5.x sld:Halo sld:Radius ogc:Literal3/ogc:Literal /sld:Radius sld:Fill sld:CssParameter name=fill#FF/sld:CssParameter sld:CssParameter name=fill-opacity1/sld:CssParameter /sld:Fill /sld:Halo It does not work with 6.0. Mapserver accepts the SLD if we take off this part: sld:Radius ogc:Literal3/ogc:Literal /sld:Radius However, the document http://mapserver.org/ogc/sld.html says that also Radius is supported Halo Yes Supported (fill converted to outlinecolor, and radius is converted to outlinewidth. Note that outlinewidth is only available for AGG in=5.2) -Jukka Rahkonen-___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Assefa Yewondwossen Software Analyst Email: yass...@dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] SLD with filter
Hi Daniel, You could possibly try to set on the layer a metadata for the type of your field to force it to string: something like metadata ows_localita_type Character ... end regards, On 31/05/2011 8:26 AM, Daniel Degasperi wrote: Hi, I've a problem with following filter: ogc:Filter xmlns:ogc=http://www.opengis.net/ogc; ogc:PropertyIsEqualTo matchCase=true ogc:PropertyNamelocalita/ogc:PropertyName ogc:Literal1.102/ogc:Literal /ogc:PropertyIsEqualTo /ogc:Filter Output: ?xml version=1.0 encoding=ISO-8859-1? ows:ExceptionReport xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns:ows=http://www.opengis.net/ows; version=1.1.0 language=en-US xsi:schemaLocation=http://www.opengis.net/ows http://schemas.opengis.net/ows/1.0.0/owsExceptionReport.xsd; ows:Exception exceptionCode=mapserv locator=NoApplicableCode ows:ExceptionTextmsWFSGetFeature(): WFS server error. FLTApplyFilterToLayer() failed msPostGISLayerWhichShapes(): Query error. Error (ERROR: operator does not exist: text = numeric LINE 1: ...6966392 4130435.36164853))',32632) and ( (localita= 1.102) ) ^ HINT: No operator matches the given name and argument type(s). You might need to add explicit type casts. ) executing query: select gc_objid,di_id,localita,di_name_1,encode(AsBinary(force_collection(force_2d(the_geom)),'NDR'),'hex') as geom,gc_objid from (SELECT __data__.di_id as gc_objid,__data__.the_geom, __data__.di_id,__data__.localita,__data__.di_name_1 FROM geo.district_area AS __data__) AS foo where the_geom amp;amp; GeomFromText('POLYGON((-393764.596966392 4130435.36164853,-393764.596966392 5936656.6234314,1412456.59042116 5936656.6234314,1412456.59042116 4130435.36164853,-393764.596966392 4130435.36164853))',32632) and ( (localita= 1.102) )/ows:ExceptionText /ows:Exception /ows:ExceptionReport It seems that the value 1.102 is not quoted. Should I add the attribute xs:type=string to the literal node or use the PropertyIsLike condition? I'm using MapServer 5.6.6 Best regards, Daniel -- Assefa Yewondwossen Software Analyst Email: yass...@dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] SLD with filter
Daniel, I just did a quick test with 5.6.x (svn) and a postgis layer using the metadata but could not reproduce a crash. If it is something I can reproduce using some test map/data/filter, I will investigate. You can either send them to me or attache it to a trac bug. best regards On 31/05/2011 10:25 AM, Daniel Degasperi wrote: Ok, with the metadata tag described below mapserver does not reprocude this error, but it throws a segfault. I've put the coredump online: http://www.r3-gis.com/core.333.gz Best regards, Daniel Am 31/05/2011 14:37, schrieb Yewondwossen Assefa: Hi Daniel, You could possibly try to set on the layer a metadata for the type of your field to force it to string: something like metadata ows_localita_type Character ... end regards, On 31/05/2011 8:26 AM, Daniel Degasperi wrote: Hi, I've a problem with following filter: ogc:Filter xmlns:ogc=http://www.opengis.net/ogc; ogc:PropertyIsEqualTo matchCase=true ogc:PropertyNamelocalita/ogc:PropertyName ogc:Literal1.102/ogc:Literal /ogc:PropertyIsEqualTo /ogc:Filter Output: ?xml version=1.0 encoding=ISO-8859-1? ows:ExceptionReport xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns:ows=http://www.opengis.net/ows; version=1.1.0 language=en-US xsi:schemaLocation=http://www.opengis.net/ows http://schemas.opengis.net/ows/1.0.0/owsExceptionReport.xsd; ows:Exception exceptionCode=mapserv locator=NoApplicableCode ows:ExceptionTextmsWFSGetFeature(): WFS server error. FLTApplyFilterToLayer() failed msPostGISLayerWhichShapes(): Query error. Error (ERROR: operator does not exist: text = numeric LINE 1: ...6966392 4130435.36164853))',32632) and ( (localita= 1.102) ) ^ HINT: No operator matches the given name and argument type(s). You might need to add explicit type casts. ) executing query: select gc_objid,di_id,localita,di_name_1,encode(AsBinary(force_collection(force_2d(the_geom)),'NDR'),'hex') as geom,gc_objid from (SELECT __data__.di_id as gc_objid,__data__.the_geom, __data__.di_id,__data__.localita,__data__.di_name_1 FROM geo.district_area AS __data__) AS foo where the_geom amp;amp; GeomFromText('POLYGON((-393764.596966392 4130435.36164853,-393764.596966392 5936656.6234314,1412456.59042116 5936656.6234314,1412456.59042116 4130435.36164853,-393764.596966392 4130435.36164853))',32632) and ( (localita= 1.102) )/ows:ExceptionText /ows:Exception /ows:ExceptionReport It seems that the value 1.102 is not quoted. Should I add the attribute xs:type=string to the literal node or use the PropertyIsLike condition? I'm using MapServer 5.6.6 Best regards, Daniel -- Assefa Yewondwossen Software Analyst Email: yass...@dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] SLD and Mapserver
Hi, It is not yet possible to use directly sld styles in a map file. We have discussed that a couple of times but It is still in the wish list for future versions. If you are interested to see that sooner than later and might be possible for you to contribute toward it's development, let me know. best regards, On 31/05/2011 12:18 PM, luis peinado wrote: Hi list, I'm using mapserver as a WMS server and I try to use an SLD file to render my map, instead of the usual CLASS and STYLE labels. I've succeded using an SLD parameter on my querystring but I can not get the same result removing the sld url from the querystring and writing it into wms_sld_url paramenter (into LAYER metadata tag). I have done that as told here:http://mapserver.org/ogc/sld.html But it seems that wms_sld_url is only useful when using mapserver as a WMS client. I would like to render my maps using SLD files instead of the STYLE label to avoid programming on my client application. Have you got any idea? Best regards. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Assefa Yewondwossen Software Analyst Email: yass...@dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: AW: [mapserver-users] Some issues with SLD and MapServer 6.0.0 Beta RC1
On 29/04/2011 5:38 PM, Arnd Wippermann wrote: Hi Here you can online see external graphic mostly not showing http://gis.ibbeck.de/ginfo/apps/OLExamples/OL210/MapServer_SLD_World/MapServ er_SLD_World.asp?SLDsrcIdx=51mapservVersion=6.0.0 Perhaps it has something to do with the complexity of the polygons. Locally test with simplier polygons works. But also with the simplier polygons it doesn't show the graphic if i apply the sld file from http://demo.mapserver.org/ogc-demos/map/sld/sld_polygon_fill_symbol_external .xml (gif image). Rotated square not like 5.6.1 http://gis.ibbeck.de/ginfo/apps/OLExamples/OL210/MapServer_SLD_World/MapServ er_SLD_World.asp?SLDsrcIdx=51mapservVersion=6.0.0 Are the above 2 demos still work? I see broken tiles. As I mentioned initially, I was not able to see the problem with my test using external symbols. I just also used a copy of your sld (pointing to an external symbol on your server) and was also able to get expected result. Same with the sld on mapserver site. Please file a bug with data/map that shows the problem and I can spend more time on it. borders as thin lines without stroke set http://gis.ibbeck.de/ginfo/apps/OLExamples/OL210/MapServer_SLD_World/MapServ er_SLD_World.asp?SLDsrcIdx=52mapservVersion=6.0.0 I see that on your server. One test to do is to put your map in debug and see the map file that is produced after the sld is applied. It should only have one class with one style for the fill. If that is not that case, please report. The patch I cannot test. I'm not able to compile MapServer by myself. Thank for watching the points I will apply the patch when MapServer trac/svn come back. It should be available fr the next release. best regards, Regards, Arnd -- Assefa Yewondwossen Software Analyst Email: yass...@dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Some issues with SLD and MapServer 6.0.0 Beta RC1
On 28/04/2011 3:12 PM, Yewondwossen Assefa wrote: Sorry I hit send with finishing the e-mail. I will through each items tomorrow and report. On 28/04/2011 3:10 PM, Yewondwossen Assefa wrote: On 28/04/2011 9:34 AM, Arnd Wippermann wrote: Hi, I'm interested in map styling with SLD and have tested it locally with MapServer 6.0.0 Beta RC1 windows binaries from www.gisinternals.com. I have created an online application to play with SLD and the different MapServer versions. http://gis.ibbeck.de/ginfo/apps/OLExamples/OL210/MapServer_SLD_World/MapServ er_SLD_World.asp There the below issues can be seen. For the online application I have only 6.0.0 Beta 7 available, but it is the same with RC1. Most things work great and create a good looking output. But some things doesn't work as expected. 1. It seems, that the output directory for debug is set static to C:\Windows\Temp. msApplySLD(): Map file after SLD was applied C:\WINDOWS\TEMP\4db963c5_ab0_1._sld.map IMGPATH or IMGURL is not take in account. Temporary files are now written into the tmp directory location. It depends on the platform but should respect the environment variables set on your platform regarding temporary paths. It is not hardcoded in Mapserver. Ticket http://trac.osgeo.org/mapserver/ticket/3354 has notes on this. 2. fill external symbol Polygon fill with external graphic is erratic. If I zoom in one level i get one tile (South America). It creates a file http%3A%2F%2Fgis.ibbeck.de%2FOLClient%2FSLD%2Fsmileyface.png in C:\Windows\Temp. I am not sure I could reproduce this. With local test file, I was able to get a fill polygon with external symbol working. If you have a simple map/data I can use, you can create a trac bug and attach it to them and assign it to me (osgeoid: assefa) 3. Continent, Continent_Else Filter PropertyIsLike doesn't work. With 5.6.1 it is ok. Expression from generated mapfile : EXPRESSION ([Continent] =~ /^Africa/) 4. or_like_abcdef Filter Or and PropertyIsLike doesn't work. With 5.6.1 only the last entry of PropertyIsLike are taken. With Or and PropertyIsEqualTo all entries are taken in both versions. Expression from generated mapfile (6 beta): EXPRESSION ( ([country] =~ /^A/) Or ( ([country] =~ /^B/) Or ( ([country] =~ /^C/) Or ( ([country] =~ /^D/) Or ( ([country] =~ /^E/) Or ([country] =~ /^F/)) ) ) ) ) msEvalExpression: Expression parser error. Failed to parse expression: ([country] =~ /^A/) Or ... With changing =* to ~* and / to the mapfile works : EXPRESSION ( ([country] ~* ^A) Or ( ([country] ~* ^B) Or ... It seems, that in the generated mapfile is a wrong expression. I was able to reproduce this. I have added a bug (http://trac.osgeo.org/mapserver/ticket/3855) on it and a patch that should correct the issue. Is it possible for you to test the patch and report through the bug? Thx 5. symbol fill rotated Polygon fill with rotated square looks interesting, but not as expected. Try with 5.6.1. Here again I tried vectir synbols (weel-know sld symbols like star) as well as the graphic symbols but could not see a problem. The roration parameter should translate into an angle parameter in the style. I have tried this using agg output. Here again if you have test data that demonstrate it please open a trac bug. 6. fill solid Polygon with solid fill without stroke shows thin lines of the borders. Same as above. Some other issues are likely not supported by MapServer, but would be nice to have them. A. Changing the hatch width with sld. see group3, hatch as it is possible with mapfile class. B. UserStyles from applied SLD not supported in WMS Styles C. WMS request GetStyles creates only one userstyle with rules from the different styles described in the mapfile. Should it not create different userstyles for each style described in the mapfile? Regards, Arnd ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users For new features/enhancements, It would also be better to add them in trac and mark them as enhancements. They can be addressed for future versions 6.0. best regards, -- Assefa Yewondwossen Software Analyst Email: yass...@dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] use of CLASSGROUP/GROUP
Something like this should work for map file changes via url: http://localhost/cgi-bin/mapserv.exe?mode=mapmap=f:/msapps/gmap-ms40/htdocs/gmap75.maplayers=land_fn_groupmap_imagetype=pngmap.layer[land_fn_group]=classgroup+green You need to add a validation block on your layer VALIDATION 'classgroup' '.' END check bug http://trac.osgeo.org/mapserver/ticket/3754 for hints/docs on how url substitutions and validation blocks work regards On 27/04/2011 5:39 PM, Mukesh Subedee wrote: Hi all, Does anyone has answer of this question? http://www.osgeo.org/pipermail/mapserver-users/2008-October/057975.html Thanks, Mukesh ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Assefa Yewondwossen Software Analyst Email: yass...@dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Some issues with SLD and MapServer 6.0.0 Beta RC1
On 28/04/2011 9:34 AM, Arnd Wippermann wrote: Hi, I'm interested in map styling with SLD and have tested it locally with MapServer 6.0.0 Beta RC1 windows binaries from www.gisinternals.com. I have created an online application to play with SLD and the different MapServer versions. http://gis.ibbeck.de/ginfo/apps/OLExamples/OL210/MapServer_SLD_World/MapServ er_SLD_World.asp There the below issues can be seen. For the online application I have only 6.0.0 Beta 7 available, but it is the same with RC1. Most things work great and create a good looking output. But some things doesn't work as expected. 1. It seems, that the output directory for debug is set static to C:\Windows\Temp. msApplySLD(): Map file after SLD was applied C:\WINDOWS\TEMP\4db963c5_ab0_1._sld.map IMGPATH or IMGURL is not take in account. Temporary files are now written into the tmp directory location. It depends on the platform but should respect the environment variables set on your platform regarding temporary paths. It is not hardcoded in Mapserver. Ticket http://trac.osgeo.org/mapserver/ticket/3354 has notes on this. 2. fill external symbol Polygon fill with external graphic is erratic. If I zoom in one level i get one tile (South America). It creates a file http%3A%2F%2Fgis.ibbeck.de%2FOLClient%2FSLD%2Fsmileyface.png in C:\Windows\Temp. 3. Continent, Continent_Else Filter PropertyIsLike doesn't work. With 5.6.1 it is ok. Expression from generated mapfile : EXPRESSION ([Continent] =~ /^Africa/) 4. or_like_abcdef Filter Or and PropertyIsLike doesn't work. With 5.6.1 only the last entry of PropertyIsLike are taken. With Or and PropertyIsEqualTo all entries are taken in both versions. Expression from generated mapfile (6 beta): EXPRESSION ( ([country] =~ /^A/) Or ( ([country] =~ /^B/) Or ( ([country] =~ /^C/) Or ( ([country] =~ /^D/) Or ( ([country] =~ /^E/) Or ([country] =~ /^F/)) ) ) ) ) msEvalExpression: Expression parser error. Failed to parse expression: ([country] =~ /^A/) Or ... With changing =* to ~* and / to the mapfile works : EXPRESSION ( ([country] ~* ^A) Or ( ([country] ~* ^B) Or ... It seems, that in the generated mapfile is a wrong expression. 5. symbol fill rotated Polygon fill with rotated square looks interesting, but not as expected. Try with 5.6.1. 6. fill solid Polygon with solid fill without stroke shows thin lines of the borders. Some other issues are likely not supported by MapServer, but would be nice to have them. A. Changing the hatch width with sld. see group3, hatch as it is possible with mapfile class. B. UserStyles from applied SLD not supported in WMS Styles C. WMS request GetStyles creates only one userstyle with rules from the different styles described in the mapfile. Should it not create different userstyles for each style described in the mapfile? Regards, Arnd ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Assefa Yewondwossen Software Analyst Email: yass...@dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Some issues with SLD and MapServer 6.0.0 Beta RC1
Sorry I hit send with finishing the e-mail. I will through each items tomorrow and report. On 28/04/2011 3:10 PM, Yewondwossen Assefa wrote: On 28/04/2011 9:34 AM, Arnd Wippermann wrote: Hi, I'm interested in map styling with SLD and have tested it locally with MapServer 6.0.0 Beta RC1 windows binaries from www.gisinternals.com. I have created an online application to play with SLD and the different MapServer versions. http://gis.ibbeck.de/ginfo/apps/OLExamples/OL210/MapServer_SLD_World/MapServ er_SLD_World.asp There the below issues can be seen. For the online application I have only 6.0.0 Beta 7 available, but it is the same with RC1. Most things work great and create a good looking output. But some things doesn't work as expected. 1. It seems, that the output directory for debug is set static to C:\Windows\Temp. msApplySLD(): Map file after SLD was applied C:\WINDOWS\TEMP\4db963c5_ab0_1._sld.map IMGPATH or IMGURL is not take in account. Temporary files are now written into the tmp directory location. It depends on the platform but should respect the environment variables set on your platform regarding temporary paths. It is not hardcoded in Mapserver. Ticket http://trac.osgeo.org/mapserver/ticket/3354 has notes on this. 2. fill external symbol Polygon fill with external graphic is erratic. If I zoom in one level i get one tile (South America). It creates a file http%3A%2F%2Fgis.ibbeck.de%2FOLClient%2FSLD%2Fsmileyface.png in C:\Windows\Temp. 3. Continent, Continent_Else Filter PropertyIsLike doesn't work. With 5.6.1 it is ok. Expression from generated mapfile : EXPRESSION ([Continent] =~ /^Africa/) 4. or_like_abcdef Filter Or and PropertyIsLike doesn't work. With 5.6.1 only the last entry of PropertyIsLike are taken. With Or and PropertyIsEqualTo all entries are taken in both versions. Expression from generated mapfile (6 beta): EXPRESSION ( ([country] =~ /^A/) Or ( ([country] =~ /^B/) Or ( ([country] =~ /^C/) Or ( ([country] =~ /^D/) Or ( ([country] =~ /^E/) Or ([country] =~ /^F/)) ) ) ) ) msEvalExpression: Expression parser error. Failed to parse expression: ([country] =~ /^A/) Or ... With changing =* to ~* and / to the mapfile works : EXPRESSION ( ([country] ~* ^A) Or ( ([country] ~* ^B) Or ... It seems, that in the generated mapfile is a wrong expression. 5. symbol fill rotated Polygon fill with rotated square looks interesting, but not as expected. Try with 5.6.1. 6. fill solid Polygon with solid fill without stroke shows thin lines of the borders. Some other issues are likely not supported by MapServer, but would be nice to have them. A. Changing the hatch width with sld. see group3, hatch as it is possible with mapfile class. B. UserStyles from applied SLD not supported in WMS Styles C. WMS request GetStyles creates only one userstyle with rules from the different styles described in the mapfile. Should it not create different userstyles for each style described in the mapfile? Regards, Arnd ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Assefa Yewondwossen Software Analyst Email: yass...@dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] SLD support: Anyone for fixing 5 yr old tickets?
Hi there, I have updated both issues in trac. It would be good if you could add yourself in cc in the bugs and comment on them. I agree that #1166 is still relevant and could be fixed for 6.2. I am not sure if #1602 is something that needs to be done and fits the way the specs describe sld and wms. best regards, On 15/04/2011 9:39 AM, Hollingbery, Julian wrote: Hi list, I have just joined the list for the following reason: We have been running SLD-enabled WMS services for some years now, on a closed source platform. For that, and several other reasons, we are now looking at using MapServer as a replacement. I have compared our existing platform and MapServer 5.6.6, and have noticed a couple of incompatibilities. After having looked around, I find that both of these issues exist as old tickets: _http://trac.osgeo.org/mapserver/ticket/1602_ _http://trac.osgeo.org/mapserver/ticket/1166_ We do not have the developer resources to provide patches, so I am looking for someone to do it for us. Our migration is organized as a project, for which we have some funds. Therefore, I am looking for someone who would be willing to provide me with an estimate of what it would cost (time and/or money) to come up with a patch. Regarding #1602, what I would like to achieve is to highlight an object given by a ogc:Filter, while rendering the remaining objects in that layer in the default style. I could of course use an ElseFilter, but since this is a question of providing backward compatibility, I'd prefer not to. It is not exactly the same thing as in #1602, but it seems to me that it might be the same fix. My particular SLD looks something like this: StyledLayerDescriptor version=1.0.0 xmlns=http://www.opengis.net/sld; xmlns:ogc=http://www.opengis.net/ogc; NamedLayer NameJordstykke/Name UserStyle FeatureTypeStyle Rule ogc:Filter And ogc:PropertyIsEqualTo ogc:PropertyNamelandsejerlavskode/ogc:PropertyName ogc:Literal90552/ogc:Literal /ogc:PropertyIsEqualTo ogc:PropertyIsEqualTo ogc:PropertyNamematrikelnummer/ogc:PropertyName ogc:Literal7fv/ogc:Literal /ogc:PropertyIsEqualTo /And /ogc:Filter PolygonSymbolizer Fill CssParameter name=fill#FF/CssParameter CssParameter name=fill-opacity1/CssParameter /Fill Stroke CssParameter name=stroke#FF/CssParameter CssParameter name=stroke-width3/CssParameter /Stroke /PolygonSymbolizer /Rule /FeatureTypeStyle /UserStyle /NamedLayer NamedLayer NameJordstykke/Name NamedStyle Namedefault/Name /NamedStyle /NamedLayer /StyledLayerDescriptor Thanks in advance, Julian Hollingbery Danish Ministry of The Environment, National Survey and Cadastre ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Assefa Yewondwossen Software Analyst Email: yass...@dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] MapServer 6: ESRI Grid display with KMZ output
On 14/04/2011 4:13 AM, Cécile Alfred wrote: Yes it is. Thank you very much. There is just a problem with the latlongbox. It seems to use the WIDTH HEIGHT oh the request. This should be fixed now in svn. Bug related to that issue is at http://trac.osgeo.org/mapserver/ticket/3840 best regards, Cécile 2011/4/12 Yewondwossen Assefa yass...@dmsolutions.ca mailto:yass...@dmsolutions.ca You should comment out CLASSITEM [pixel]. There is no need to add that line from what I can see and in this case seems to make a difference. Let me know. Assefa On 11/04/2011 10:35 AM, Cécile Alfred wrote: Hi, there is here the mapfile (test.map), an ESRI ascii grid, a geotiff and requests png and kmz (requests.txt). Thank you Cécile 2011/4/11 Yewondwossen Assefa yass...@dmsolutions.ca mailto:yass...@dmsolutions.ca Hi, If you are willing to share a sample map file + this particular format file, I can look into the kmz output issue. If that is the case, wither send me the sample or open a trac bug and attche the data. Please assign the bug to me (assefa). Assefa On 08/04/2011 8:09 AM, Cécile Alfred wrote: Hi, I try to use Mapserver 6 beta 5 to generate kmz output with several type of input data (geotiff, shape and esri ascii grid): It is OK with geotiff and shape but there is no result with grd (empty image in temp). If I try to generate png output it's OK for all. Thank you for help Kelly ___ mapserver-users mailing list mapserver-users@lists.osgeo.org mailto:mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Assefa Yewondwossen Software Analyst Email:yass...@dmsolutions.ca mailto:yass...@dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 -- Assefa Yewondwossen Software Analyst Email:yass...@dmsolutions.ca mailto:yass...@dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 -- Assefa Yewondwossen Software Analyst Email: yass...@dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] SLD and Offset
Maybe using the PerpendicularOffset of the stroke element would work in your case (only availble in sld1.1)? Quick example can be found at http://www3.dmsolutions.ca/tmp/sld_line_simple_1.1.0_offset.xml best regards, On 14/04/2011 11:05 AM, Kickinger Johann wrote: I have real time traffic data which has values for one link/line in both directions e.g. value 0 (green) in the digitalisation direction and value 3 (red) against the digitalisation direction. At the moment this is done with OFFSET x -99 and works well. I see the link two times with, if available, two different values CLASS NAME C_0_0 EXPRESSION (([value_los] = 0) ([linkdirection] = 0)) STYLE COLOR 0 117 0 WIDTH 3 ANTIALIAS TRUE OFFSET 2 -99 END END CLASS NAME C_0_1 EXPRESSION (([value_los] = 0) ([linkdirection] = 1)) STYLE COLOR 0 117 0 WIDTH 3 ANTIALIAS TRUE OFFSET -2 -99 Now I wanted to use SLD with UserStyle - the color and width is changeable, but I noticed that the OFFSET was overruled and so I dont see different values for separate directions. I found no parameter in the SLD for the Offset of a line. So my workaround is SLD with NamedStyle - I copied the Classes and the first are in group1 the last in group2. I switch in the one layer with the name of the group. So my question is - is it possible to use UserStyle SLD with the possibility to set a usefull offset or could the offset in the mapfile could be used even if nothing more is defined in the SLD. Thanks for your support/ideas. BR, Hannes ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Assefa Yewondwossen Software Analyst Email: yass...@dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] MapServer 6: ESRI Grid display with KMZ output
Hi, If you are willing to share a sample map file + this particular format file, I can look into the kmz output issue. If that is the case, wither send me the sample or open a trac bug and attche the data. Please assign the bug to me (assefa). Assefa On 08/04/2011 8:09 AM, Cécile Alfred wrote: Hi, I try to use Mapserver 6 beta 5 to generate kmz output with several type of input data (geotiff, shape and esri ascii grid): It is OK with geotiff and shape but there is no result with grd (empty image in temp). If I try to generate png output it's OK for all. Thank you for help Kelly ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Assefa Yewondwossen Software Analyst Email: yass...@dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] MapServer 6: outputformat gd/jpeg missing
Hi, I am not sure if there is yet a 6.0 doc on that. Here is what I can see browsing through the code. This list gives you the output format names that are defined in MapServer and the driver used to render them. - name: png; dirver is AGG; mime type is image/png; produces 24bit png - jpeg; AGG; image/jpeg; jpeg output - gif; GD; image/gif; gif output - png8; AGG; image/png; mode=8bit; QUANTIZED automatically to produce 8bit png; - png24; AGG; image/png; mode=24bit; same as png-24bit png - pdf; CAIRO; application/x-pdf; - svg; CAIRO; image/svg+xml - cairopng; CAIRO; 24bit png - GTiff; GDAL/GTiff, image/tiff - kml; Mapserver native; application/vnd.google-earth.kml+xml - kmz, Mapserver native; application/vnd.google-earth.kmz You can also define output blocks in the map file as before. Here are some of them I see in the code. - gdal/xxx : where xxx is the gdal driver - dirver TEMPLATE (http://mapserver.org/development/rfc/ms-rfc-36.html) - ogr outputs for WMS (http://www.mapserver.org/trunk/output/ogr_output.html) - cairowinGDI; CAIRO/WINGDI - cairowinGDIPrint; CAIRO/WINGDIPRINT - oglpng24; OGL/PNG Note that there might be docs explaining/giving details on each of them. I might also have missed some of them. An explicit doc on oputput format is needed I believe for the 6.0 release. Assefa On 05/04/2011 7:25 AM, fruitwerks wrote: The only recent mention of jpg I see is: AGG/PNG and AGG/JPEG are the only valid agg drivers. Imagetypes aggpng24 and aggjpeg can be used to refer to the default output formats. Is there a documentation for 6 yet? I know there are a few migration / quirk / changes texts, but I was unable to find full blown documentation. On Tue, Apr 5, 2011 at 3:51 AM, Johannes Smithjohannes.sm...@ymail.com wrote: Hi, trying MapServer 6 beta 4 I recognized that output format gd/jpeg is no longer supported. Instead there's agg/jpeg. Is that intended? J. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Assefa Yewondwossen Software Analyst Email: yass...@dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] WFS Intersect with gml:box
On 30/03/2011 1:14 PM, Joaquín Rodriguez-Guerra Urcelay wrote: Hi Yewondwossen, Are you planning to include this fix in mapserver 6?? This was committed yesterday and should be available for 6.0 (and 5.6.8 if released). I forgot to update the bug on that. It is done now. I am still fighting with the sources, stuck in the error: ld: cannot find -ltermcap Hopefully fgs will create a new self-installer for mapserver 6 in a couple of months, or I should not expect that? I can not say one way or the other about fgs installer. You can ask on the fgs mailing list or someone cam comment here. best regards, -- Assefa Yewondwossen Software Analyst Email: yass...@dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] WFS Intersect with gml:box
On 30/03/2011 2:30 PM, Joaquín Rodriguez-Guerra Urcelay wrote: Hello, I was finally able to build the source code, and I am not getting the error anymore :D (with Latest Release Branch, with trunk wfs was not working for me) But I am not getting the result I was expecting. Maybe I am wrong, but I thought that bbox operation would return all geometries contained in the box, and intersect would return all geometries contained in the box and also those who are not contained completely, but a part of them. Is this right?? I think intersects in this case really returns only those features that intersect and not all that are completely contained. Assefa -- Assefa Yewondwossen Software Analyst Email: yass...@dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] WFS Intersect with gml:box
On 30/03/2011 4:16 PM, Rahkonen Jukka wrote: Hi, Intersect means the same as not disjoint, that the two geometries have at least one point in common. Thus WFS Intersects should select the point that is inside the box in the query. I made a quick test with OpenJUMP which is using JTS and it really does select such a point with a apatial query Intersects. Geos lib used by MapServer should act the same as JTS I beleive. Joaquín, you can maybe attach your simple map/data/url to the bug and I will check it using MapServer trunk. -- Assefa Yewondwossen Software Analyst Email: yass...@dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] WFS Intersect with gml:box
Hi, I did check that and It was not working for me either. It is now fixed in trunk and also in the 5.6.x branch. I have added a bug http://trac.osgeo.org/mapserver/ticket/3789[1] on it, so if you have the chance to build from source, please give it a try and update the bug. best regards, [1]: http://trac.osgeo.org/mapserver/ticket/3789 On 29/03/2011 1:18 PM, Joaquín Rodriguez-Guerra Urcelay wrote: Hello list, I am using a desktop GIS applicatin (uDig) to connect mapserver and display some wfs layers and I am having some trouble when uDig tries to filter features by bounding box. uDig sends a intersects spatial filter to obtain features in a bounding box: http://localhost:8080/cgi-bin/mywfs?WIDTH=512SERVICE=WFSVERSION=1.0.0request=getfeaturetypename=PositionRealFilter= Filter xmlns=http://www.opengis.net/ogc; xmlns:gml=http://www.opengis.net/gml;IntersectsPropertyNamepoint/PropertyName gml:Box srsName=WGS84(DD)gml:coordinates decimal=. cs=, ts= -100.0,-45.0 100.0,45.0/gml:coordinates /gml:Box /Intersects /Filter But it is not working :( ServiceExceptionReport version=1.2.0 xsi:schemaLocation=http://www.opengis.net/ogc http://schemas.opengis.net/wfs/1.0.0/OGC-exception.xsd; ServiceException code=InvalidParameterValue locator=filter msWFSGetFeature(): WFS server error. Invalid or Unsupported FILTER in GetFeature :Filter xmlns=http://www.opengis.net/ogc; xmlns:gml=http://www.opengis.net/gml;IntersectsPropertyNamepoint/PropertyNamegml:Box srsName=WGS84(DD)gml:coordinates decimal=. cs=, ts= -100.0,-45.0 100.0,45.0/gml:coordinates/gml:Box/Intersects/Filter /ServiceException /ServiceExceptionReport I have checked that the BBOX filter works perfectly ( I just replaced Intersects with BBOX in the above url) http://localhost:8080/cgi-bin/mywfs?WIDTH=512SERVICE=WFSVERSION=1.0.0request=getfeaturetypename=PositionRealFilter= Filter xmlns=http://www.opengis.net/ogc; xmlns:gml=http://www.opengis.net/gml;BBOXPropertyNamepoint/PropertyName gml:Box srsName=WGS84(DD)gml:coordinates decimal=. cs=, ts= -100.0,-45.0 100.0,45.0/gml:coordinates /gml:Box /BBOX /Filter But I cant make the INTERSECTS operation work. I would really appreciate if someone could point me to any examples of the INTERSECT operation used together with gml:box or Box. I have seen some examples of intersects used with gml:polygon, but it should work too with box, right?? Thanks for reading! Joaquín __ This message including any attachments may contain confidential information, according to our Information Security Management System, and intended solely for a specific individual to whom they are addressed. Any unauthorised copy, disclosure or distribution of this message is strictly forbidden. If you have received this transmission in error, please notify the sender immediately and delete it. __ Este mensaje, y en su caso, cualquier fichero anexo al mismo, puede contener informacion clasificada por su emisor como confidencial en el marco de su Sistema de Gestion de Seguridad de la Informacion siendo para uso exclusivo del destinatario, quedando prohibida su divulgacion copia o distribucion a terceros sin la autorizacion expresa del remitente. Si Vd. ha recibido este mensaje erroneamente, se ruega lo notifique al remitente y proceda a su borrado. Gracias por su colaboracion. __ ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Assefa Yewondwossen Software Analyst Email: yass...@dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] MapServer 6 and KML outputformat
On 10/03/2011 6:29 PM, Armin Burger wrote: Currently the fields/items of the layers (defined under map file METADATA KML_INCLUDE_ITEMS) are exported to a KML tag description and inserted as HTML table. While this is of course possible, a cleander way would be how GDAL/OGR exports the attributes: GDAL/OGR uses the tag ExtendedData and places the attribute values in SimpleData tags, like Placemark ... ExtendedDataSchemaData schemaUrl=#cities SimpleData name=NameBerlin/SimpleData SimpleData name=GEONAMEID3899412/SimpleData SimpleData name=ISO2_CODEDE/SimpleData ExtendedData This leads to a much better display in Google Earth. I have added this in http://trac.osgeo.org/mapserver/ticket/3728 and possibly address it before 6.0 or shortly after. In addition to the KML_INCLUDE_ITEMS, another possibility to define a field/item used in KML for the name tag would be useful, like OGR allows this via the NameField option. So maybe a METADATA definition like KML_NAME_FIELD could do this. The is added to the current svn and will be available for beta2 (ticket http://trac.osgeo.org/mapserver/ticket/3728). The docs are also updated. Note that the metedata is KML_NAME_ITEM to follow other metada names used. best regards, -- Assefa Yewondwossen Software Analyst Email: yass...@dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] MapServer 6.0.0-beta1 release - Please test!
nipped ServiceException code=LayerNotDefined msWMSLoadGetMapParams(): WMS server error. Invalid layer(s) given in the LAYERS parameter. The layer is set and is valid, its the same request I make to the prior version of mapscript and it works fine. I did have to modify my map file just a bit (commented out the ANGLE and label backgroundcolor), but all the layers are still there. This could be related to that fact that you should enable ows request (http://mapserver.org/development/rfc/ms-rfc-67.html) ows_enable_request * best regards, -Andy ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Assefa Yewondwossen Software Analyst Email: yass...@dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] MapServer 6.0.0-beta1 release - Please test!
GD is still there . It is still there and does 8bit png and gif. On 10/03/2011 3:54 PM, Stephen Woodbridge wrote: A couple of points on this, MS6.0 no longer has a GD driver? is this correct? if so, then: a. need to add to migration guide b. need to indicate appropriate GD to AGG OUTPUTFORMAT conversions c. mapfile parsing should throw an error ob DRIVER 'GD/...' -Steve W On 3/10/2011 12:36 PM, thomas bonfort wrote: use AGG/JPEG regards, thomas On Thu, Mar 10, 2011 at 18:33, Andy Colsona...@squeakycode.net wrote: On 3/9/2011 8:47 PM, Daniel Morissette wrote: The MapServer Team is pleased to announce the release of MapServer 6.0.0-beta1. This is the first beta on our way to a final 6.0 release. My mapfile has: IMAGECOLOR 192 192 192 IMAGEQUALITY 95 IMAGETYPE jpeg OUTPUTFORMAT NAME jpeg DRIVER 'GD/JPEG' MIMETYPE 'image/jpeg' EXTENSION 'jpeg' END Error I get: ERROR: 12:OUTPUTFORMAT clause references driver GD/JPEG, but this driver isn't configured.:loadOutputFormat() mapserv -v MapServer version 6.0.0-beta1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=CAIRO SUPPORTS=OPENGL SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=GEOS INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE Sure enough, no GD... but I did compile it in: configure: checking for GD 2.0.28 or higher... checking for gdImageCreatePaletteFromTrueColor in -lgd... yes using libgd 2.0.28 (or higher) from system libs (-L/usr/lib64 -lgd -ljpeg -lfreetype -lz -lpng -lz -lXpm -lX11 ). checking for gdImageCreate in -lgd... yes checking for gdImageGif in -lgd... yes checking for gdImagePng in -lgd... yes checking for gdImageJpeg in -lgd... yes checking for gdImageWBMP in -lgd... yes checking for gdImageStringFT in -lgd... yes checking for gdImageOpenPolygon in -lgd... yes checking for gdImageGifPtr in -lgd... yes checking for gdFontGetTiny in -lgd... yes checking for gdImageSetResolution in -l... no checking whether gdImageGetTrueColorPixel is declared... yes checking for gdImageGetTrueColorPixel in -lgd... yes using GD ( -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_FTEX_XSHOW -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DGD_HAS_GET_TRUE_COLOR_PIXEL) from system libs. So what do I use? I'd also like to try the new opengl stuff.. is there new docs for: http://mapserver.org/mapfile/outputformat.html -Andy ___ 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 mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Assefa Yewondwossen Software Analyst Email: yass...@dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Trouble with WFS GetFeature: get same feature returned multiple times
Hi, I just tried this with my test data and url similar you yours [1] and was not able to reproduce it locally using 5.4 and 5.6. If your data/map are not sensitive, would it be possible to send it to me directly and I will give it a try again (It would be easier for me to see the problem)? best regards [1]; http://127.0.0.1/cgi-bin/mapserv.exe?map=f:/projects/mapserver-buildkit-2008/mapserver/msautotest/wxs/wfs_filter_mine2.mapSERVICE=WFSVERSION=1.0.0REQUEST=GetFeatureTYPENAME=popplace_postgisfeatureid=popplace_postgis.Tignish,popplace_postgis.Cheticamp,popplace_postgis.Halifax On 24/02/2011 7:33 PM, Rainer Spittel wrote: Hi, I didn't had problems with UMN Mapserver for a very long time. I really love the product, and now I really need help. I set up a WFS Server, accessing a PostGIS point table. I use OpenLayers to visualise the WFS layer, and use the cluster strategy to group close points to a large cluster point. Now to the problem: I want to retrieve the feature data from a cluster point. I already have the IDs of the features of the cluster. Now I send a GetFeature request to the Mapserver to get all attribute information for the features, i.e. ID=231 and ID=273: http://[...]/cgi-bin/stations?request=getfeatureservice=WFSversion=1.0.0typename=DTISOUTPUTFORMAT=gml3featureid=DTIS.231,DTIS.273 http://[...]/cgi-bin/stations?request=getfeatureservice=WFSversion=1.0.0typename=DTISOUTPUTFORMAT=gml3featureid=DTIS.231,DTIS.273 The response of this request contains the feature 231 twice in the response. If I add another ID to the request, I get the feature 231 three times returned: [...] gml:featureMember ms:DTIS gml:id=DTIS.231 gml:boundedBy[...]/gml:boundedBy ms:msGeometry gml:Point srsName=EPSG:4326 gml:pos174.081500 -34.949500/gml:pos /gml:Point /ms:msGeometry ms:id231/ms:id /ms:DTIS /gml:featureMember gml:featureMember ms:DTIS gml:id=DTIS.231 [...] /gml:featureMember /ms:msFeatureCollection As soon as I export the table from PostgreSQL into a shapefile, update the mapfile to use the shapefile and run the same query, I get the correct response.I also tracked the SQL query, which is sent to Postgres, and the query is correct. PostgreSQL returns the correct rows. I use MapServer V5.4.1, which is not a very newer version,but I am constraint by the Debian packages. Is this an user error (I am not smart enough)? Or a bug? If so, has this bug been resolved in a later version? Any help is really appreciated. Thanks, Rainer Rainer Spittel | Head of Development SilverStripe http://silverstripe.com http://silverstripe.com/ Phone: +64 4 978 7330 Mobile: +64 21 1390370 Skype: fb3rasp ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Assefa Yewondwossen Software Analyst Email: yass...@dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] WFS Filter Encoding and resulting DB-queries
Hi Stephan, On 22/02/2011 3:44 AM, Stephan Holl wrote: Hello list, while playing with MapServer WFS Filter Encoding capabilities I found some strange things when it comes to form the DB-queries (the requested layer is PostGIS-driven). It seems that there will always be a full table-scan and later on the FE will be applied. Is this done by design? Filters that do include spatial filters end up using the mapserver experssions. 'Simple' filters should end be using traslated into the layer's filter expression and end up being used by postgis as part of the data selection. What does the filter encoding looks like? Using URL-substitutions of the Search-keyword and apply it to a FILTER-element the resulting SQL-query has the given WHERE-filter set. But this opens the door for SQL-injections AFAIK. Setting the validation pattern is a little prevention. Are there any other ways to realize a keyword-driven search with MapServer beside FE IsLike or FILTER-substitution? I am using MS 5.6.5 on debian stable. TIA Stephan ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Assefa Yewondwossen Software Analyst Email: yass...@dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] WFS Filter Encoding and resulting DB-queries
On 23/02/2011 8:06 AM, Stephan Holl wrote: Hello Assefa, Yewondwossen Assefayass...@dmsolutions.ca, [20110223 - 07:26:34] Hi Stephan, On 22/02/2011 3:44 AM, Stephan Holl wrote: Hello list, while playing with MapServer WFS Filter Encoding capabilities I found some strange things when it comes to form the DB-queries (the requested layer is PostGIS-driven). It seems that there will always be a full table-scan and later on the FE will be applied. Is this done by design? Filters that do include spatial filters end up using the mapserver experssions. 'Simple' filters should end be using traslated into the layer's filter expression and end up being used by postgis as part of the data selection. What does the filter encoding looks like? It is not a spatial-filter we use currently. It is an attribute-based IsLike-Filter like seen here[1], but we use it with POST. So adding a BBOX-related filter as another AND-filter will result in optimized SQL-Query with only the subset fetched from the database? If so, this seems worth to document though. The filter you sent as example should use the layer's filter element and that should be used when retrieving the data at the postgis level. When the layer is in debug mode, MapServer 5.6.x logs in this case shows something like (which indicates that the filter is used at the postgis level) ... msPostGISLayerWhichShapes query: select and ( (NAME like 'Syd%' escape '!') ) ... Don't you get similar logs? Best Stephan [1] http://demo.mapserver.org/cgi-bin/wfs?VERSION=1.0.0SERVICE=WFSREQUEST=GetFeatureTYPENAME=citiesFilter=%3CFilter%3E%3CPropertyIsLike%20wildcard=%27*%27%20singleChar=%27.%27%20escape=%27!%27%3E%3CPropertyName%3ENAME%3C/PropertyName%3E%3CLiteral%3ESyd*%3C/Literal%3E%3C/PropertyIsLike%3E%3C/Filter%3E -- Assefa Yewondwossen Software Analyst Email: yass...@dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Re: GetfeatureInfo-Request in an UTF-8 environment with shapfile in cp-1252
On 11/02/2011 9:42 AM, sulu wrote: 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. Hi, No there is no patch to address the problem you specified. http://trac.osgeo.org/mapserver/ticket/3297#comment:4 and http://trac.osgeo.org/mapserver/ticket/3297#comment:5 show that there is some work to define the solution and to implement it. Assefa -- Assefa Yewondwossen Software Analyst Email: yass...@dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] GetfeatureInfo-Request in an UTF-8 environment with shapfile in cp-1252
On 09/02/2011 7:34 AM, Daniel Morissette wrote: On 11-02-08 09:37 AM, Siegel Andreas wrote: Hi. Our mapserver-eniromnent entirely works in utf-8 (mapfiles, webserver, postgres, ..) with one exception, that is, all of our shapefiles. The shapfiles are created/updated in an Windows-environment by several, external contributors. Hence they are encoded in Wiindows-ANSI (cp: 1252). If i do an GetFeatureInfo-Request on the attibutes of the shapefiles all special characters (umlauts) are garbled. This is no wonder since the content of the shapefile-attributes must be recoded to utf-8 prior to insertion in the template.html. How can this be acomplished? I could not find anything useful in the documentation or with google. 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. Daniel Sorry to jump late on this. This issue I believe was identified and described in the trac bug [1]. An incomplete solutions was proposed in there but It definitely need more thinking. [1] http://trac.osgeo.org/mapserver/ticket/3297 Assefa -- Assefa Yewondwossen Software Analyst Email: yass...@dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] PointSymboliser
Hi, You could check in http://www.mapserver.org/ogc/sld.html section *Table 9. PointSymbolizer *for working examples and sld docs. regards, On 14/01/2011 7:45 AM, Tonton wrote: hello i try to use star for point symboliser like this sld definition ! sld:PointSymbolizer sld:Graphic sld:Mark sld:WellKnownNamestar/sld:WellKnownName sld:Fill sld:CssParameter name=fill#CC0066/sld:CssParameter /sld:Fill sld:Stroke sld:CssParameter name=stroke#FF/sld:CssParameter /sld:Stroke /sld:Mark sld:Size ogc:Literal10.0/ogc:Literal /sld:Size /sld:Graphic /sld:PointSymbolizer but it's not working great WMS server error. Invalid SLD document how to validate sld file for mapserver ? Tonton ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Assefa Yewondwossen Software Analyst Email: yass...@dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] keyimage size and url
Hi, On 11/01/2011 12:24 PM, steve.tout...@inspq.qc.ca wrote: Hi, In my mapfile I have a layer defined as a external WMS layer (CONNECTIONTYPE WMS, .) I use KEYIMAGE to set the icon in my geoext legend. For a layer the legend is complex and the icon is very small. is it possible to change the size of a KEYIMAGE? assuming you are calling mapserver cgi with mode=legend, you can change the keysize parameter by doing something like: http://.../mapserv?..map.legend=keysize 100 100 Also, is it possible to use a getLegendGraphic request to get the legend icon instead of using KEYIMAGE (it seems that we cannot provide a url with KEYIMAGE)? I think it should work from what I can see. It should use your keyimage and respect the width/height parameters sent with the getLegendGraphic request. Does KEYIMAGE is the appropriate solution? thanks for your help, Steve ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Assefa Yewondwossen Software Analyst Email: yass...@dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] How would I modify a map file so that when a getcapabilities is run it outputs as tiled layers (wms-t) including listing resolutions listed below:
Hi, Not sure I understand well the question: Mapserver does not support tiled layers by itself. Usually when doing tiles, you will use tilecache servers (tilecache.org, or mode-geocache http://code.google.com/p/mod-geocache/ ) that can be set up to possibly use MapServer as rendering engine . Wehn you mention getcapabilities, are referring to the getcapabilities support in the WMTS (web map tiling service from OGC)? If that is the case, I would recommend again to check the tilecache libraries mentioned above. If this does not reflect what you intend to accomplish, please give more details on what you expect from MapServer. best regards, On 11/01/2011 10:15 AM, John Mitchell wrote: How would I modify a map file so that when a getcapabilities is run it outputs as tiled layers (wms-t) including listing resolutions listed below: Resolutions 0.703125,0.3515625,0.17578125,0.087890625,0.0439453125,0.02197265625,0.010986328125,0.0054931640625,0.00274658203125,0.001373291015625,6.866455078125E-4,3.4332275390625E-4,1.71661376953125E-4,8.58306884765625E-5,4.291534423828125E-5,2.1457672119140625E-5,1.0728836059570312E-5,5.364418029785156E-6,2.682209014892578E-6,1.341104507446289E-6,6.705522537231445E-7,3.3527612686157227E-7 /Resolutions Thanks, John -- John J. Mitchell ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Assefa Yewondwossen Software Analyst Email: yass...@dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] external graphic symbol don't follow the GetStyles method
Hi Martin, I think you need to define WMS_SLD_SYMBOL_URL to be able to generate an External graphic. This is documented (almost hidden :) in http://mapserver.org/ogc/sld.html#client-side-support best regards, On 30/11/2010 5:01 PM, Martin Ouellet wrote: Hi, When I used a external graphic element in a SLD like this: Nametest/Name ogc:Filterogc:PropertyIsEqualToogc:PropertyNameindicatif/ogc:PropertyNameogc:Literal103005/ogc:Literal/ogc:PropertyIsEqualTo/ogc:Filter MaxScaleDenominator4.00/MaxScaleDenominator Graphic ExternalGraphic OnlineResource xmlns:xlink=http://www.w3.org/1999/xlink; xlink:type=simple xlink:href=http://www2.dmsolutions.ca/msapps/world_testdata/map/etc/target-1.gif/ FormatGIF/Format /ExternalGraphic Then I used the temporary mapfile generated by the call to define the same symbology but in my mapfile. SYMBOL NAME http://www2.dmsolutions.ca/msapps/world_testdata/map/etc/target-1.gif; TYPE PIXMAP IMAGE /srv/mapfile/ms_tmp/4cf56a54_49f8_1.gif GAP -11 TRANSPARENT 0 END CLASS NAME test EXPRESSION ([indicatif] = 103005) MAXSCALEDENOM 4 STYLE ANGLE 360 COLOR 0 0 0 SIZE 5.5 SYMBOL http://www2.dmsolutions.ca/msapps/world_testdata/map/etc/target-1.gif; WIDTH 1 END END Question: Finally, I would like to expose this symbology through the GetStyles() method but it seem to be completely ignored? Nametest/Name ogc:Filterogc:PropertyIsEqualToogc:PropertyNameindicatif/ogc:PropertyNameogc:Literal103005/ogc:Literal/ogc:PropertyIsEqualTo/ogc:Filter MaxScaleDenominator4.00/MaxScaleDenominator PointSymbolizer /PointSymbolizer Is it normal? Thank you in advance! MartinO ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Assefa Yewondwossen Software Analyst Email: yass...@dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Spatial Filter with WFS
Hi all, As noted MapServer does not support gml:Surface. The original request with gml:Polygon seems to be correct. Andreas, is it possible to package it and send it to me off list. I can quickly check what the issue is. regards, as noted Mapserver does not support gml:Surface. On 23/11/2010 8:26 AM, Rahkonen Jukka wrote: Hi, This one may not be the only problem, but I would start by creating a valid WFS 1.1.0 request by giving a filter as gml3 or alternatively go on with using gml2 filter but changing version to WFS 1.0.0. Here below is a WFS 1.1.0 request that works against deegree. It does not necessarily work against Mapserver because it can well be that Mapserver does not support gml:Surface, even if the surface is a plain polygon as in this case. However, you see that gml3 does not use gml:coordinates, it is using gml:posList and it would be a miracle or Mapserver bug or both if your request works. ?xml version=1.0 encoding=ISO-8859-1? wfs:GetFeature xmlns:ogc=http://www.opengis.net/ogc; xmlns:gml=http://www.opengis.net/gml; xmlns:wfs=http://www.opengis.net/wfs; service=WFS version=1.1.0 maxFeatures=1000 outputFormat=text/xml; subtype=gml/3.1.1 wfs:Query xmlns:app=http://www.deegree.org/app; srsName=EPSG:26912 typeName=app:Counties ogc:Filter ogc:Intersects xmlns:gml='http://www.opengis.net/gml' ogc:PropertyName xmlns:app=http://www.deegree.org/app; app:position/ogc:PropertyName gml:Surface srsName='EPSG:26912' gml:patches gml:PolygonPatch gml:exterior gml:LinearRing gml:posList srsDimension='2' count='6' 87.0 198.0 149.0 239.0 261.0 202.0 263.0 89.0 161.0 80.0 87.0 198.0/gml:posList /gml:LinearRing /gml:exterior /gml:PolygonPatch /gml:patches /gml:Surface /ogc:Intersects /ogc:Filter /wfs:Query /wfs:GetFeature -Jukka Rahkonen- Lähettäjä: mapserver-users-boun...@lists.osgeo.org mailto:mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] Puolesta Fischer, Andreas Lähetetty: 22. marraskuuta 2010 19:36 Vastaanottaja: mapserver-users@lists.osgeo.org mailto:mapserver-users@lists.osgeo.org Aihe: [mapserver-users] Spatial Filter with WFS Dear MapServer-User, I configured MapServer version 5.6.5 as WMS- and WFS-Server to offer information about land and properties. I use PostgreSQL/PostGIS (8.4.4/1.5.1) as datastore in this case. The spatial reference system is EPSG:25832 und the type of the geometry is MULTIPOLYGON. OS is Suse Linux Enterprise Server 11, Servicepack1. WMS and WFS work fine until I use a spatial filter within the getFeature-Request of the WFS. In this case the response doesn't deliver any features. Nevertheless the number of features (e.g. numberOf Features='4') is correct. I tried this out with a couple of different boundingboxes and the known number of features that intersect these boundigboxes. In all cases I do not get any features back, but always the right number. So it seems that at least the intersection of the boundingbox and my data works correctly. Please take a look at the following request and response that illustrate that problem: Request: http://myserver/cgi-bin/mapserv?map=/mapserver/mapfiles/u218768/ku_testwfs.mapREQUEST=getFeaturetypename=folie001SERVICE=WFSVERSION=1.1.0 http://myserver/cgi-bin/mapserv?map=/mapserver/mapfiles/u218768/ku_testwfs.mapREQUEST=getFeaturetypename=folie001SERVICE=WFSVERSION=1.1.0 Filter=ogc:Filter Intersects ogc:PropertyNamemsGeometry/ogc:PropertyName gml:Polygon srsName='EPSG:25832' gml:outerBoundaryIs gml:LinearRing gml:coordinates409350,5709890 409350,5709910 409370,5709910 409370,5709890 409350,5709890/gml:coordinates /gml:LinearRing /gml:outerBoundaryIs /gml:Polygon /Intersects /ogc:Filter Response ?xml version=1.0 encoding=ISO-8859-1 ? wfs:FeatureCollection xmlns:ms=http://mapserver.gis.umn.edu/mapserver; xmlns:gml=http://www.opengis.net/gml; xmlns:wfs=http://www.opengis.net/wfs xmlns:ogc=http://www.opengis.net/ogc; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://mapserver.gis.umn.edu/mapserver http://myserver/cgi-bin/mapserv?map=/mapserver/mapfiles/u218768/ku_testwfs.mapSERVICE=WFSVERSION=1.1.0REQUEST=DescribeFeatureTypeTYPENAME=folie001OUTPUTFORMAT=text/xml http://myserver/cgi-bin/mapserv?map=/mapserver/mapfiles/u218768/ku_testwfs.mapSERVICE=WFSVERSION=1.1.0REQUEST=DescribeFeatureTypeTYPENAME=folie001OUTPUTFORMAT=text/xml; subtype=gml/3.1.1 http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd; numberOfFeatures=4 gml:boundedBy gml:Envelope srsName=EPSG:25832 gml:lowerCorner-1.00 -1.00/gml:lowerCorner gml:upperCorner-1.00 -1.00/gml:upperCorner /gml:Envelope /gml:boundedBy /wfs:FeatureCollection Indeed of this behavior the WFS returns features when I do not use a spatial filter. Therefore in my opinion the WFS should be configured right in general. To me the spatial filter seems to be the
Re: [mapserver-users] Spatial Filter with WFS
On 23/11/2010 9:00 AM, Rahkonen Jukka wrote: Y.A, a question for you: I have thought that also the filters should be presented as gml3 with WFS 1.1.0 and thus posList should be used instead of coordinates. Am I wrong with this belief? By the way, this is how Geoserver 2.1 beta 1 writes out on multipolygon as gml3 Yes with wfs 1.1, It should be gml3. Note that the parsing of the gml tree is done through OGR and I believe OGR is flexible to read the different syntax for a coordinates tag. We do not schema validate the gml in MapServer and take as assumption that It is good, if it is parsed properly by OGR. topp:the_geom gml:MultiSurface srsDimension=2 srsName=urn:x-ogc:def:crs:EPSG:4326 gml:surfaceMember gml:Polygon gml:exterior gml:LinearRing gml:posList 37.510991 -88.071564 37.4762736 -88.087883 37.442852 -88.311707 37.409308 -88.359177 -Jukka Rahkonen- I was not aware of the MultiSurface element. It is now added in svn (http://trac.osgeo.org/mapserver/ticket/3615) regards, -- Assefa Yewondwossen Software Analyst Email: yass...@dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] SLD and OUTPUTFORMAT compatibility?
Hi Martin, Can you try to check the map file after the sld has been applied: you can do that by setting your map file in debug and checking the log file look for something like ...Map file after SLD was applied (ex: something like this): CONFIG MS_ERRORFILE f:/msapps/gmap-ms40/htdocs/gmap.log DEBUG 5 We can then check why the same style setting is not drawing the same way with the 2 drivers. Please also indicate which version of MapServer you are using. regards, On 23/11/2010 9:15 AM, Martin Ouellet wrote: Hi all, I have 2 two differents settings for symbolize my lines (refer to SLD settings below): 1) a dashed line which is working *_only when I specify the outputformat:_ *DRIVER *GD*/PNG **Note that with the driver GD/PNG, the external graphic below is not working but the symbol (ico-ulaval-flag.gif) is copied locally in the /ms_tmp directory. It seem to be ignored by mapserver (but raising no error)... 2) a external graphic which is working *_only when I specify the outputformat:_ *DRIVER *AGG*/PNG Q: Is there a way/config to support both at the same time? any advice? Thanks you in advance! MartinOuellet SLD settings: __ !--line with a dashed pattern- se:LineSymbolizer se:Stroke sld:CssParameter name=stroke#000A99/sld:CssParameter sld:CssParameter name=stroke-dasharray6.0 2.0 1.0 2.0 1.0 2.0 1.0 2.0 4.0/sld:CssParameter sld:CssParameter name=stroke-width1.0/sld:CssParameter /se:Stroke /se:LineSymbolizer !--line with a external graphic symbol- se:LineSymbolizer se:Stroke se:GraphicStroke se:Graphic ExternalGraphic OnlineResource xlink:type=simple xlink:href=http://www.fsi.ulaval.ca/typo3conf/ext/Annuaire_facultaire/images/ico-ulaval-flag.gif/ Formatimage/gif/Format /ExternalGraphic Size10.0/Size /se:Graphic /se:GraphicStroke /se:Stroke /se:LineSymbolizer ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Assefa Yewondwossen Software Analyst Email: yass...@dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Classifying Dynamic Points
On 23/11/2010 10:34 AM, Burgholzer, Robert (DEQ) wrote: Hmm, maybe a **little** more work than I was hoping for, but that might be a workable solution. Thanks for the tip/link. Guess the question still remains, do these pointObj's have no other parameter attributes? Not that I know of. (Doc is available at http://mapserver.org/mapscript/php/index.htm to see of classes and methods available) ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Classifying Dynamic Points
Maybe wrting a shape file would do the trick for you since you have the ability to add attributes? http://svn.osgeo.org/mapserver/trunk/mapserver/mapscript/php/examples/test_writeshape.phtml On 23/11/2010 9:56 AM, Burgholzer, Robert (DEQ) wrote: I have succeeded in generating a point layer dynamically thanks to a wiki entry (http://trac.osgeo.org/mapserver/wiki/PHPMapScriptAddPointScale), but I find that I do not have the understanding that I need to color code these points by their value. These values are precipitation summaries, that I want to apply a color ramp to. I can't figure out how to add an attribute other than the x,y,z, and m coordinates. Is this possible? I really want to do this without having to use my postgis connection, but rather, with this dynamically generated layer approach if possible. Thanks, r.b. Robert W. Burgholzer Surface Water Modeler Office of Water Supply and Planning Virginia Department of Environmental Quality rwburghol...@deq.virginia.gov mailto:rwburghol...@deq.virginia.gov 804-698-4405 Open Source Modeling Tools: http://sourceforge.net/projects/npsource/ ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Assefa Yewondwossen Software Analyst Email: yass...@dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Dinamic SLD style
Hi there, It is possible to do attribute binding on some elements but It was not implemented for the Graphic symbol property name. I have added that support in trunk. It is described in the bug 3586 [1]. You might want to add your name to that bug and comment on it. regards, [1]: http://trac.osgeo.org/mapserver/ticket/3586 On 25/10/2010 5:55 AM, Joaquín Rodriguez-Guerra Urcelay wrote: Hello, I am trying to create a dinamic sld style for a shapefile in mapserver. I come from geoserver, and I was wondering if there was any way to use properties of the shapefile in the sld style, as in the example below where points in the shapefile with tipo=3 are represented with a ship3.png rotated COG deegrees. Is this possible in mapserver? Thanks for your help! Rule Titleship3/Title ogc:Filter ogc:PropertyIsEqualTo ogc:PropertyNameTipo/ogc:PropertyName ogc:Literal3/ogc:Literal /ogc:PropertyIsEqualTo /ogc:Filter PointSymbolizer Graphic ExternalGraphic OnlineResource xlink:type=simple xlink:href=ships/ship3.png / Formatimage/png/Format /ExternalGraphic Size16/Size Rotationogc:PropertyNameCOG/ogc:PropertyName/Rotation /Graphic /PointSymbolizer /Rule Joaquín Rodríguez-Guerra Urcelay __ This message including any attachments may contain confidential information, according to our Information Security Management System, and intended solely for a specific individual to whom they are addressed. Any unauthorised copy, disclosure or distribution of this message is strictly forbidden. If you have received this transmission in error, please notify the sender immediately and delete it. __ Este mensaje, y en su caso, cualquier fichero anexo al mismo, puede contener informacion clasificada por su emisor como confidencial en el marco de su Sistema de Gestion de Seguridad de la Informacion siendo para uso exclusivo del destinatario, quedando prohibida su divulgacion copia o distribucion a terceros sin la autorizacion expresa del remitente. Si Vd. ha recibido este mensaje erroneamente, se ruega lo notifique al remitente y proceda a su borrado. Gracias por su colaboracion. __ ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Assefa Yewondwossen Software Analyst Email: yass...@dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] wfs 1.1 capabilities breaks when using special characters
Hi, This is probably related to encoding issues with libxml2 described in http://trac.osgeo.org/mapserver/ticket/3297 Some items are still missing the encoding conversion. If there is no sensitive info in your map, It would be nice to attach it to the bug so It can be tested. regards, On 22/10/2010 8:29 AM, Holger Porath wrote: Hi list, mapserver 5.6 breaks when we perform a getcapabilities request for wfs 1.1. This only happens when the capabilities response contains special characters (like the copyright symbol or umlauts). The response is cut at the position where the special character is returned: wfs:WFS_Capabilities xmlns:gml=http://www.opengis.net/gml; xmlns:wfs=http://www.opengis.net/wfs; xmlns:ows=http://www.opengis.net/ows; xmlns:xlink=http://www.w3.org/1999/xlink; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns:ogc=http://www.opengis.net/ogc; xmlns=http://www.opengis.net/wfs; version=1.1.0 xsi:schemaLocation=http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd; ows:ServiceIdentification ows:Titletest title/ows:Title ows:Abstracttest abstract/ows:Abstract !--WARNING: Optional metadata ows_keywordlist was missing for ows:KeywordList-- ows:ServiceType codeSpace=OGCOGC WFS/ows:ServiceType ows:ServiceTypeVersion1.1.0/ows:ServiceTypeVersionows:Feestest fees/ows:Fees ows:AccessConstraintscopyright The error log shows the following: [Fri Oct 22 13:57:57 2010] [error] [client 10.6.241.71]encoding [Fri Oct 22 13:57:57 2010] [error] [client 10.6.241.71] error : [Fri Oct 22 13:57:57 2010] [error] [client 10.6.241.71] output conversion failed due to conv error, bytes 0xFC 0x6D 0x65 0x72 [Fri Oct 22 13:57:57 2010] [error] [client 10.6.241.71] I/O [Fri Oct 22 13:57:57 2010] [error] [client 10.6.241.71] error : [Fri Oct 22 13:57:57 2010] [error] [client 10.6.241.71] encoder error The strange thing is that for wfs 1.0 the request/response is working fine! It is not cut and returned as usual. The issue is only for wfs 1.1. Does anyone have any idea? Thanks in advance. Holger --- Dipl. Wirt. Inform. Holger Porath Wangeroogestraße 63 45665 Recklinghausen holger.por...@porath.de___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Assefa Yewondwossen Software Analyst Email: yass...@dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Trouble shooting SLD?
Hi there, I do not think there is any thing wrong wit the LSD you posted. I used it locally with MapServer svn and It did apply (after I changed the layer name to my local data set. I see that your map file has the log set and you should be able to see something in the log file starting with msApplySLD() Do you see that? Another point is that the sld file is temprarly saved into the tnagepath defined in your mapfile (IMAGEPATH 'R:/webtemp/' ): Would there be any problem for the web user to write files in that directory? You can use also the SLD_BODY to avoid that. Here is your encoded sld [1] that I have used and works (you need to change the name inside it back to reflect your map file): Please also indicate the version of MapServer (sorry if I have missed this info in the thread). I am using the current trunk version. regards [1] : %3CStyledLayerDescriptor+version%3D%221.0.0%22%3E%3CNamedLayer%3E%3CName%3EWorldGen%3C%2FName%3E%3CUserStyle%3E%3CTitle%3ECommunities%3C%2FTitle%3E%3CFeatureTypeStyle%3E%3CRule%3E%3CPolygonSymbolizer%3E%3CFill%3E%3CCssParameter+name%3D%22fill%22%3E%23d2741c%3C%2FCssParameter%3E%3CCssParameter+name%3D%22fill-opacity%22%3E1%3C%2FCssParameter%3E%3C%2FFill%3E%3CStroke%3E%3CCssParameter+name%3D%22stroke%22%3E%2300%3C%2FCssParameter%3E%3CCssParameter+name%3D%22stroke-width%22%3E0.26%3C%2FCssParameter%3E%3CCssParameter+name%3D%22stroke-opacity%22%3E1%3C%2FCssParameter%3E%3C%2FStroke%3E%3C%2FPolygonSymbolizer%3E%3C%2FRule%3E%3C%2FFeatureTypeStyle%3E%3C%2FUserStyle%3E%3C%2FNamedLayer%3E%3C%2FStyledLayerDescriptor%3E On 18/10/2010 5:22 PM, K wrote: As I am still unable to get my SLD to work, I wonder if the shape file (is it a shape file?) and map file for that example is available to download somewhere? This way I can toss it on my server and it would let me see if my problem is software related, rather then something wrong with my files. Thanks, Ken On 18/10/2010 5:31 PM, Jeff McKenna wrote: On 10-10-18 11:16 AM, Rahkonen Jukka wrote: I noticed that none of the full request links in the document http://mapserver.org/ogc/sld.html are working now Good catch Jukka. The examples should be working again, please re-try. -jeff ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Assefa Yewondwossen Software Analyst Email: yass...@dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Problems labelling using Halo option
Hi there, Is the sld xml you are using valid? Grabbing it from this e-mail, It seems to not validate (several PropertyName tags). It might just a copy paste but make sure of that. You can aslo set your map in debug mode ( DEBUG 5 for example) and check your logs to see if the xml was parsed properly and if that is the case you should also be able a tmp file of your map file after SLD was applied regards, On 30/09/2010 3:34 AM, David Alda Fernandez de Lezea wrote: Hi list, I'm developing a program that generates some images from a WMS with a dynamic generated SLD. The problem is that I'm telling MapServer to generate some labels with Halo, to make them easy to read, using the following code: NamedLayer Namevinedos/Name UserStyleName/NameTitle/TitleAbstract/Abstract FeatureTypeStyle Rule Filter And PropertyIsEqualToPropertyNameprovincia/PropertyNameLiteral1/Literal/PropertyIsEqualTo PropertyIsEqualToPropertyNamemunicipio/PropertyNameLiteral43/Literal/PropertyIsEqualTo PropertyIsEqualToPropertyNamepoligono/PropertyNameLiteral4/Literal/PropertyIsEqualTo PropertyIsEqualToPropertyNameparcela/PropertyNameLiteral880/Literal/PropertyIsEqualTo PropertyIsEqualToPropertyNamerecinto/PropertyNameLiteral1/Literal/PropertyIsEqualTo /And /Filter PolygonSymbolizer Stroke CssParameter name=stroke#00/CssParameter CssParameter name=stroke-width2/CssParameter CssParameter name=stroke-dasharray5 5 5 5/CssParameter /Stroke /PolygonSymbolizer TextSymbolizer Label PropertyNamepoligono/PropertyName-PropertyNameparcela/PropertyName-PropertyNamerecinto/PropertyName /Label Font CssParameter name=font-familytimes/CssParameter CssParameter name=font-size18/CssParameter CssParameter name=font-weightbold/CssParameter /Font LabelPlacement PointPlacement AnchorPointAnchorPointX0.5/AnchorPointXAnchorPointY0.5/AnchorPointY /AnchorPoint /PointPlacement /LabelPlacement Halo Radius Literal2/Literal /Radius Fill CssParameter name=fill#FF/CssParameter CssParameter name=fill-opacity0.85/CssParameter /Fill /Halo Fill CssParameter name=fill#00/CssParameter CssParameter name=fill-opacity0.65/CssParameter /Fill /TextSymbolizer /Rule /FeatureTypeStyle /UserStyle /NamedLayer But when I receive the image the Halo is not applied (see attached file). My mapfile is as follows: NAME WMSSERVER STATUS ON EXTENT 46 471 61 482 # Euskadi SHAPEPATH extra/shapes/ FONTSET extra/fonts/fonts.txt SYMBOLSET extra/symbols/symbols.sym IMAGETYPE image/png; mode=24bit OUTPUTFORMAT NAME png DRIVER AGG/PNG MIMETYPE image/png IMAGEMODE RGBA EXTENSION png FORMATOPTION TRANSPARENT=ON FORMATOPTION INTERLACE=OFF END OUTPUTFORMAT NAME jpeg DRIVER GD/JPEG MIMETYPE image/jpeg IMAGEMODE RGB EXTENSION jpg END IMAGECOLOR 255 255 255 UNITS METERS DEBUG ON CONFIG MS_ERRORFILE C:/ms4w/Apache/htdocs/ogcservices/logs/wms_impresiones_lotes_log.log DEBUG 5 WEB IMAGEPATH C:/ms4w/Apache/htdocs/ogcservices/tmp/ IMAGEURL tmp/ METADATA wms_nameIKT WMS Server wms_title Servidor WMS IKT - Impresiones Lotes wms_onlineresource http://192.168.1.161/cgi-bin/mapserv.exe?map=../htdocs/ogcservices/impresiones_lotes_wms.map; wms_srs EPSG:23030 EPSG:4326 wms_transparent true wms_abstractServicio de mapas WMS de IKT Nekazal Teknologia. Powered by Apache and UMN MapServer. Servicio WMS para las impresiones por lotes. wms_keywordlist IKT,Euskadi,Mapas Euskadi wms_feature_info_mime_type application/vnd.ogc.gml labelcache_map_edge_buffer -10 END END PROJECTION init=epsg:23030 END LAYER STATUS ON CONNECTIONTYPE postgis CONNECTION user=postgres password= dbname=VITICOLA_IMPRESIONES host=192.168.1.161 port=5432 NAME vinedos PROJECTION init=epsg:23030 END DUMP TRUE TYPE POLYGON METADATA wms_title vinedos wms_srs EPSG:23030
Re: [mapserver-users] Problems labelling using Halo option
Hi, Check the file C:/ms4w/Apache/htdocs/ogcservices/tmp/4ca47709_100_1._sld.map and the layer where the sld is applied, the label object should have the outlinecolor set if it worked properly. Is that the case? I am not sure I understand the font issue, but you can also see what font was set fir that label object. regards, On 30/09/2010 7:43 AM, David Alda Fernandez de Lezea wrote: Assefa, Yes, it's valid. It works, but not with desired behaviour. It draws the polygons with the labels but without the Halo effect. I forgot to put xml headers in the previous email. ?xml version=1.0 encoding=UTF-8? StyledLayerDescriptor version=1.0.0 xsi:schemaLocation=http://www.opengis.net/sld StyledLayerDescriptor.xsd xmlns=http://www.opengis.net/sld; xmlns:ogc=http://www.opengis.net/ogc; xmlns:xlink=http://www.w3.org/1999/xlink; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; I also forgot to mention that if I putCssParameter name=font-familyVerdana/CssParameter for example, and Verdana does not exist in my fontset, it does the labelling properly (including Halo), but it's like if mapserver gets some default values, because the size has changed and even though I change it in th e SLD, the size keeps the same. WMS Log [Thu Sep 30 13:39:53 2010].513000 CGI Request 1 on process 256 [Thu Sep 30 13:39:53 2010].685000 msApplySLD(): Map file after SLD was applied C:/ms4w/Apache/htdocs/ogcservices/tmp/4ca47709_100_1._sld.map[Thu Sep 30 13:39:53 2010].826000 msDrawRasterLayerLow(orto0): entering. [Thu Sep 30 13:40:02 2010].216000 msDrawMap(): Layer 4 (orto0), 8.390s [Thu Sep 30 13:40:03 2010].606000 msDrawMap(): Layer 0 (vinedos_sigpac), 1.390s [Thu Sep 30 13:40:04 2010].122000 msDrawMap(): Layer 3 (vinedos_disolve_bn), 0.516s [Thu Sep 30 13:40:04 2010].513000 msDrawMap(): Layer 2 (vinedos_disolve), 0.391s [Thu Sep 30 13:40:05 2010].919000 msDrawMap(): Layer 1 (vinedos), 1.406s [Thu Sep 30 13:40:07 2010].106000 msDrawMap(): Layer 7 (vinedos_parcelas), 1.187s [Thu Sep 30 13:40:07 2010].106000 msDrawLabelCache(): labelcache_map_edge_buffer = -10 [Thu Sep 30 13:40:07 2010].106000 msDrawMap(): Drawing Label Cache, 0.000s [Thu Sep 30 13:40:07 2010].106000 msDrawMap() total time: 13.343s [Thu Sep 30 13:40:08 2010].606000 msSaveImage() total time: 1.500s [Thu Sep 30 13:40:08 2010].606000 mapserv request processing time (msLoadMap not incl.): 15.093s [Thu Sep 30 13:40:08 2010].637000 msFreeMap(): freeing map at 015C6820. Thanks. De: Yewondwossen Assefa [mailto:yass...@dmsolutions.ca] Enviado el: jueves, 30 de septiembre de 2010 13:24 Para: David Alda Fernandez de Lezea CC: mapserver-users@lists.osgeo.org Asunto: Re: [mapserver-users] Problems labelling using Halo option Hi there, Is the sld xml you are using valid? Grabbing it from this e-mail, It seems to not validate (severalPropertyName tags). It might just a copy paste but make sure of that. You can aslo set your map in debug mode ( DEBUG 5 for example) and check your logs to see if the xml was parsed properly and if that is the case you should also be able a tmp file of your map file after SLD was applied regards, On 30/09/2010 3:34 AM, David Alda Fernandez de Lezea wrote: Hi list, I'm developing a program that generates some images from a WMS with a dynamic generated SLD. The problem is that I'm telling MapServer to generate some labels with Halo, to make them easy to read, using the following code: NamedLayer Namevinedos/Name UserStyleName/NameTitle/TitleAbstract/Abstract FeatureTypeStyle Rule Filter And PropertyIsEqualToPropertyNameprovincia/PropertyNameLiteral1/Literal/PropertyIsEqualTo PropertyIsEqualToPropertyNamemunicipio/PropertyNameLiteral43/Literal/PropertyIsEqualTo PropertyIsEqualToPropertyNamepoligono/PropertyNameLiteral4/Literal/PropertyIsEqualTo PropertyIsEqualToPropertyNameparcela/PropertyNameLiteral880/Literal/PropertyIsEqualTo PropertyIsEqualToPropertyNamerecinto/PropertyNameLiteral1/Literal/PropertyIsEqualTo /And /Filter PolygonSymbolizer Stroke CssParameter name=stroke#00/CssParameter CssParameter name=stroke-width2/CssParameter CssParameter name=stroke-dasharray5 5 5 5/CssParameter /Stroke /PolygonSymbolizer TextSymbolizer Label PropertyNamepoligono/PropertyName-PropertyNameparcela/PropertyName-PropertyNamerecinto/PropertyName /Label Font CssParameter name=font-familytimes/CssParameter CssParameter name=font-size18/CssParameter CssParameter name=font-weightbold/CssParameter /Font LabelPlacement PointPlacement AnchorPointAnchorPointX0.5/AnchorPointXAnchorPointY0.5/AnchorPointY
Re: [mapserver-users] wfs filter request
Hi There, I have loged this in http://trac.osgeo.org/mapserver/ticket/3557. Fix is committed for the 5.6 branch. Please give it a try and update the bug. regards, On 30/09/2010 3:43 AM, Holger Porath wrote: Hi again! We are still having issues with using mapserver 5.6.5 as a wfs server together. When we submit a wfs getfeature filter request mapserver doesn't use the filter in the sql statement. It just searches all the objects in the database and applies the filter on the result. Thus, we are getting a timeout. Here is our filter request: Filter=FilterPropertyIsLike wildCard=% singleChar=? escape=ESCPropertyNameFS_FSZ/PropertyNameLiteral111/Literal/PropertyIsLike/Filter As you can see the filter for the attribute FS_FSZ is set to 111. The debug log shows that this isn't used in the sql at all: Using this Sql to retrieve the data : SELECT fs_id, FS_GKNR, FS_FLNR, FS_FSZ, FS_FSN, FS_FSSTATUS, FS_ID, FS_FSRWERT_ABS, FS_FSHWERT_ABS, fs_koordinate FROM os_flst I expected to see a where clause like the following: where fs_fsz like 111 When we switch back to mapserver 5.0.0 we see the correct where clause in the debug log. So what are we doing wrong or is this a bug? Thanks for your help. Regards, Holger This is how our layer definition looks like: LAYER NAME test_flst METADATA wfs_extent 341 547 3666000 5726000 wfs_title test_flst gml_featureid fs_id gml_include_items all # optional END # of METADATA TYPE POINT STATUS ON CONNECTIONTYPE oraclespatial CONNECTION user/p...@service DATA fs_koordinate from os_flst USING UNIQUE fs_id NONE PROJECTION init=epsg:31467 END # of PROJECTION DUMP TRUE END # of LAYER ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Assefa Yewondwossen Software Analyst Email: yass...@dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] SVG, PDF and Flash output in MapServer 6.0.
On 10/09/2010 4:08 PM, Andreas Neumann wrote: Hi, Thank you for your information on future plans about output based on Cairo. Regarding the SVG support, my main concern is that if the output goes through Cairo than there is no chance of adding attributes and semantics to the vector features in SVG - am I correct? In SVG one could f.e. embed title and description elements, as well as non-graphical That is correct from what I can see. attributes in a separate namespace in the XML output. Now that SVG support will be widespread in all browsers (IE9 will be implementing SVG), I would assume that people would make more use of SVG output, also for interactive maps. In this setup it would be nice if one could have the option between a pure graphical output (probably the CAIRO output version) and a more semantically rich output (a separate output driver?) I would recommend to go with Cairo, but leave the door open for another, alternative output driver for more sophisticated SVG output. I agree with you that we would have more control on what we can output if we have a native MapServer svg driver. I think adding a native SVG driver will always possible baring in mind that there is enough need/interest to add it and support it in the long term Thanks for your feedback. regards, Regarding SWF: it would be better if Flash would die in the long run - it is not part of the open web and a black box. All browser project now seem committed to implement SVG and canvas. So I myself wouldn't care if you would drop SWF support. Other users may think different. Just my two cents, Andreas On 9/10/10 5:09 PM, Yewondwossen Assefa wrote: Hi all, The Dev team is reviewing and preparing for the 6.0 MapServer release [1][2]. There are significant changes and new features in this release. One of them is the rendering overhaul. The reasons behind is to facilitate the long term maintenance and make sure that all the output formats are in sync feature-wise. Currently output drivers such as svg, pdf and flash lag in functionality and supported features compare to the AGG/GD output. As part of this re-factoring, the Cairo library [3] will be added allowing SVG and PDF outputs to pass through this library. This would deprecate the current support of native svg and pdf in MapServer. The other renderer that is affected is the SWF (Flash) renderer: at this point there is no effort to bring this output feature to the level of other renderers. This means that there is a big chance that the SWF support will not be part of the 6.0 release (unless someone wants to fund it). Is this something that affects lots/some users? best regards, [1] http://trac.osgeo.org/mapserver/wiki/60ReleasePlan [2] http://trac.osgeo.org/mapserver/wiki/60MigrationIssues [3] http://cairographics.org/ * * -- Assefa Yewondwossen Software Analyst Email:yass...@dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ___ 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 -- Assefa Yewondwossen Software Analyst Email: yass...@dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] SVG, PDF and Flash output in MapServer 6.0.
Hi all, The Dev team is reviewing and preparing for the 6.0 MapServer release [1][2]. There are significant changes and new features in this release. One of them is the rendering overhaul. The reasons behind is to facilitate the long term maintenance and make sure that all the output formats are in sync feature-wise. Currently output drivers such as svg, pdf and flash lag in functionality and supported features compare to the AGG/GD output. As part of this re-factoring, the Cairo library [3] will be added allowing SVG and PDF outputs to pass through this library. This would deprecate the current support of native svg and pdf in MapServer. The other renderer that is affected is the SWF (Flash) renderer: at this point there is no effort to bring this output feature to the level of other renderers. This means that there is a big chance that the SWF support will not be part of the 6.0 release (unless someone wants to fund it). Is this something that affects lots/some users? best regards, [1] http://trac.osgeo.org/mapserver/wiki/60ReleasePlan [2] http://trac.osgeo.org/mapserver/wiki/60MigrationIssues [3] http://cairographics.org/ * * -- Assefa Yewondwossen Software Analyst Email: yass...@dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] WFS GetFeature and SLD filter Between
Hi There, Would you please let me know what is the underlying layer's format that OGR is using; It might help to to reproduce the problem? From reading this, the OGC filter has been translated into an sql statement and passed to OGR (something like WHERE row BETWEEN 2 AND 4). From my understanding, OGR passes sql statements to underlying drivers that support sql or parses it it self when the driver does not support it. I have opened a bug on it http://trac.osgeo.org/mapserver/ticket/3510 and will update it as I find the problem. You can maybe also try your filter by converting the between operator to = and = as a work around. best regards, On 04/08/2010 6:27 AM, Arnd Wippermann wrote: Hi if I use a SLD filter Between for filter the WFS getfeature, I get the following error: ?xml version='1.0' encoding=ISO-8859-1 ? ServiceExceptionReport version=1.2.0 xmlns=http://www.opengis.net/ogc; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://www.opengis.net/ogc http://schemas.opengis.net/wfs/1.0.0/OGC-exception.xsd; ServiceException code=NoApplicableCode locator=mapserv msWFSGetFeature(): WFS server error. FLTApplyFilterToLayer() failed msOGRFileWhichShapes(): OGR error. SetAttributeFilter( (row BETWEEN 2 AND 4)) failed on layer Squares. Failed to identify operation:BETWEEN /ServiceException /ServiceExceptionReport Is it a known bug, or is perhaps the post request incorrect? That's the post request post wfs:getfeature xmlns:wfs=http://www.opengis.net/wfs; service=WFS version=1.0.0 maxFeatures=100 xsi:schemaLocation=http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.0.0/WFS-transaction.xsd; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; wfs:query typeName=Squares ogc:propertyname xmlns:ogc=http://www.opengis.net/ogc;name/ogc:propertyname ogc:propertyname xmlns:ogc=http://www.opengis.net/ogc;description/ogc:propertyname ogc:propertyname xmlns:ogc=http://www.opengis.net/ogc;row/ogc:propertyname ogc:propertyname xmlns:ogc=http://www.opengis.net/ogc;column/ogc:propertyname ogc:propertyname xmlns:ogc=http://www.opengis.net/ogc;indice/ogc:propertyname ogc:propertyname xmlns:ogc=http://www.opengis.net/ogc;msGeometry/ogc:propertyname ogc:filter xmlns:ogc=http://www.opengis.net/ogc; ogc:propertyisbetween ogc:propertynamerow/ogc:propertyname ogc:lowerboundary ogc:literal2/ogc:literal /ogc:lowerboundary ogc:upperboundary ogc:literal4/ogc:literal /ogc:upperboundary /ogc:propertyisbetween /ogc:filter /wfs:query /wfs:getfeature MapServer 5.6.1 I hope someone has a clue. Arnd ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Assefa Yewondwossen Software Analyst Email: yass...@dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] vector pdf output
On 03/08/2010 5:03 PM, Worth Lutz wrote: Does MapServer support vector PDF output?? Also I am experimenting on ver. 5.6.3 with pdf output and am getting some output but it does not look like the png output. I also have not yet figured out why I sometimes get nothing for some layers. Still experimenting... Can anyone point me to some examples? Is the cairo/pdf output available in the svn trunk? If I compile that will I be able to experiment with it? Any advise on trying that? If you want to experiment, you should try using the version in the sandbox (http://svn.osgeo.org/mapserver/sandbox/mapserver6/), instead of trunk. This sandbox will eventually be merged to trunk Ii uses the cairo library for the pdf output From what I can see, It seems to be in a good shape. Note that the imagetype to use is pdf. You can see an example of a pdf generated at http://www3.dmsolutions.ca/tmp/gmap-ms60.pdf best regards, -- Assefa Yewondwossen Software Analyst Email: yass...@dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] WFS Filter encoding . . . Anyone know what the Units list for DWithin that MapServer honors?
On 11/07/2010 5:40 PM, Blammo wrote: Ok, I got another related question . . On a DWithin return list, any chance that the results are ordered by distance from a point, closest first? Or isn't this something I can depend on from MapServer? There is no guarantee on that. The search is done within the distance and all points that fit the criteria are returned in the order they are found. -- Assefa Yewondwossen Software Analyst Email: yass...@dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] WFS Filter encoding . . . Anyone know what the Units list for DWithin that MapServer honors?
On 11/07/2010 6:02 PM, Blammo wrote: More info, Using this service call: https://www.sharedgeo.org/MNGEO-ro/public/ows?SERVICE=wfsVERSION=1.1.0REQUEST=getFeatureTYPENAME=layer_3FILTER=%3CFilter%3E%3CDWithin%3E%3CPropertyName%3EGeometry%3C/PropertyName%3E%3Cgml:Point%3E%3Cgml:coordinates%3E-93.093,44.955%3C/gml:coordinates%3E%3C/gml:Point%3E%3CDistance%20units=%27f%27%3E0.0438%3C/Distance%3E%3C/DWithin%3E%3C/Filter%3E I tried, FT, FEET, Ft, ft, Feet and f, (this last, the f is the only thing that changed the results, but it only increased the return from three to six points): I used the same unit distance of 0.0438, which the majority of time returns three points. These points in ground units are actually within ~2360ft of each other. I have no idea how the 0.0438 number relates to that. Is it possibly related to the LAT/LON coordinate system? This is working enough for me to get through my current stage of development, I'm just trying to get a handle on how the filter units are supposed to relate to the map units. Maybe DWithin has a PROJ option or something?? When the units in unrecognized (like f in this case), It should be ignored the and distance is assumed to be the same units as the gml element that was part of the query. You can add a projection to the gml element using the srsrName element. best regards, -- Assefa Yewondwossen Software Analyst Email: yass...@dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] getlegendgraphic error with GROUP layers
@Assefa: Do you have a more detailed implementation plan for this issue? I am also highly interested in this feature. Best regards Stephan [1] http://trac.osgeo.org/mapserver/ticket/3411 It is still planned to be addressed before 6.0. I am not sure yet about the release date but I intend to spend some time before that to close bugs tagged for 6.0. regards, -- Assefa Yewondwossen Software Analyst Email: yass...@dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] OGC spatial filter BBox
On 30/06/2010 9:00 AM, Daniel Degasperi wrote: Hi, does the spatial filter BBox described in http://mapserver.org/ogc/sld.html work? If I take look at the full_request_6d example, it seems the filter will be applied on all the geometries. I tried to apply a spatial BBox filter also on a set of polygons, but instead to change the color for the polygon within the given bbox, it changed the color of every geometry of my layer. I believe in this case that the bboxfilter in the sld is over written by the bbox of the wms request. I have added a trac on it [1] and will fix it for the 6.0 release. best regards, [1]: http://trac.osgeo.org/mapserver/ticket/3479 Best regards, Daniel ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Assefa Yewondwossen Software Analyst Email: yass...@dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] follow-up on OGC compliancy
On 02/07/2010 6:49 AM, Bart van den Eijnden wrote: Hi list, a follow-up on this e-mail from Daniel Morissette: http://www.mail-archive.com/mapserver-users@lists.osgeo.org/msg08668.html Is there still the plan to get the official stamp from OGC on WMS compliancy? Any timeline? Is there still work ongoing for WFS compliancy, or does this need sponsorship to actually happen? Also, I assume it is technically viable to have Mapserver WFS 1.1 compliant, or are there big / impossible hurdles to be taken? There was some effort put toward wfs 1.1 compliancy tests with several elements identified and corrected. Summary of this effort is described here [1]. There is still substantial work to be done to be able to pass the majority of the tests (things such addressing mandatory/non mandatory attributes, support of Xpath expressions, support of the Sort operator, encoding comes into mind). I believe there will still be some issues with some of the tests that we found were inconsistent (although I have not followed the details, note that CITE has done some work to upgrade/correct the tests). There will be some effort toward this again sometime before the 6.0 release. [1]: http://trac.osgeo.org/mapserver/wiki/MapServerOGCCITEComplianceWFS110Notes best regards. TIA. Best regards, Bart___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Assefa Yewondwossen Software Analyst Email: yass...@dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Polygon outline not drawn in PDF output if polygon is not filled
Hi There, The first issue with the color/fill-color seems to be a defect. This second issue with the Width parameter is due to the fact that the parameter is not supported in the PDF driver. The intention is to depreciate the current PDF support and use the Cairo PDF driver for the 6.0 release [1]. At that point we should have support for things like width, color/fill-color, ... be consistent between all output drivers. You could maybe try using MapServer from svn and try the Cairo support and see if that solves your immediate needs. regards, [1] http://trac.osgeo.org/mapserver/wiki/60ReleasePlan Case 1: Unfilled polygon, PDF output: As written above, the PDF output is empty. This is the problem case. Case 2: Filled polygon, PDF output: If the #COLOR line is uncommented, the green-filled polygon, complete with red outline, is drawn. Case 3: Unfilled polygon, PNG output: If I switch to PNG output (by uncommenting the OUTPUTFORMAT for PNG and commenting-out the PDF one) and revert to #COLOR (thereby disabling polygon fill), the unfilled red outline is drawn in the PNG output. Case 4: Filled polygon, PNG output: With PNG output and fill COLOR enabled, the filled green polygon with red outline is drawn to the PNG output. Is this a defect? Could you suggest a work-around for unfilled polygon PDF output? This seems to be a defect A secondary observation: Using a filled polygon for PDF, use of a WIDTH parameter appears to have no effect upon the width of the outline. I'm using MapServer version 5.6.3 (MS4W distribution) under Windows XP Pro 2002 SP3. The problem was demonstrated with use of the drawmap.exe command-line utility. Thanks in advance, - Phil Anzel ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Assefa Yewondwossen Software Analyst Email: yass...@dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Re: Styling a mapfile with SLD?
On 02/06/2010 2:39 AM, paalkr wrote: Hi! Thanks! I really don't understand how that poorly formatted SLD slipped trough the oxygen XML editor, obviously there are many close-tags that misses the backslash. Do you know if there is a ticket regarding the lack of error messages when MapServer fails to either pick up or parse a SLD document? If not I think that I will write one, and encourage one of my colleagues to have a look at the source and maybe write a patch for it. There is an ol one http://trac.osgeo.org/mapserver/ticket/1471 that I just updated. The errors are trapped but at this point we let the WMS request succeed without the SLD. I believe the correct way would be to return an exception. best regards, - Regards, Pål Kristensen -- Assefa Yewondwossen Software Analyst Email: yass...@dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Re: Styling a mapfile with SLD?
On 02/06/2010 9:01 AM, Rahkonen Jukka wrote: Yewondwossen Assefa wrote: On 02/06/2010 2:39 AM, paalkr wrote: Hi! Thanks! I really don't understand how that poorly formatted SLD slipped trough the oxygen XML editor, obviously there are many close-tags that misses the backslash. Do you know if there is a ticket regarding the lack of error messages when MapServer fails to either pick up or parse a SLD document? If not I think that I will write one, and encourage one of my colleagues to have a look at the source and maybe write a patch for it. There is an ol one http://trac.osgeo.org/mapserver/ticket/1471 that I just updated. The errors are trapped but at this point we let the WMS request succeed without the SLD. I believe the correct way would be to return an exception. This needs some consideration. Think about an end user who is using somew ready made application which is set to get styles from an external SLD. Now if this SLD gets broken, which would you prefer as an user: a correct exception without a map, or a map which may have wrong styling? I would take the map. -Jukka Rahkonen- I guess it is debatable. I have not seen something in the specs re. this issue. I will send a note to wms-dev list at OGC to see if there is something in the specs that deals with this issue. best regards, -- Assefa Yewondwossen Software Analyst Email: yass...@dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] WFS – version relat ed problem
On 31/05/2010 12:25 PM, Stefanie Weykam wrote: Dear list members, I am having trouble with parsing the GetCapabilities response from my WFS services: If I send a GetCapabilities-request indicating VERSION=1.0.0 – metadata having non ascii characters (like characters with accent) are parsed without any problem. But indicating VERSION=1.1.0 or omitting this parameter causes a parsing error at the first ‘strange’ character encountered. Is there anything I can do about that? Both, GetFeature and DescribeFeatureType work just fine with any version. This is possibly related to http://trac.osgeo.org/mapserver/ticket/3297. The difference between wfs 1.0 and 1.1 in Mapserver GetCapabilities is that the version 1.1 uses libxml2 as the libarary to build the xml that is returned. It is parlty fixed is the current svn version. Question nº 2 – data type is always string: In response to a DescribeFeatureType request, the server returns data type ‘string’ for all fields. I wonder if I can specify the real data type somehow?? This would allow thick clients to apply filter expressions on this layer. You should be able to set metadata at the layer level to do that: `gml_PERIMETER_type double #where PERIMETER is your attribute name best regards, -- Assefa Yewondwossen Software Analyst Email: yass...@dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Testing KML support
Hi Peter, I have updated the RFC after some cleanup in the code (http://svn.osgeo.org/mapserver/branches/branch-5-6/docs/en/development/rfc/ms-rfc-58.txt). Note also that there is a componenent Output-KML in MapServer trac (http://trac.osgeo.org/mapserver/), for reporting issues. best regards, On 07/05/2010 5:02 PM, Yewondwossen Assefa wrote: Hi Peter, There is supposed to be --with-kml. I have added the OUTPUT=KML if built with the flag. Note that the driver is still in development/cleanup state. I will update the RFC (http://mapserver.org/development/rfc/ms-rfc-58.html) once this phase is over. regards, On 07/05/2010 12:23 PM, Peter Hopfgartner wrote: Hi, I'm would like to look at the KML functionality in the current MapServer trunk. There does not seem to be any specific option in configure, so I enabled it by setting the environment variable CPPFLAGS: $ export CPPFLAGS=-DUSE_KML $ ./configure --with-proj --with-postgis --with-cairovim --with-xml2-config=/usr/bin/xml2-config $ make The resulting shp2img has a lot of Kml-related symbols in it: $ nm shp2img | grep -i kml | wc -l 71 Anyway, KML does not seem to be oin the OUTPUT formats list: [peter.hopfgart...@vm-centos5-64-1 mapserver]$ ./shp2img -v MapServer version 5.7-dev OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER INPUT=JPEG INPUT=POSTGIS INPUT=SHAPEFILE Indeed, trying to produce some KML from a map file, I get: $ /usr/local/bin/shp2img -i KML -m kml_test.map test.kml loadOutputFormat(): General error message. OUTPUTFORMAT clause references driver KML, but this driver isn't configured.br Am I missing something? Regards, Peter -- Assefa Yewondwossen Software Analyst Email: yass...@dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] WFS featureislike and bbox filter required?
Is it possible that the extents values in your map file are not set? regards, On 18/05/2010 5:40 PM, mattmendick wrote: Hi All- I'm trying to query mapserver's wfs service (layer's data is backed by postgis) using the following post: (excuse the parentheses instead of's, they are from some debug code) (wfs:GetFeature service=WFS version=1.1.0 resultType='results' xmlns:wfs=http://www.opengis.net/wfs; xmlns:ogc=http://www.opengis.net/ogc; xmlns:gml=http://www.opengis.net/gml;) (wfs:Query srsName=EPSG:4326 typeName=ms:delaware_highway) (ogc:PropertyName)name(/ogc:PropertyName) (ogc:PropertyName)geom(/ogc:PropertyName) (ogc:Filter) (ogc:PropertyIsLike wildCard=* singleChar=. escape=!) (ogc:PropertyName)name(/ogc:PropertyName) (ogc:Literal)*Wil*(/ogc:Literal) (/ogc:PropertyIsLike) (/ogc:Filter) (/wfs:Query) (/wfs:GetFeature) I don't get back any results, but when I specify a bounding box, let's say a global bounding box to make it easy, I get back all the relevant results. (wfs:GetFeature service=WFS version=1.1.0 resultType='results' xmlns:wfs=http://www.opengis.net/wfs; xmlns:ogc=http://www.opengis.net/ogc; xmlns:gml=http://www.opengis.net/gml;) (wfs:Query srsName=EPSG:4326 typeName=ms:delaware_highway) (ogc:PropertyName)name(/ogc:PropertyName) (ogc:PropertyName)geom(/ogc:PropertyName) (ogc:Filter) ogc:And ogc:BBOX ogc:PropertyNamegeom/ogc:PropertyName gml:Envelope srsName=EPSG:4326 gml:lowerCorner-180 -90/gml:lowerCorner gml:upperCorner180 90/gml:upperCorner /gml:Envelope /ogc:BBOX (ogc:PropertyIsLike wildCard=* singleChar=. escape=!) (ogc:PropertyName)name(/ogc:PropertyName) (ogc:Literal)*Wil*(/ogc:Literal) (/ogc:PropertyIsLike) /ogc:And (/ogc:Filter) (/wfs:Query) (/wfs:GetFeature) Is the bbox filter necessary to do a property is like? When I don't specify the bounding box, the postgres query has this intersect clause: where wkb_geometry GeomFromText('POLYGON((-1 -1,-1 -1,-1 -1,-1 -1,-1 -1)) Is this trying to tell me that I need to add the bbox, or is this a bug? Thanks for your help! -- Assefa Yewondwossen Software Analyst Email: yass...@dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Oracle Spatial and MAXFEATURES, not implemented?
This was done as part of the http://trac.osgeo.org/mapserver/ticket/2605 and is only available in trunk right now (for the upcoming 6.0 release). regards, On 07/05/2010 9:45 AM, Peter Hopfgartner wrote: I'm trying to limit the maximum number of features, as in the map file snippet below. MapServer is 5.6.3. Anyway, the number of features drawn is not limited, as expected, but thousands of shapes are processed. Indeed, enabling -all_debug 5, the query passed to Oracle looks like; --- msOracleSpatialLayerWhichShapes. Using this Sql to retrieve the data: SELECT pln_id, pln_id, the_geom FROM plant_data_map WHERE SDO_FILTER( the_geom, MDSYS.SDO_GEOMETRY(2003, :srid, NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),:ordinates ),'querytype=window') = 'TRUE' msOracleSpatialLayerWhichShapes. Bind values: srid:25832 minx:666798.076923 miny:5169400.00 maxx:667551.923077 maxy:517.00 --- Indeed, almost 15,000 shapes arrive: --- msOracleSpatialLayerNextShape on layer 0x101363e0, row_num: 14934 msOracleSpatialLayerNextShape on layer 0x101363e0, Fetched 0 more rows (14934 total) msOracleSpatialLayerFreeItemInfo was called. --- Peeking at the source in maporaclespatial.c, it seems that layer-maxfeatures is never read and no limitation, maybe looking like ROWNUM= layer-maxfeatures is added to the SELECT statement. Regards, Peter MAPFILE SNIPPET: LAYER #16- GROUP pflanzennr_black_12 NAME Pflanzennr STATUS ON TYPE POINT PROJECTION init=epsg:25832 END CONNECTIONTYPE oraclespatial CONNECTION {MYUSER}/{MYPASSWD} DATA the_geom from plant_data_map using unique pln_id srid 25832 PROCESSING CLOSE_CONNECTION=DEFER SIZEUNITS meters LABELITEM pln_id MAXFEATURES 20 TOLERANCE 1 POSTLABELCACHE TRUE CLASS NAME label LABEL TYPE TRUETYPE PARTIALS TRUE FONT verdana COLOR 0 0 0 OUTLINECOLOR 255 255 255 SIZE 6 MINSIZE 6 MAXSIZE 8 POSITION CR FORCE TRUE END END END -- Assefa Yewondwossen Software Analyst Email: yass...@dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Testing KML support
Hi Peter, There is supposed to be --with-kml. I have added the OUTPUT=KML if built with the flag. Note that the driver is still in development/cleanup state. I will update the RFC (http://mapserver.org/development/rfc/ms-rfc-58.html) once this phase is over. regards, On 07/05/2010 12:23 PM, Peter Hopfgartner wrote: Hi, I'm would like to look at the KML functionality in the current MapServer trunk. There does not seem to be any specific option in configure, so I enabled it by setting the environment variable CPPFLAGS: $ export CPPFLAGS=-DUSE_KML $ ./configure --with-proj --with-postgis --with-cairovim --with-xml2-config=/usr/bin/xml2-config $ make The resulting shp2img has a lot of Kml-related symbols in it: $ nm shp2img | grep -i kml | wc -l 71 Anyway, KML does not seem to be oin the OUTPUT formats list: [peter.hopfgart...@vm-centos5-64-1 mapserver]$ ./shp2img -v MapServer version 5.7-dev OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER INPUT=JPEG INPUT=POSTGIS INPUT=SHAPEFILE Indeed, trying to produce some KML from a map file, I get: $ /usr/local/bin/shp2img -i KML -m kml_test.map test.kml loadOutputFormat(): General error message. OUTPUTFORMAT clause references driver KML, but this driver isn't configured.br Am I missing something? Regards, Peter -- Assefa Yewondwossen Software Analyst Email: yass...@dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] wms version 1.3 bbox problems
Hi, What does the GetMap request looks like, specifically the bbox coordinates and the projection? For wms 1.3.0, bbox coordinates are expected for projections such as espg:4326 to use the inverse axe order (lat/long instead of long/lat)? regards, On 05/05/2010 11:54 AM, Travis Kirstine wrote: Hi, I'm currently running ms 5.4.2 and am having difficulties with wms version 1.3. I am using MapInfo as the client and it seems that it is hard coded wms version 1.3 if available from the service. It seems that there is bbox issue when passing GetMap request to the service. Is there something I have to add to the mapfile to indicate the correct bbox or projection? MAP NAME Montreal Map SIZE 256 256 STATUS OFF UNITS METERS EXTENT -180 -90 180 90 IMAGECOLOR 155 203 231 SHAPEPATH /home/share1/data IMAGETYPE JPEG RESOLUTION 96 PROJECTION init=epsg:4326 END WEB IMAGEPATH /home/share1/data/map_images/ IMAGEURL http:///; METADATA wms_onlineresource http://xx; wms_srs EPSG:32198 EPSG:2138 EPSG:32098 EPSG:4269 EPSG:4326 EPSG:54004 # updated by user wms_title Montreal Map # defined by user wms_abstract # defined by user ows_sld_enabled false END END OUTPUTFORMAT NAME png DRIVER GD/PNG MIMETYPE image/png IMAGEMODE RGBA EXTENSION png TRANSPARENT ON END OUTPUTFORMAT NAME jpeg DRIVER GD/JPEG MIMETYPE image/jpeg IMAGEMODE RGB EXTENSION jpg FORMATOPTION QUALITY=80 END LAYER NAME Imagery_1 DATA /home/share1/www/openstream/mapfiles/xml/31_Imagery_lvl1.xml METADATA wms_group_abstract wms_group_title Imagery wms_title Imagery_1 wms_extents -180 -85.05112877980659 180 85.0511287798066 END PROJECTION init=epsg:4326 END MINSCALE 295828775 TYPE RASTER GROUP Imagery_group STATUS ON PROCESSING CLOSE_CONNECTION=DEFER PROCESSING RESAMPLE=BILINEAR END END ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Assefa Yewondwossen Software Analyst Email: yass...@dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] wms version 1.3 bbox problems
You could possibly look into using mapscript wrapper for WxS services (http://mapserver.org/ogc/mapscript.html) and possibly change the version programatically or the order of the bbox. regards, On 05/05/2010 2:29 PM, Travis Kirstine wrote: It appears that the bbox in the reverse order for 1.3, is there a work around? wms.php?cid=27VERSION=1.3.0REQUEST=GetMapLAYERS=Imagery_groupSTYLES=CRS=EPSG:4269BBOX=-180,-90,180,90WIDTH=636HEIGHT=318FORMAT=image/pngTRANSPARENT=TRUEBGCOLOR=0xFFEXCEPTIONS=XML HTTP/1.1 200 166460 - C:\\Program Files\\MapInfo85\\Professional\\MAPINFOW.EXE On 5 May 2010 12:15, Yewondwossen Assefayass...@dmsolutions.ca wrote: Hi, What does the GetMap request looks like, specifically the bbox coordinates and the projection? For wms 1.3.0, bbox coordinates are expected for projections such as espg:4326 to use the inverse axe order (lat/long instead of long/lat)? regards, On 05/05/2010 11:54 AM, Travis Kirstine wrote: Hi, I'm currently running ms 5.4.2 and am having difficulties with wms version 1.3. I am using MapInfo as the client and it seems that it is hard coded wms version 1.3 if available from the service. It seems that there is bbox issue when passing GetMap request to the service. Is there something I have to add to the mapfile to indicate the correct bbox or projection? MAP NAME Montreal Map SIZE 256 256 STATUS OFF UNITS METERS EXTENT -180 -90 180 90 IMAGECOLOR 155 203 231 SHAPEPATH /home/share1/data IMAGETYPE JPEG RESOLUTION 96 PROJECTION init=epsg:4326 END WEB IMAGEPATH /home/share1/data/map_images/ IMAGEURL http:///; METADATA wms_onlineresource http://xx; wms_srs EPSG:32198 EPSG:2138 EPSG:32098 EPSG:4269 EPSG:4326 EPSG:54004 # updated by user wms_title Montreal Map # defined by user wms_abstract # defined by user ows_sld_enabled false END END OUTPUTFORMAT NAME png DRIVER GD/PNG MIMETYPE image/png IMAGEMODE RGBA EXTENSION png TRANSPARENT ON END OUTPUTFORMAT NAME jpeg DRIVER GD/JPEG MIMETYPE image/jpeg IMAGEMODE RGB EXTENSION jpg FORMATOPTION QUALITY=80 END LAYER NAME Imagery_1 DATA /home/share1/www/openstream/mapfiles/xml/31_Imagery_lvl1.xml METADATA wms_group_abstract wms_group_title Imagery wms_title Imagery_1 wms_extents -180 -85.05112877980659 180 85.0511287798066 END PROJECTION init=epsg:4326 END MINSCALE 295828775 TYPE RASTER GROUP Imagery_group STATUS ON PROCESSING CLOSE_CONNECTION=DEFER PROCESSING RESAMPLE=BILINEAR END END ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Assefa Yewondwossen Software Analyst Email: yass...@dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 -- Assefa Yewondwossen Software Analyst Email: yass...@dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Disable WMS 1.3.0-Support in MS 5.6.3
Sorry about that: ticket is http://trac.osgeo.org/mapserver/ticket/3444 regards, On 03/05/2010 2:43 AM, Stephan Holl wrote: Hello Yewondwossen, Yewondwossen Assefayass...@dmsolutions.ca, [20100430 - 13:33:47] I added ticket http://trac.osgeo.org/mapserver/ticket/344. Support will be added for the next release and I will possibly prepare a patch for 5.6.x branch if needed. Wow, that would be great, I would have been added myself to the ticket, but there is something strange with the number. Could you please recheck with that? TIA Stephan On 30/04/2010 4:42 AM, Stephan Holl wrote: Hello Yewondwossen, Yewondwossen Assefayass...@dmsolutions.ca, [20100429 - 07:46:39] Stephan Holl wrote: Hello, ist it possible to disable the support for WMS 1.3.0 with a configuration switch right now? It could be handy for some of my usecases. Hi Stephan, Not that I know of. It would be possible to add as enhancement a way to set/read in the map file the default wms version in case the request url does not have a version set. Right now it defaults to the latest supported version (1.3.0). Yes, it would be nice to have a Metadata-statement in the WEB-block to set it globally. -- Assefa Yewondwossen Software Analyst Email: yass...@dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Disable WMS 1.3.0-Support in MS 5.6.3
I added ticket http://trac.osgeo.org/mapserver/ticket/344. Support will be added for the next release and I will possibly prepare a patch for 5.6.x branch if needed. regards, On 30/04/2010 4:42 AM, Stephan Holl wrote: Hello Yewondwossen, Yewondwossen Assefayass...@dmsolutions.ca, [20100429 - 07:46:39] Stephan Holl wrote: Hello, ist it possible to disable the support for WMS 1.3.0 with a configuration switch right now? It could be handy for some of my usecases. Hi Stephan, Not that I know of. It would be possible to add as enhancement a way to set/read in the map file the default wms version in case the request url does not have a version set. Right now it defaults to the latest supported version (1.3.0). Yes, it would be nice to have a Metadata-statement in the WEB-block to set it globally. Best Stephan -- Assefa Yewondwossen Software Analyst Email: yass...@dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Strange Behaviour with getFeature using POSTmethod and more than one typename
David, Assefa, Thanks for your response. I had that configured in the waye you told me this is what I get: [Fri Apr 09 11:24:45 2010].725000 CGI Request 1 on process 1948 [Fri Apr 09 11:24:46 2010].37000 mapserv request processing time (msLoadMap not incl.): 0.312s [Fri Apr 09 11:24:46 2010].37000 msFreeMap(): freeing map at 015D60B8. You should be able to check then the query sent to the oracle db and that might give your more hints. Where I can view the query sent to Oracle?? Thanks. I forgot to mention that you also need to have the debug statement in your layer for layer specific debug output in oracle. Layer DEBUG 5 ... END I am not sure what version of MapServer your are using, but you should if not already (and possiible) upgrade to 5.6.3 or the trunk version from svn. Both have a lot more debugging information for the oracle spatial. -Mensaje original- De: Yewondwossen Assefa [mailto:yass...@dmsolutions.ca] Enviado el: viernes, 09 de abril de 2010 14:19 Para: David Alda Fernandez de Lezea CC: mapserver-users@lists.osgeo.org Asunto: Re: [mapserver-users] Strange Behaviour with getFeature using POST method and more than one typename David, You could possibly get more hints if you put you map in debug mode and see the logs. You can add something like this in your map: CONFIG MS_ERRORFILE f:/tmp/ms_error.log DEBUG 5 You should be able to check then the query sent to the oracle db and that might give your more hints. regards, David Alda Fernandez de Lezea wrote: Hi list, I'm having a strange behaviour when receiving data from getFeature request. I prepare a request that is intended to mark some parcels from two different layers (these layers are stored in Oracle Spatial). The request looks like: ?xml version=1.0 ? wfs:GetFeature service=WFS version=1.1.0 outputFormat=text/xml; subtype=gml/3.1.1 xmlns:wfs=http://www.opengis.net/wfs; xmlns:ogc=http://www.opengis.net/ogc; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://www.opengis.net/wfs ../wfs/1.1.0/WFS.xsd wfs:Query typeName=RecintosSigpac ogc:Filter ogc:Or ogc:And PropertyIsEqualToPropertyNamePROVINCIA/PropertyNameLiteral1/L iteral/PropertyIsEqualTo PropertyIsEqualToPropertyNameMUNICIPIO/PropertyNameLiteral1/L iteral/PropertyIsEqualTo PropertyIsEqualToPropertyNamePOLIGONO/PropertyNameLiteral1/Li teral/PropertyIsEqualTo PropertyIsEqualToPropertyNamePARCELA/PropertyNameLiteral1/Lit eral/PropertyIsEqualTo PropertyIsEqualToPropertyNameRECINTO/PropertyNameLiteral1/Lit eral/PropertyIsEqualTo /ogc:And ogc:And PropertyIsEqualToPropertyNamePROVINCIA/PropertyNameLiteral1/L iteral/PropertyIsEqualTo PropertyIsEqualToPropertyNameMUNICIPIO/PropertyNameLiteral1/L iteral/PropertyIsEqualTo PropertyIsEqualToPropertyNamePOLIGONO/PropertyNameLiteral1/Li teral/PropertyIsEqualTo PropertyIsEqualToPropertyNamePARCELA/PropertyNameLiteral20/Li teral/PropertyIsEqualTo PropertyIsEqualToPropertyNameRECINTO/PropertyNameLiteral1/Lit eral/PropertyIsEqualTo /ogc:And ogc:And PropertyIsEqualToPropertyNamePROVINCIA/PropertyNameLiteral1/L iteral/PropertyIsEqualTo PropertyIsEqualToPropertyNameMUNICIPIO/PropertyNameLiteral1/L iteral/PropertyIsEqualTo PropertyIsEqualToPropertyNamePOLIGONO/PropertyNameLiteral1/Li teral/PropertyIsEqualTo PropertyIsEqualToPropertyNamePARCELA/PropertyNameLiteral24/Li teral/PropertyIsEqualTo PropertyIsEqualToPropertyNameRECINTO/PropertyNameLiteral1/Lit eral/PropertyIsEqualTo /ogc:And /ogc:Or /ogc:Filter /wfs:Query wfs:Query typeName=ParcelasSigpac ogc:Filter ogc:Or ogc:And PropertyIsEqualToPropertyNamePROVINCIA/PropertyNameLiteral1/L iteral/PropertyIsEqualTo PropertyIsEqualToPropertyNameMUNICIPIO/PropertyNameLiteral1/L iteral/PropertyIsEqualTo PropertyIsEqualToPropertyNamePOLIGONO/PropertyNameLiteral1/Li teral/PropertyIsEqualTo PropertyIsEqualToPropertyNamePARCELA/PropertyNameLiteral29/Li teral/PropertyIsEqualTo /ogc:And ogc:And PropertyIsEqualToPropertyNamePROVINCIA/PropertyNameLiteral1/L iteral/PropertyIsEqualTo PropertyIsEqualToPropertyNameMUNICIPIO/PropertyNameLiteral1/L iteral/PropertyIsEqualTo PropertyIsEqualToPropertyNamePOLIGONO/PropertyNameLiteral1/Li teral/PropertyIsEqualTo PropertyIsEqualToPropertyNamePARCELA/PropertyNameLiteral5/Lit eral/PropertyIsEqualTo /ogc:And /ogc:Or /ogc:Filter /wfs:Query /wfs:GetFeature All the features that I want to mark using these filters are unique rows in Oracle Spatial. Using my Ajax app I get the following response: ?xml version='1.0' encoding=ISO-8859-1 ? wfs:FeatureCollection xmlns:ms=http://mapserver.gis.umn.edu/mapserver; xmlns:gml=http://www.opengis.net/gml; xmlns:wfs=http://www.opengis.net/wfs; xmlns:ogc=http://www.opengis.net/ogc; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://mapserver.gis.umn.edu/mapserver http://192.168.1.65/cgi-bin/mapserv.exe?map=../htdocs/MFD/ejemplo_wfs.mapamp;SERVICE=WFSamp;VERSION=1.1.0amp;REQUEST=DescribeFeatureTypeamp;TYPENAME
Re: [mapserver-users] Strange Behaviour with getFeature using POSTmethod and more than one typename
509540.353888 4726042.641390 509551.154943 4726068.019906 509557.839801 4726090.479430 509561.384907 4726109.081215 509564.069424 4726124.312406 509564.459679 4726140.061664 509563.434889 4726161.123694 509563.562161 4726183.322863 509562.440193 4726210.118337 509562.503494 4726238.860770 509562.431992 4726260.799050 509564.975677 4726278.515222 509568.175738 4726293.300360 509574.010192 4726314.790726 509582.411063 4726337.494658 509588.746614 4726354.089853 509590.306503 4726373.079837 509588.785093 4726395.714195 509589.159036 4726428.142939 509586.513898 4726468.897948 509580.573918 4726498.972400 509573.997242 4726532.685311 509573.068354 4726558.894677 509575.920317 4726586.952209 509572.188843 4726628.850585 509577.842121 472.927146 509582.722965 4726692.539553 509584.190067 4726728.907009 509594.120718 4726772.043630 509603.691208 4726797.541556 509614.372955 4726828.700161 509624.999798 4726854.832516 509636.123603 4726879.038872 509645.984773 4726902.666407 509654.924986 4726936.735984 509633.800419 4726939.982883 509615.464111 4726942.786946 509610.608762 4726943.534132 509591.104806 4726946.653103 509545.242065 4726954.743305 509500.390426 4726961.606574 509497.354986 4726962.077105 509435.379554 4726973.962128 509417.054136 4726978.981980 509410.081899 4726981.345977 509377.700548 4726992.331730 509329.754895 4727007.792288 509320.449810 4727009.017684 509313.575740 4727009.911284 509290.453359 4727023.534700 509246.101320 4727047.554498 509207.617401 4727068.343281 509164.381481 4727089.898530 509126.277006 4727109.673721 509090.098268 4727132.337059 509067.768835 4727149.275826 509058.801415 4727160.228632 509043.970678 4727181.626407 509041.508058 4727185.188064 509023.025734 4727211.151228 509012.704374 4727218.006912 508979.662832 4727236.458496 508957.605756 4727250.317101 508956.849909 4727250.790819 508945.237337 4727258.091705 508943.616432 4727258.545691 508937.242692 4727260.343164 508930.999465 4727262.094273 508920.106433 4727265.161095 508877.586291 4727276.312974 508840.171674 4727284.213916 508836.024080 4727284.75 508803.990153 4727288.933371 508767.495442 4727291.614218 508746.759555 4727292.732835 508712.381656 4727293.722635 508668.513405 4727296.264416 508636.606992 4727297.415920 508604.852191 4727298.120986 508564.557869 4727297.680078 508531.128179 4727298.113485 508492.603378 4727299.164420 508458.641561 4727302.445701 508425.942066 4727306.547768 508385.948362 4727313.023936 508370.140478 4727315.545819 /gml:posList /gml:LinearRing /gml:exterior /gml:Polygon /ms:msGeometry /ms:PoligonosSigpac /gml:featureMember /wfs:FeatureCollection -Mensaje original- De: Yewondwossen Assefa [mailto:yass...@dmsolutions.ca] Enviado el: martes, 13 de abril de 2010 13:09 Para: David Alda Fernandez de Lezea CC: mapserver-users@lists.osgeo.org Asunto: Re: [mapserver-users] Strange Behaviour with getFeature using POSTmethod and more than one typename David, Assefa, Thanks for your response. I had that configured in the waye you told me this is what I get: [Fri Apr 09 11:24:45 2010].725000 CGI Request 1 on process 1948 [Fri Apr 09 11:24:46 2010].37000 mapserv request processing time (msLoadMap not incl.): 0.312s [Fri Apr 09 11:24:46 2010].37000 msFreeMap(): freeing map at 015D60B8. You should be able to check then the query sent to the oracle db and that might give your more hints. Where I can view the query sent to Oracle?? Thanks. I forgot to mention that you also need to have the debug statement in your layer for layer specific debug output in oracle. Layer DEBUG 5 ... END I am not sure what version of MapServer your are using, but you should if not already (and possiible) upgrade to 5.6.3 or the trunk version from svn. Both have a lot more debugging information for the oracle spatial. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Assefa Yewondwossen Software Analyst Email: yass...@dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Strange Behaviour with getFeature using POST method and more than one typename
David, You could possibly get more hints if you put you map in debug mode and see the logs. You can add something like this in your map: CONFIG MS_ERRORFILE f:/tmp/ms_error.log DEBUG 5 You should be able to check then the query sent to the oracle db and that might give your more hints. regards, David Alda Fernandez de Lezea wrote: Hi list, I'm having a strange behaviour when receiving data from getFeature request. I prepare a request that is intended to mark some parcels from two different layers (these layers are stored in Oracle Spatial). The request looks like: ?xml version=1.0 ? wfs:GetFeature service=WFS version=1.1.0 outputFormat=text/xml; subtype=gml/3.1.1 xmlns:wfs=http://www.opengis.net/wfs; xmlns:ogc=http://www.opengis.net/ogc; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://www.opengis.net/wfs ../wfs/1.1.0/WFS.xsd wfs:Query typeName=RecintosSigpac ogc:Filter ogc:Or ogc:And PropertyIsEqualToPropertyNamePROVINCIA/PropertyNameLiteral1/Literal/PropertyIsEqualTo PropertyIsEqualToPropertyNameMUNICIPIO/PropertyNameLiteral1/Literal/PropertyIsEqualTo PropertyIsEqualToPropertyNamePOLIGONO/PropertyNameLiteral1/Literal/PropertyIsEqualTo PropertyIsEqualToPropertyNamePARCELA/PropertyNameLiteral1/Literal/PropertyIsEqualTo PropertyIsEqualToPropertyNameRECINTO/PropertyNameLiteral1/Literal/PropertyIsEqualTo /ogc:And ogc:And PropertyIsEqualToPropertyNamePROVINCIA/PropertyNameLiteral1/Literal/PropertyIsEqualTo PropertyIsEqualToPropertyNameMUNICIPIO/PropertyNameLiteral1/Literal/PropertyIsEqualTo PropertyIsEqualToPropertyNamePOLIGONO/PropertyNameLiteral1/Literal/PropertyIsEqualTo PropertyIsEqualToPropertyNamePARCELA/PropertyNameLiteral20/Literal/PropertyIsEqualTo PropertyIsEqualToPropertyNameRECINTO/PropertyNameLiteral1/Literal/PropertyIsEqualTo /ogc:And ogc:And PropertyIsEqualToPropertyNamePROVINCIA/PropertyNameLiteral1/Literal/PropertyIsEqualTo PropertyIsEqualToPropertyNameMUNICIPIO/PropertyNameLiteral1/Literal/PropertyIsEqualTo PropertyIsEqualToPropertyNamePOLIGONO/PropertyNameLiteral1/Literal/PropertyIsEqualTo PropertyIsEqualToPropertyNamePARCELA/PropertyNameLiteral24/Literal/PropertyIsEqualTo PropertyIsEqualToPropertyNameRECINTO/PropertyNameLiteral1/Literal/PropertyIsEqualTo /ogc:And /ogc:Or /ogc:Filter /wfs:Query wfs:Query typeName=ParcelasSigpac ogc:Filter ogc:Or ogc:And PropertyIsEqualToPropertyNamePROVINCIA/PropertyNameLiteral1/Literal/PropertyIsEqualTo PropertyIsEqualToPropertyNameMUNICIPIO/PropertyNameLiteral1/Literal/PropertyIsEqualTo PropertyIsEqualToPropertyNamePOLIGONO/PropertyNameLiteral1/Literal/PropertyIsEqualTo PropertyIsEqualToPropertyNamePARCELA/PropertyNameLiteral29/Literal/PropertyIsEqualTo /ogc:And ogc:And PropertyIsEqualToPropertyNamePROVINCIA/PropertyNameLiteral1/Literal/PropertyIsEqualTo PropertyIsEqualToPropertyNameMUNICIPIO/PropertyNameLiteral1/Literal/PropertyIsEqualTo PropertyIsEqualToPropertyNamePOLIGONO/PropertyNameLiteral1/Literal/PropertyIsEqualTo PropertyIsEqualToPropertyNamePARCELA/PropertyNameLiteral5/Literal/PropertyIsEqualTo /ogc:And /ogc:Or /ogc:Filter /wfs:Query /wfs:GetFeature All the features that I want to mark using these filters are unique rows in Oracle Spatial. Using my Ajax app I get the following response: ?xml version='1.0' encoding=ISO-8859-1 ? wfs:FeatureCollection xmlns:ms=http://mapserver.gis.umn.edu/mapserver; xmlns:gml=http://www.opengis.net/gml; xmlns:wfs=http://www.opengis.net/wfs; xmlns:ogc=http://www.opengis.net/ogc; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://mapserver.gis.umn.edu/mapserver http://192.168.1.65/cgi-bin/mapserv.exe?map=../htdocs/MFD/ejemplo_wfs.mapamp;SERVICE=WFSamp;VERSION=1.1.0amp;REQUEST=DescribeFeatureTypeamp;TYPENAME=RecintosSigpac,ParcelasSigpacamp;OUTPUTFORMAT=text/xml; subtype=gml/3.1.1 http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd; gml:boundedBy gml:Envelope srsName=EPSG:23030 gml:lowerCorner538881.736860 4744342.676060/gml:lowerCorner gml:upperCorner539514.702532 4744971.618431/gml:upperCorner /gml:Envelope /gml:boundedBy gml:featureMember ms:RecintosSigpac gml:id=RecintosSigpac.752 gml:boundedBy gml:Envelope srsName=EPSG:23030 gml:lowerCorner539098.554563 4744632.941135/gml:lowerCorner gml:upperCorner539191.352464 4744726.952445/gml:upperCorner /gml:Envelope /gml:boundedBy ms:msGeometry gml:Polygon srsName=EPSG:23030 gml:exterior gml:LinearRing gml:posList srsDimension=2539146.378383 4744724.433931 539145.235158 4744724.343655 539141.209291 4744724.134593 539098.862296 4744721.948469 539098.790865 4744711.615815 539098.554563 4744677.257422 539100.133554 4744665.742677 539101.989421 4744645.274892 539102.338824 4744636.815604 539147.216698 4744634.836696 539183.793353
Re: [mapserver-users] WFS multiple typenames in request, only one in reply
Hi There, wfs post request should look like this: ?xml version=1.0 ? wfs:GetFeature service=WFS version=1.1.0 outputFormat=text/xml; subtype=gml/3.1.1 xmlns:wfs=http://www.opengis.net/wfs; xmlns:ogc=http://www.opengis.net/ogc; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://www.opengis.net/wfs ../wfs/1.1.0/WFS.xsd wfs:Query typeName=my_name ogc:Filter ... /ogc:Filter /wfs:Query wfs:Query typeName=my_layer2 ogc:Filter /ogc:Filter /wfs:Query /wfs:GetFeature You can check the xsds for more details at http://schemas.opengis.net/wfs/ regards, Attila BERÉNYI wrote: Hi, Thank you for your response, I'm able to request data from both layers (typenames) this way, however I'd like to achieve this in OpenLayers. So I've created a small demo application which uses XMLHttp to request data from Mapserver. http://webgis.fmt.bme.hu/gfi/xml.html The requests are hard coded, please take a look at the source. How could I achieve the below described functionality with XML request(s)? Thanks in advance, BR, Attila 2010.04.06. 15:42 keltezéssel, Yewondwossen Assefa írta: The following URL on your server gives the output for the 2 typenames I believe: http://webgis.fmt.bme.hu/cgi-bin/mvmNew?SERVICE=WFSVERSION=1.1.0REQUEST=GetFeatureTYPENAME=elteresek,elteresek2Filter=%28%3Cogc:Filter%20xmlns:ogc=%22http://www.opengis.net/ogc%22%3E%3Cogc:BBOX%3E%3Cogc:PropertyName%3EmsGeometry%3C/ogc:PropertyName%3E%3Cgml:Envelope%20xmlns:gml=%22http://www.opengis.net/gml%22%20srsName=%22EPSG:23700%22%3E%3Cgml:lowerCorner%3E649971.6696%20236508.4728%3C/gml:lowerCorner%3E%3Cgml:upperCorner%3E651559.1688%20237919.5832%3C/gml:upperCorner%3E%3C/gml:Envelope%3E%3C/ogc:BBOX%3E%3C/ogc:Filter%3E%29%28%3Cogc:Filter%20xmlns:ogc=%22http://www.opengis.net/ogc%22%3E%3Cogc:BBOX%3E%3Cogc:PropertyName%3EmsGeometry%3C/ogc:PropertyName%3E%3Cgml:Envelope%20xmlns:gml=%22http://www.opengis.net/gml%22%20srsName=%22EPSG:23700%22%3E%3Cgml:lowerCorner%3E649971.6696%20236508.4728%3C/gml:lowerCorner%3E%3Cgml:upperCorner%3E651559.1688%20237919.5832%3C/gml:upperCorner%3E%3C/gml:Envelope%3E%3C/ogc:BBOX%3E%3C/ogc:Filter%3E%29 Attila BERÉNYI wrote: Thank you guys, I've tried with comma and brackets as well, no success so far :( 2010.04.06. 14:46 keltezéssel, Yewondwossen Assefa írta: bart...@osgis.nl wrote: Hi, you need to repeat your filter (comma-separated) IIRC. I believe it should be brackets instead of comma: something like ...FILTER=(Filter.../Filter)(Filter.../Filter) Best regards, Bart Dear All, I've two layers (elteresek and elteresek2), and I'd like to get features from both of them using WFS GetFeature request. If I apply one typename at a time, it works correct, but if I include two typenames in the request only the first is processed and included in the response. This works correct (note TYPENAME=elteresek): http://webgis.fmt.bme.hu/cgi-bin/mvmNew?SERVICE=WFSVERSION=1.1.0REQUEST=GetFeatureTYPENAME=elteresekFilter=ogc:Filter xmlns:ogc=http://www.opengis.net/ogc;ogc:BBOXogc:PropertyNamemsGeometry/ogc:PropertyNamegml:Envelope xmlns:gml=http://www.opengis.net/gml; srsName=EPSG:23700gml:lowerCorner649971.6696 236508.4728/gml:lowerCornergml:upperCorner651559.1688 237919.5832/gml:upperCorner/gml:Envelope/ogc:BBOX/ogc:Filter This works correct (note TYPENAME=elteresek2) as well: http://webgis.fmt.bme.hu/cgi-bin/mvmNew?SERVICE=WFSVERSION=1.1.0REQUEST=GetFeatureTYPENAME=elteresek2Filter=ogc:Filter xmlns:ogc=http://www.opengis.net/ogc;ogc:BBOXogc:PropertyNamemsGeometry/ogc:PropertyNamegml:Envelope xmlns:gml=http://www.opengis.net/gml; srsName=EPSG:23700gml:lowerCorner649971.6696 236508.4728/gml:lowerCornergml:upperCorner651559.1688 237919.5832/gml:upperCorner/gml:Envelope/ogc:BBOX/ogc:Filter But the reply for this link includes only the first typename (in this case elteresek): http://webgis.fmt.bme.hu/cgi-bin/mvmNew?SERVICE=WFSVERSION=1.1.0REQUEST=GetFeatureTYPENAME=elteresek,elteresek2Filter=ogc:Filter xmlns:ogc=http://www.opengis.net/ogc;ogc:BBOXogc:PropertyNamemsGeometry/ogc:PropertyNamegml:Envelope xmlns:gml=http://www.opengis.net/gml; srsName=EPSG:23700gml:lowerCorner649971.6696 236508.4728/gml:lowerCornergml:upperCorner651559.1688 237919.5832/gml:upperCorner/gml:Envelope/ogc:BBOX/ogc:Filter What am I doing wrong? Thanks, Attila ___ 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 -- Assefa Yewondwossen Software Analyst Email: yass...@dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925
Re: [mapserver-users] Re: wfs getcapabilities doesn't use namespace in featuretype's name?
Hi There, It will be added for the next release (http://trac.osgeo.org/mapserver/ticket/3428) regards, gsamp wrote: I'm getting the same problem: featuretypes name without namespace in the getcapabilities response! It is missing some configuration in the mapfile? Any clarification is appreciated. -- Assefa Yewondwossen Software Analyst Email: yass...@dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] WFS multiple typenames in request, only one in reply
bart...@osgis.nl wrote: Hi, you need to repeat your filter (comma-separated) IIRC. I believe it should be brackets instead of comma: something like ...FILTER=(Filter.../Filter)(Filter.../Filter) Best regards, Bart Dear All, I've two layers (elteresek and elteresek2), and I'd like to get features from both of them using WFS GetFeature request. If I apply one typename at a time, it works correct, but if I include two typenames in the request only the first is processed and included in the response. This works correct (note TYPENAME=elteresek): http://webgis.fmt.bme.hu/cgi-bin/mvmNew?SERVICE=WFSVERSION=1.1.0REQUEST=GetFeatureTYPENAME=elteresekFilter=ogc:Filter xmlns:ogc=http://www.opengis.net/ogc;ogc:BBOXogc:PropertyNamemsGeometry/ogc:PropertyNamegml:Envelope xmlns:gml=http://www.opengis.net/gml; srsName=EPSG:23700gml:lowerCorner649971.6696 236508.4728/gml:lowerCornergml:upperCorner651559.1688 237919.5832/gml:upperCorner/gml:Envelope/ogc:BBOX/ogc:Filter This works correct (note TYPENAME=elteresek2) as well: http://webgis.fmt.bme.hu/cgi-bin/mvmNew?SERVICE=WFSVERSION=1.1.0REQUEST=GetFeatureTYPENAME=elteresek2Filter=ogc:Filter xmlns:ogc=http://www.opengis.net/ogc;ogc:BBOXogc:PropertyNamemsGeometry/ogc:PropertyNamegml:Envelope xmlns:gml=http://www.opengis.net/gml; srsName=EPSG:23700gml:lowerCorner649971.6696 236508.4728/gml:lowerCornergml:upperCorner651559.1688 237919.5832/gml:upperCorner/gml:Envelope/ogc:BBOX/ogc:Filter But the reply for this link includes only the first typename (in this case elteresek): http://webgis.fmt.bme.hu/cgi-bin/mvmNew?SERVICE=WFSVERSION=1.1.0REQUEST=GetFeatureTYPENAME=elteresek,elteresek2Filter=ogc:Filter xmlns:ogc=http://www.opengis.net/ogc;ogc:BBOXogc:PropertyNamemsGeometry/ogc:PropertyNamegml:Envelope xmlns:gml=http://www.opengis.net/gml; srsName=EPSG:23700gml:lowerCorner649971.6696 236508.4728/gml:lowerCornergml:upperCorner651559.1688 237919.5832/gml:upperCorner/gml:Envelope/ogc:BBOX/ogc:Filter What am I doing wrong? Thanks, Attila ___ 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 -- Assefa Yewondwossen Software Analyst Email: yass...@dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] WFS multiple typenames in request, only one in reply
The following URL on your server gives the output for the 2 typenames I believe: http://webgis.fmt.bme.hu/cgi-bin/mvmNew?SERVICE=WFSVERSION=1.1.0REQUEST=GetFeatureTYPENAME=elteresek,elteresek2Filter=%28%3Cogc:Filter%20xmlns:ogc=%22http://www.opengis.net/ogc%22%3E%3Cogc:BBOX%3E%3Cogc:PropertyName%3EmsGeometry%3C/ogc:PropertyName%3E%3Cgml:Envelope%20xmlns:gml=%22http://www.opengis.net/gml%22%20srsName=%22EPSG:23700%22%3E%3Cgml:lowerCorner%3E649971.6696%20236508.4728%3C/gml:lowerCorner%3E%3Cgml:upperCorner%3E651559.1688%20237919.5832%3C/gml:upperCorner%3E%3C/gml:Envelope%3E%3C/ogc:BBOX%3E%3C/ogc:Filter%3E%29%28%3Cogc:Filter%20xmlns:ogc=%22http://www.opengis.net/ogc%22%3E%3Cogc:BBOX%3E%3Cogc:PropertyName%3EmsGeometry%3C/ogc:PropertyName%3E%3Cgml:Envelope%20xmlns:gml=%22http://www.opengis.net/gml%22%20srsName=%22EPSG:23700%22%3E%3Cgml:lowerCorner%3E649971.6696%20236508.4728%3C/gml:lowerCorner%3E%3Cgml:upperCorner%3E651559.1688%20237919.5832%3C/gml:upperCorner%3E%3C/gml:Envelope%3E%3C/ogc:BBOX%3E%3C/ogc:Filter%3E%29 Attila BERÉNYI wrote: Thank you guys, I've tried with comma and brackets as well, no success so far :( 2010.04.06. 14:46 keltezéssel, Yewondwossen Assefa írta: bart...@osgis.nl wrote: Hi, you need to repeat your filter (comma-separated) IIRC. I believe it should be brackets instead of comma: something like ...FILTER=(Filter.../Filter)(Filter.../Filter) Best regards, Bart Dear All, I've two layers (elteresek and elteresek2), and I'd like to get features from both of them using WFS GetFeature request. If I apply one typename at a time, it works correct, but if I include two typenames in the request only the first is processed and included in the response. This works correct (note TYPENAME=elteresek): http://webgis.fmt.bme.hu/cgi-bin/mvmNew?SERVICE=WFSVERSION=1.1.0REQUEST=GetFeatureTYPENAME=elteresekFilter=ogc:Filter xmlns:ogc=http://www.opengis.net/ogc;ogc:BBOXogc:PropertyNamemsGeometry/ogc:PropertyNamegml:Envelope xmlns:gml=http://www.opengis.net/gml; srsName=EPSG:23700gml:lowerCorner649971.6696 236508.4728/gml:lowerCornergml:upperCorner651559.1688 237919.5832/gml:upperCorner/gml:Envelope/ogc:BBOX/ogc:Filter This works correct (note TYPENAME=elteresek2) as well: http://webgis.fmt.bme.hu/cgi-bin/mvmNew?SERVICE=WFSVERSION=1.1.0REQUEST=GetFeatureTYPENAME=elteresek2Filter=ogc:Filter xmlns:ogc=http://www.opengis.net/ogc;ogc:BBOXogc:PropertyNamemsGeometry/ogc:PropertyNamegml:Envelope xmlns:gml=http://www.opengis.net/gml; srsName=EPSG:23700gml:lowerCorner649971.6696 236508.4728/gml:lowerCornergml:upperCorner651559.1688 237919.5832/gml:upperCorner/gml:Envelope/ogc:BBOX/ogc:Filter But the reply for this link includes only the first typename (in this case elteresek): http://webgis.fmt.bme.hu/cgi-bin/mvmNew?SERVICE=WFSVERSION=1.1.0REQUEST=GetFeatureTYPENAME=elteresek,elteresek2Filter=ogc:Filter xmlns:ogc=http://www.opengis.net/ogc;ogc:BBOXogc:PropertyNamemsGeometry/ogc:PropertyNamegml:Envelope xmlns:gml=http://www.opengis.net/gml; srsName=EPSG:23700gml:lowerCorner649971.6696 236508.4728/gml:lowerCornergml:upperCorner651559.1688 237919.5832/gml:upperCorner/gml:Envelope/ogc:BBOX/ogc:Filter What am I doing wrong? Thanks, Attila ___ 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 -- Assefa Yewondwossen Software Analyst Email: yass...@dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] How to filter ArcGIS WFS service?
Hi There, It should be now fixed. Bug related to it is http://trac.osgeo.org/mapserver/ticket/3414. regards, Miloslav Kmeť wrote: Hello. I need to find a solution how to filter ArcGIS wfs service in mapserver WFS client. I read this document: http://mapserver.org/ogc/filter_encoding.html and there is no topic about xml ns prefixes in filter. It seems, that esri's wfs services need xml namespace ogc: in every filter element. I tried id with get from browser and this works as expected: ogc:Filterogc:PropertyIsEqualToogc:PropertyNameeia_eia:IDAKCIA/ogc:PropertyNameogc:Literal1833/ogc:Literal/ogc:PropertyIsEqualTo/ogc:Filter ?service=wfsversion=1.1.0request=getFeaturetypename=eia_eia:EIA_Localityfilter=%3Cogc:Filter%3E%3Cogc:PropertyIsEqualTo%3E%3Cogc:PropertyName%3Eeia_eia:IDAKCIA%3C/ogc:PropertyName%3E%3Cogc:Literal%3E1833%3C/ogc:Literal%3E%3C/ogc:PropertyIsEqualTo%3E%3C/ogc:Filter%3E (tinyurlized: http://tinyurl.com/yanqfry) But this won't filter anything and gives me all features: FilterPropertyIsEqualToPropertyNameeia_eia:IDAKCIA/PropertyNameLiteral1833/Literal/PropertyIsEqualTo/Filter ?service=wfsversion=1.1.0request=getFeaturetypename=eia_eia:EIA_Localityfilter=%3CFilter%3E%3CPropertyIsEqualTo%3E%3CPropertyName%3Eeia_eia:IDAKCIA%3C/PropertyName%3E%3CLiteral%3E1833%3C/Literal%3E%3C/PropertyIsEqualTo%3E%3C/Filter%3E (tinyurlized: http://tinyurl.com/y9t3rld) I doubt, that I can get some response from Esri on this topic, because of this thread: http://forums.esri.com/Thread.asp?c=158f=2276t=273488 where folks So the question is - how to add the ogc: namespace prefix into wfs_filter? This is how I have configured the WFS in my mapfile: CONNECTIONTYPE WFS CONNECTION http://globus.sazp.sk/arcgis/services/eia/eia/mapserver/wfsserver; METADATA wfs_version 1.0.0 wfs_service WFS wfs_request_method GET wfs_srs EPSG:4326 wfs_typename eia_eia:EIA_locality wfs_filter PropertyIsEqualToPropertyNameeia_eia:IDAKCIA/PropertyNameLiteral1833/Literal/PropertyIsEqualTo wfs_maxfeatures 1000 END Thank you. -- Assefa Yewondwossen Software Analyst Email: yass...@dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] GetLegendGraphics with GROUP layer
Yves Jacolin wrote: Hello, One more question about WMS services and MapServer. Is it possible de get a GetLegendGraphics with a GROUPed layer? If I used directly the layer NAMe parameter, I get my picture, if I use the GROUP parameter, I get no response (empty picture). It does not. Will add it for the next release (http://trac.osgeo.org/mapserver/ticket/3410) regards, Thanks, Y. -- Yves Jacolin Responsable Formation et Support Camptocamp France SAS Savoie Technolac, BP 352 73377 Le Bourget du Lac, Cedex Tel : 00 33 4 79 26 57 98 Fax : 04 79 70 15 81 Mail : yves.jaco...@camptocamp.com http://www.camptocamp.com ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Assefa Yewondwossen Software Analyst Email: yass...@dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] WMS GetFeatureInfo on a WFS layer
Hi Yves, Couple of things: First of all, you you should be able to do a GetFeatureInfo request on this WFS layer. There is a bug with latest versions of MapServer I believe trink and possibly 5.6 (I only test trunk). The bug is described at http://trac.osgeo.org/mapserver/ticket/3403, and It should now be fixed in svn. If you are builiding aginst trunk, please give it a try. Other notes on - I usually have a ows_latlonboundingbox set on the wfs layer - I usually add RADIUS=2 when doing a GetFeatureInfo request. hope it helps. best regards, Yves Jacolin wrote: Hi Arnd, Thanks for your answer We will try an other way. The 2nd given url is really a WFS server, I successfully send a GetFeature request with filter parameter. :) Thanks again, Y. 2010/3/24 Arnd Wippermann arnd.wipperm...@web.de mailto:arnd.wipperm...@web.de Hi, as I know, you cann't request a WMS or WFS through a connection in your mapfile (results to Search return no result). Only with own data added as shapefile and so on, you can get a result for GetfeatureInfo requests. Wether mapinfo via ogr cann't request, i have no clue. But I would think, it should be possible. I have checked, that the url is a valid wfs server, also it seems, that it points to a wms server. Arnd *Von:* mapserver-users-boun...@lists.osgeo.org mailto:mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org mailto:mapserver-users-boun...@lists.osgeo.org] *Im Auftrag von *Yves Jacolin *Gesendet:* Mittwoch, 24. März 2010 10:24 *An:* mapserver-users *Betreff:* [mapserver-users] WMS GetFeatureInfo on a WFS layer Hi, I added a WFS layer in my mapfile and I am using MapServer as a WMS server. I would like to send a GetFeatureInfo request on this WFS layer but I always get a Search return no result as answer. Is it possible to request such layer? I get same problem with an OGR connection (mapInfo file). Does the problem could occur only with a polyline feature if we click always too far of the feature? Or the problem occur from the WFS service? The WFS service I want to request in my WMS service is http://carto.ecologie.gouv.fr/MEDD/wms.php?service_idx=17Wmap=sacarte.map http://carto.ecologie.gouv.fr/MEDD/wms.php?service_idx=17Wmap=sacarte.map Thanks in advance for your help, Y. -- Yves Jacolin Responsable Formation et Support Camptocamp France SAS Savoie Technolac, BP 352 73377 Le Bourget du Lac Cedex Tel : + 33 (0)4 79 26 57 97 http://www.camptocamp.com yves.jaco...@camptocamp.com mailto:yves.jaco...@camptocamp.com -- Yves Jacolin Responsable Formation et Support Camptocamp France SAS Savoie Technolac, BP 352 73377 Le Bourget du Lac Cedex Tel : + 33 (0)4 79 26 57 97 http://www.camptocamp.com yves.jaco...@camptocamp.com mailto:yves.jaco...@camptocamp.com ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Assefa Yewondwossen Software Analyst Email: yass...@dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] compiling error current trunk and --with-wfs
I am looking into this. Bug related to this is http://trac.osgeo.org/mapserver/ticket/3282 Lars Lingner wrote: Hello, with current trunk (r9997) I'm getting ./libmapserver.a(mapwfs.o): In function `msWFSGetCapabilities': mapwfs.c:(.text+0x57cd): undefined reference to `msOWSCommonNegotiateVersion' ./configure --with-ogr --with-proj --with-gdal --with-wfs Its compiling successfull when using ./configure --with-ogr --with-proj --with-gdal With 5.6.3. I couldn't reproduce the problem. I'm using a debian system. Can someone confirm this problem? Should I file a ticket? Lars ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Assefa Yewondwossen Software Analyst Email: ass...@dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] keyimage / getlegendgraphic
Jörg, bug related to this is http://trac.osgeo.org/mapserver/ticket/3398. It should be fixed in trunk regards, Jörg Thomsen wrote: huhu, does really nobody have an idea how to solve this? :( since an update from mapserver 4.x to 5.6 we have a problem with the keyimage of rasterlayers. The keyimage is unusually large, but with the old version it worked. the original imagine is 451*1949 px the keysize in the mapfile is given with KEYSIZE 450 1950 The image which is now delivered has a size of 472*1960px, most of this picture is white canvas, the original graphic is very small and placed at the lower left corner. Any suggestions? I found an older post meanwhile, so I am not the only one having this problem: http://lists.osgeo.org/pipermail/mapserver-users/2009-December/063947.html Regards, Jörg ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Assefa Yewondwossen Software Analyst Email: ass...@dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] WMS TIME parameter slow
Sorry to jump late on this. The use of the date_trunc function for postgis layers (described http://mapserver.org/ogc/wms_time.html) was from what I remember to allow queries (on a timestamp field) like time=2001-01-01 expecting to get back all values of the day regardless of the time set. I have entered a bug on it (http://trac.osgeo.org/mapserver/ticket/3382) to be able to review it before the 6.0 release. regards, Paul Ramsey wrote: Sorry, there's not much more I can offer, you've done a great job debugging, but at the end of the day the SQL being generated by the WMS Time module is not great. Make sure to run 'ANALYZE' on your database so the planner has the latest stats. P. On Thu, Mar 11, 2010 at 5:59 AM, Heiko Schröter schro...@iup.physik.uni-bremen.de wrote: Am Donnerstag 11 März 2010 14:35:53 schrieben Sie: Paul, thanks for staying at it. These timings i get with the variation of the theme. The second best is to cast 'datum::timestamp'. But still beeing 32times slower than just a trivial compare on the index as in 1). The slowest run is the brute force 'date_trunc' without cast 3). So to me this is a bit voodo why postgres refuses to scan the indices in proper speed in 2) and 3). The maximum index scan i get with 'date_trunc' is a 'Bitmap Heap Scan' on the index with scenario 2). Of what i have found inside the docs/google is that even when casting 'datum' inside postgres the request, here generated by MS, should or have to be casted as well which is not (at least by now). Heiko 1) The brute force compare: sc_gis=# explain analyze select datum,farbe,encode(AsBinary(force_collection(force_2d(rechteck)),'NDR'),'hex') as geom,datum from o_v20 where rechteck GeomFromText('POLYGON((-134.90506329114 -78.2278481012662,-134.90506329114 78.2278481012663,134.90506329114 78.2278481012663,134.90506329114 -78.2278481012662,-134.90506329114 -78.2278481012662))',-1) and (datum = '2007-12-10' and datum = '2007-12-11'); snipsnap Total runtime: 41.018 ms (32 rows) Now Create Immutable Index on our play table: CREATE INDEX o_v20_y2007_date_trunc ON o_v20_y2007 (date_trunc('day', datum::timestamp without time zone)); 2) sc_gis=# CREATE INDEX o3_v20_y2007_date_trunc ON o3_v20_y2007 (date_trunc('day', datum::timestamp without time zone)); ERROR: relation o3_v20_y2007_date_trunc already exists scia_gis=# explain analyze select datum,farbe,encode(AsBinary(force_collection(force_2d(rechteck)),'NDR'),'hex') as geom,datum from o_v20 where rechteck GeomFromText('POLYGON((-134.90506329114 -78.2278481012662,-134.90506329114 78.2278481012663,134.90506329114 78.2278481012663,134.90506329114 -78.2278481012662,-134.90506329114 -78.2278481012662))',-1) and ((date_trunc('day', datum::timestamp without time zone) = '2007-12-10' AND date_trunc('day', datum::timestamp without time zone) = '2007-12-11')); snipsnap Total runtime: 1250.679 ms (26 rows) 3) sc_gis=# explain analyze select datum,farbe,encode(AsBinary(force_collection(force_2d(rechteck)),'NDR'),'hex') as geom,datum from o_v20 where rechteck GeomFromText('POLYGON((-134.90506329114 -78.2278481012662,-134.90506329114 78.2278481012663,134.90506329114 78.2278481012663,134.90506329114 -78.2278481012662,-134.90506329114 -78.2278481012662))',-1) and ((date_trunc('day', datum) = '2007-12-10' AND date_trunc('day', datum) = '2007-12-11')); snipsnap Total runtime: 2329.380 ms (23 rows) Good job getting this far on your own! Create a SQL wrapper function on top of date_trunc which *is* marked as immutable and you'll be able to build a functional index on it. P. On Thu, Mar 11, 2010 at 1:39 AM, Heiko Schröter schro...@iup.physik.uni-bremen.de wrote: Am Mittwoch 10 März 2010 16:52:28 schrieb Heiko Schröter: Done what has been suggested. The 'date_trunc' function forces sequential scans instead of using the indexed scans. I've tried and failed: sc_gis=# CREATE INDEX o_v20_y2007_date_trunc ON o_v20_y2007 (date_trunc('day', datum at time zone 'GMT')); ERROR: functions in index expression must be marked IMMUTABLE Probably the MS list is not the right place to ask. But may be a kind soul has some pointers to more infos. I admit that db's are not my field of experience and i'am still learning. On the other hand it would be nice to have a hint about the indexing issue inside the MS docs when using the WMS Time extension. Heiko sc_gis=# explain analyze select datum,farbe,encode(AsBinary(force_collection(force_2d(rechteck)),'NDR'),'hex') as geom,datum from o_v20 where rechteck GeomFromText('POLYGON((-134.90506329114 -78.2278481012662,-134.90506329114 78.2278481012663,134.90506329114 78.2278481012663,134.90506329114 -78.2278481012662,-134.90506329114 -78.2278481012662))',-1) and (datum = '2007-12-10' and datum = '2007-12-30'); QUERY PLAN
Re: [mapserver-users] WFS limit time interval to POSTGIS
Heiko Schröter wrote: Hello, by setting up a WFS server i need to limit the time interval for the requests to the postgis db (Millions of data points inside POSTGIS). The WMS part with time interval requests is working and i'am trying to make these data available through WFS as well. What i can find in the docs is a FILTER with a WFS Client connecting a WFS server. But this seems not to apply for DATE interval calculus. The only thing i get in the moment is the whole data set at once or the first NUMBER (here 10) of entries. Is it possible at all to limit the requested time interval to a WFS server ? i.e. something like TIME=2007-1-2/2007-1-3 Hi there, There is no explicit support of a TIME parameter in wfs but I believe It should be possible on a postgis layer to use the FilterEncoding to limit the request: would something like this work for you: Filter=FilterAndPropertyIsGreaterThanPropertyNameyour_time_field/PropertyNameLiteral2007-01-02/Literal/PropertyIsGreaterThanPropertyIsLessThanPropertyNameyour_time_field/PropertyNameLiteral2007-01-03/Literal/PropertyIsLessThan/And/Filter regards, Thanks and Regards Heiko LAYER EXTENT -180 -90 180 90 CONNECTIONTYPE POSTGIS NAME TEST PROCESSING CLOSE_CONNECTION=DEFER OPACITY 60 STATUS ON DUMP TRUE METADATA wfs_title test wfs_maxfeatures 10 gml_featureid ID ## REQUIRED gml_include_items all ## Optional (serves all attributes for layer) gml_geometries rechteck gml_rechteck_type polygon END PROJECTION init=epsg:4326 END CONNECTION user={BF961C25A57BA226} password={C9748CA35D48D049} dbname={6B40E65B12B92106} host=localhost DATA rechteck from test_data using srid=-1 using unique datum TYPE POLYGON SIZEUNITS meters CLASS NAME test_class STYLE OUTLINECOLOR 0 0 0 COLOR [farbe] END END END # Layer ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Assefa Yewondwossen Software Analyst Email: ass...@dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] getmap request with SLD failing after upgrade to 5.6.0
Bart van den Eijnden wrote: Then I fear you have run into (like myself): http://trac.osgeo.org/mapserver/ticket/3289 Assefa can confirm this. Btw the fix was only done in trunk, should it not be done in the 5.6 branch as well? The fix was back ported to the 5.6 branch and should be available for the next 5.6.2 release. best regards, Best regards, Bart On Mar 3, 2010, at 9:41 AM, DeDuikertjes wrote: Bart, I've tried to do so, no difference in either error file or temporary mapfile expressions MArco Bart van den Eijnden schreef: It seems Mapserver does not treat your column as a character column, try using the following METADATA on your source layer (so not in the temporary MAP file): gml_geoidn_type Character Best regards, Bart On Mar 3, 2010, at 8:52 AM, DeDuikertjes wrote: Bart, Thanks for the suggestion. I've opened up the temporary MAP file. A layer definition from this file is (there are a LOT more like that): LAYER CONNECTION host=xxx user=x dbname=xxx CONNECTIONTYPE POSTGIS DATA 'tc_punt_geometry from NL.IMRO.0184.Zeewijkfase4-0201_aggregated using unique oid using srid=28992' DUMP TRUE GROUP query METADATA wms_srs EPSG:28992 EPSG:900913 EPSG:4326 ows_feature_id geoidn ows_group_title query ows_extent 170861.5122 520007.0618 171570.1698 520546.6582 gml_exclude_items tc_multi_geometry,tc_vlak_geometry,tc_lijn_geometry,tc_punt_geometry ows_title query_punt gml_include_items all ows_exclude_items all END NAME query_punt PROCESSING CLOSE_CONNECTION=DEFER PROJECTION init=epsg:28992 END STATUS ON TEMPLATE query.html TYPE POLYGON UNITS METERS CLASS NAME Unknown EXPRESSION ([geoidn] = NL.IMRO.0184.EP127818521-00) STYLE ANGLE 360 COLOR 255 0 255 OPACITY 40 SIZE 2 SYMBOL sld_line_symbol WIDTH 1 END STYLE ANGLE 360 COLOR 255 0 255 OPACITY 40 SYMBOL 0 WIDTH 1 END STYLE ANGLE 360 OPACITY 40 OUTLINECOLOR 255 0 255 SIZE 2 SYMBOL sld_line_symbol WIDTH 1 END END END MArco Bart van den Eijnden schreef: Hi Marco, Mapserver has saved a temporary MAP file, please open it up and check if something is wrong in there, or post the LAYER definition to the mailing list. /var/www/cgi-bin/../html/viewerfabriek-alpha/data/vf_80.101.100.35_check/4b8d40f7e0787/4b8e0df9_52ef_0._sld.map Best regards, Bart On Mar 3, 2010, at 8:30 AM, DeDuikertjes wrote: Thank you, I've did as you said, but can't get a clue on what's going on. The error file shows: [Wed Mar 3 08:21:29 2010].677158 msApplySLD(): Map file after SLD was applied /var/www/cgi-bin/../html/viewerfabriek-alpha/data/vf_80.101.100.35_check/4b8d40f7e0787/4b8e0df9_52ef_0._sld.map[Wed Mar 3 08:21:29 2010].731599 msyyparse(): Expression parser error. syntax error [Wed Mar 3 08:21:29 2010].731628 msEvalExpression: Expression parser error. Failed to parse expression: NL.IMRO.0184.BA127909736-00 = NL.IMRO.0184.EP127818521-00 [Wed Mar 3 08:21:29 2010].731649 msyyparse(): Expression parser error. syntax error And a lot more of these expression errors. Then followed by [Wed Mar 3 08:21:29 2010].745454 msDrawMap(): Layer 0 (query_vlak), 0.029s [Wed Mar 3 08:21:29 2010].747286 msDrawMap(): Layer 1 (query_lijn), 0.002s [Wed Mar 3 08:21:29 2010].749832 msDrawMap(): Layer 2 (query_punt), 0.003s [Wed Mar 3 08:21:29 2010].750760 msDrawMap(): Drawing Label Cache, 0.000s [Wed Mar 3 08:21:29 2010].750771 msDrawMap() total time: 0.046s [Wed Mar 3 08:21:29 2010].999507 msSaveImage() total time: 0.249s [Wed Mar 3 08:21:29 2010].999706 mapserv request processing time (msLoadMap not incl.): 0.336s [Wed Mar 3 08:21:29 2010].999723 msFreeMap(): freeing map at 0x81bf400. What is going wrong? MArco Yewondwossen Assefa schreef: Hi There, One way to debug would be to set your map file in debug, something like this: CONFIG MS_ERRORFILE f:/msapps/gmap-ms40/htdocs/gmap.log DEBUG 5 and check the logs. It should show you the map file after the sld has been applied. That might give a hint on what went wrong. best regards, DeDuikertjes wrote: Hi List, Finally I managed to upgrade mapserver 5.1-dev (FWTools) to 5.6.0 (FGS). I use it as a WMS. Everything looks fine, but I've one anoying problem: When I do a getmap-request with an SLD I get an empty image back, while 5.1-dev gives me a proper result. Other getmap requests work fine. I tested this several times by swapping the old mapserv executable with the new one. an example of a getmap request which fails on 5.6.0 and succeeds in 5.1-dev is: https://85.12.17.114/cgi-bin/mapserv?map=../html/viewerfabriek-alpha/data/vf_80.101.100.35_check/4b8d40f7e0787/NL.IMRO.0184.Zeewijkfase4-0201.mapLAYERS=queryFORMAT=pngSERVICE=WMSVERSION=1.1.1REQUEST=GetMapSTYLES
Re: [mapserver-users] getmap request with SLD failing after upgrade to 5.6.0
Hi There, One way to debug would be to set your map file in debug, something like this: CONFIG MS_ERRORFILE f:/msapps/gmap-ms40/htdocs/gmap.log DEBUG 5 and check the logs. It should show you the map file after the sld has been applied. That might give a hint on what went wrong. best regards, DeDuikertjes wrote: Hi List, Finally I managed to upgrade mapserver 5.1-dev (FWTools) to 5.6.0 (FGS). I use it as a WMS. Everything looks fine, but I've one anoying problem: When I do a getmap-request with an SLD I get an empty image back, while 5.1-dev gives me a proper result. Other getmap requests work fine. I tested this several times by swapping the old mapserv executable with the new one. an example of a getmap request which fails on 5.6.0 and succeeds in 5.1-dev is: https://85.12.17.114/cgi-bin/mapserv?map=../html/viewerfabriek-alpha/data/vf_80.101.100.35_check/4b8d40f7e0787/NL.IMRO.0184.Zeewijkfase4-0201.mapLAYERS=queryFORMAT=pngSERVICE=WMSVERSION=1.1.1REQUEST=GetMapSTYLES=EXCEPTIONS=application%2Fvnd.ogc.se_inimageSLD_BODY=%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22utf-8%22%3F%3E%3Csld%3AStyledLayerDescriptor%20version%3D%221.0.0%22%3E%3Csld%3ANamedLayer%3E%3Csld%3AName%3Equery%3C%2Fsld%3AName%3E%3Csld%3AUserStyle%3E%3Csld%3AName%3Equery%3C%2Fsld%3AName%3E%3Csld%3AFeatureTypeStyle%3E%3Csld%3ARule%3E%3Cogc%3AFilter%3E%3Cogc%3APropertyIsEqualTo%3E%3Cogc%3APropertyName%3Egeoidn%3C%2Fogc%3APropertyName%3E%3Cogc%3ALiteral%3ENL.IMRO.0184.EP127818521-00%3C%2Fogc%3ALiteral%3E%3C%2Fogc%3APropertyIsEqualTo%3E%3C%2Fogc%3AFilter%3E%3Csld%3APolygonSymbolizer%3E%3Csld%3AFill%3E%3Csld%3ACssParameter%20name%3D%22fill%22%3E%23FF00FF%3C%2Fsld%3ACssParameter%3E%3Csld%3ACssParameter%20name%3D%22fill-opacity%22%3E0.4%3C%2Fsld%3ACssParameter%3 E%3C%2Fsld%3AFill%3E%3Csld%3AStroke%3E%3Csld%3ACssParameter%20name%3D%22stroke%22%3E%23FF00FF%3C%2Fsld%3ACssParameter%3E%3Csld%3ACssParameter%20name%3D%22stroke-opacity%22%3E0.4%3C%2Fsld%3ACssParameter%3E%3Csld%3ACssParameter%20name%3D%22stroke-width%22%3E2%3C%2Fsld%3ACssParameter%3E%3C%2Fsld%3AStroke%3E%3C%2Fsld%3APolygonSymbolizer%3E%3Csld%3ALineSymbolizer%3E%3Csld%3AStroke%3E%3Csld%3ACssParameter%20name%3D%22stroke%22%3E%23FF00FF%3C%2Fsld%3ACssParameter%3E%3Csld%3ACssParameter%20name%3D%22stroke-opacity%22%3E0.4%3C%2Fsld%3ACssParameter%3E%3Csld%3ACssParameter%20name%3D%22stroke-width%22%3E2%3C%2Fsld%3ACssParameter%3E%3C%2Fsld%3AStroke%3E%3C%2Fsld%3ALineSymbolizer%3E%3C%2Fsld%3ARule%3E%3C%2Fsld%3AFeatureTypeStyle%3E%3C%2Fsld%3AUserStyle%3E%3C%2Fsld%3ANamedLayer%3E%3C%2Fsld%3AStyledLayerDescriptor%3ESRS=EPSG%3A900913BBOX=625312.21905694,6921632.3781404,627462.0104771,6922637.4056294WIDTH=1800HEIGHT=841 any help greatly appreciated, MArco ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Assefa Yewondwossen Software Analyst Email: ass...@dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] WFS query problem (MS 5.0)
Bart, I think It is this one: http://trac.osgeo.org/mapserver/ticket/2444. Patch is in the bug. best regards, Bart van den Eijnden wrote: Hi James, all data sources are PostGIS. I am sure the WFS request is valid. It only happens if I click somewhere where one of the two layers has no data, if I click somewhere where both layers have data all is fine. Best regards, Bart On Feb 24, 2010, at 10:39 AM, James Perrins wrote: Hi Bart, I imagine you've thought of these (and from your post that you are sure that your WFS request is valid - and that it should be returning data) - but just in case: - Does this happen all the time - or only on some areas / requests ? We have had issues with certain more complex gemometry types - or some geometries that are questionably formed - Where is the data coming from ? We've had issues with data sources that can supply mixed geometry types - or even I think grouped layers where it included perhaps points for one zoom level and polygons for another Sorry - can't help with version numbers - don't keep track of that stuff too carefully Good luck On Wed, Feb 24, 2010 at 8:28 AM, Bart van den Eijnden bart...@osgis.nl wrote: Hi list, I need someone with a good memory on Mapserver history :-) I am running into what I believe is an old bug in Mapserver WFS, unfortunately we are still running an old MS 5.0.0. When doing a WFS query and one of the layers returns an error (like no matching records found), no feature collection is returned but only the error message. Can someone remember this bug, and also if there is a workaround, if no workaround then in what version was this fixed? TIA. ServiceExceptionReport xmlns=http://www.opengis.net/ogc; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://www.opengis.net/ogc http://schemas.opengis.net/wms/1.1.1/OGC-exception.xsd; ServiceException msQueryByRect(): Search returned no results. No matching record(s) found. /ServiceException /ServiceExceptionReport Best regards, Bart ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Dr James Perrins exeGesIS SDM Ltd Great House Barn New Street, Talgarth Powys LD3 0AH. Direct Line: 01646 686650 Tel: 01874 711145 Fax: 01874 711156 Email: jam...@esdm.co.uk This E-mail and any files transmitted with it are private and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient, the E-mail and any files have been transmitted to you in error and any copying, distribution or other use of the information contained in them is strictly prohibited. Nothing in this E-mail message amounts to a contractual or other legal commitment on the part of exeGesIS SDM Ltd unless confirmed by a signed communication. exeGesIS SDM Ltd will make every effort to keep its network free of viruses. However, the recipient of this message will need to scan this message, and any attachments, for viruses, as exeGesIS SDM Ltd can take no responsibility for any computer virus that might be transferred by this e-mail. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Assefa Yewondwossen Software Analyst Email: ass...@dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] OtherSRS is not shown in WFS Capabilities
Hi There, There is a trac bug on this issue (http://trac.osgeo.org/mapserver/ticket/3227) and should be fixed in the next couple of weeks. It would be good if you can add your name to the bug to get an update on it and report any issues. best regards, Mauricio Pazos wrote: Hello everyone, I have configured the WFS to provide many SRS as output like is shown in the example http://www.mapserver.org/ogc/wfs_server.html. This is part of the mapfile MAP NAME WFS STATUS ON SIZE 400 300 EXTENT 53 474 61 482 UNITS METERS IMAGECOLOR 255 255 255 WEB METADATA wfs_title WFS wfs_abstract Web Feature Service Default TEST wfs_onlineresourcehttp://192.168.2.22/cgi-bin/wfs?; wfs_srs EPSG:23030 EPSG:25830 EPSG:4326 END END PROJECTION init=epsg:23030 END LAYER NAME RIVER_BASIN METADATA wfs_title RIVER_BASIN wfs_abstract River Basin wfs_extent515055 474 624945 481 gml_featureid ID gml_include_items all END TYPE POLYGON STATUS ON CONNECTIONTYPE oraclespatial CONNECTION WFSNEW/ax...@orcl DATA GEOM FROM VRIVER_BASIN USING UNIQUE ID SRID 23030 VERSION 10g PROJECTION init=epsg:23030 END DUMP TRUE CLASS STYLE OUTLINECOLOR 0 0 0 COLOR 120 120 120 END END END # RIVER_BASIN As you can see there are three SRSs specified EPSG:23030 EPSG:25830 EPSG:4326 as output in the web metadata section, but the capabilities operation present only the first (EPSG:23030) as DefaultSRS element. This is part of the capability response wfs:WFS_Capabilities version=1.1.0 xsi:schemaLocation=http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd; ... FeatureTypeList Operations OperationQuery/Operation /Operations FeatureType NameRIVER_BASIN/Name TitleRIVER_BASIN/Title AbstractRiver Basin/Abstract DefaultSRSEPSG:23030/DefaultSRS OutputFormats Formattext/xml; subtype=gml/3.1.1/Format /OutputFormats ... /ogc:Filter_Capabilities /wfs:WFS_Capabilities I think it should present DefaultSRSEPSG:23030/DefaultSRS OtherSRSEPSG:25830/OtherSRS OtherSRSEPSG:4326/OtherSRS What is wrong? Any idea? Thanks in advance. -- Assefa Yewondwossen Software Analyst Email: ass...@dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Wfs without geometry information
ibrahimsaricicek wrote: Is there a way of getting a wfs request without geometry information? How can i filter geometry in upcoming xml? For a WFS GetFeature request, you can specify a layer level metadata : gml_geometries none regards, -- Assefa Yewondwossen Software Analyst Email: ass...@dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Position of label
Jan Hartmann wrote: Hi folks, Is there a way to get back the exact position of the labels in a MapServer map? I want to make the labels clickable with Ajax, so a x-y values in image coordinates would be enough. I looked in the Template and Mapscript docs, but couldn't find anything about the (computed) position of labels. Jan Hi Jan, This should be available pretty soon in trunk using Mapserver Templates (http://trac.osgeo.org/mapserver/ticket/3241), Please add your name in CC on this bug for comments/suggestions. best regards, ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Assefa Yewondwossen Software Analyst Email: ass...@dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] WMS-Client example
www2.dmsolutions.ca/cgi-bin/mswms_gmap is now up and running. regards, Rahkonen Jukka wrote: Hi, First problem is that the url www2.dmsolutions.ca/cgi-bin/mswms_gmap? does not answer. You have no chance to succeed with that WMS server at the moment. -Jukka Rahkonen- greenzeod wrote: Hello, I have a problem with the WMS-Client sample layer, which doesnŽt work for me. I tried to add the prov_bound layer to my map-config file, but when I tried to display the layer, i get only a white image. If i use the local bathymetry layer instead of prob_bound - it works. Did I make something wrong? Best Regrads Sergej My call for the image: http://127.0.0.1/cgi-bin/mapserv.exe?MAP=E:/Program%20Files%20 %28x86%29/ms4w/apps/gmap/htdocs/gmap75.mapSERVICE=wmsVERSION =1.1.1LAYERS=prov_boundREQUEST=GetMapSRS=EPSG:42304BBOX=-2 20,-712631,3072800,384FORMAT=image/pngWIDTH=400HEIGHT=300 MAP-File: # # Start of layer definitions # LAYER NAME prov_bound TYPE RASTER STATUS ON CONNECTION http://www2.dmsolutions.ca/cgi-bin/mswms_gmap?; CONNECTIONTYPE WMS METADATA wms_srs EPSG:42304 EPSG:42101 EPSG:4269 EPSG:4326 EPSG:42304 wms_nameprov_bound wms_server_version 1.1.0 wms_formatlist image/gif,image/png,image/jpeg,image/wbmp wms_format image/gif END END LAYER NAME bathymetry METADATA wms_title Elevation/Bathymetry END TYPE RASTER STATUS ON DATA bath_mapserver.tif PROJECTION init=epsg:42304 END END END # layer ___ Preisknaller: WEB.DE DSL Flatrate für nur 16,99 Euro/mtl.! http://produkte.web.de/go/02/ ___ 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 -- Assefa Yewondwossen Software Analyst Email: ass...@dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] attribute bindings for SYMBOL and FONT?
Brent Fraser wrote: The short story: Is it possible to bind a CLASS's SYMBOL object to an attribute (i.e store the symbol name as a attribute of a feature)? And the LABEL objects FONT name? Binding would be with style'symbol, instead of class symbol. Font also can be bound. I will update the docs to reflect that. The list of binding elements is: For style: SIZE, WIDTH, ANGLE, COLOR, OUTLINECOLOR, SYMBOL, OUTLINEWIDTH, OPACITY for labels: SIZE, ANGLE, COLOR, OUTLINECOLOR, FONT, PRIORITY regards, The Long Story: --- I've been working with the yet-to-be-released Feature Editor in Geomoose v2. It allows the user to digitize features (points, lines, and polygons) and assign attributes, then stores them in PostGIS. I want to allow simple styling and don't want to have a map file the size of War and Peace, so I thought I would use the attribute/item/column binding abilities of Mapserver's CLASS and LABEL objects. To that end, one of the columns the feature table will be style name (or maybe feature class), which I'll use to join to a style table (with COLOR, WIDTH, etc columns) to get the feature rendered in a simple style. After a quick review of Mapserver's doc, most of the most important objects can be bound to attributes, with two exceptions, SYMBOL 'name' and FONT 'name': CLASS STYLE ANGLE [angle] COLOR [color] #R G B OUTLINECOLOR [olcolor] #R G B SIZE [size] WIDTH [width] # v5.2 SYMBOL 'name' # in SYMBOLSET END #STYLE TEXT ([label]) LABEL ANGLE [label_angle] COLOR [label_color] OUTLINECOLOR [label_olcolor] PRIORITY [label_priority] SIZE [label_size] FONT 'name' # in FONTSET END #LABEL END # CLASS How difficult would it be to have attribute binding for SYMBOL and FONT? I suppose I could use mapscript, but I'd rather not. Thanks! Brent Fraser ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Assefa Yewondwossen Software Analyst Email: ass...@dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] increase timeout limit
You can try setting the time using *“wms_connectiontimeout” (*http://www.mapserver.org/ogc/wms_client.html) regards, Holger Porath wrote: Hi list, I am trying to render a big WMS map with mapserver 5.0 but I am encountering the following issue: msDrawWMSLayerLow(): WMS server error. WMS GetMap request failed for layer 'abc' (Status -28: TIMEOUT of 30 seconds exceeded.). Does anyone know how I can increase the timeout limit. 30 seconds doesn't seem to be enough for my map. Thanks in advance. Cheers Holger Porath ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Assefa Yewondwossen Software Analyst Email: ass...@dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] GetLegendGraphic, class name, no label
Hi Steve, Have you tried to add width and height parameters in your request with the rule specified: ...width=20height=20Format=gifRULE=my_rule That should allow you to get the exact size. If not I believe the default sizes are taken from the keysize parameter legend block in the map file. If not defined it will default to 20/10. regards, steve.tout...@inspq.qc.ca wrote: Hi, I'm using GetLegendGraphic to get an icon. I don't want any label so I don't give a class name in the layer definition. I have a layer with several classes. I would like to get the icon for the last class only, without the label. I tried to use RULE=className in the request, and give a className to my last class, but the icon is distorted, too big. If I keep only one class (the last one I want) in the mapfile, without a classname, and without RULE key in the request the icon I get is good. Is there some more information I need to use RULE key in the request? Maybe I misunderstood this key uses. thanks steve ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Assefa Yewondwossen Software Analyst Email: ass...@dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] WMS Client and SLD
Hi There, The first thing would be to make sure that the server supports SLD styling. Doing a GetCapabilities [1], It seems it does not (at least it does not the DescribeLayer operation which would indicate that SLD is supported). If there server indeed supports sld, I would suggest to do a manual call first [2][3] and see if it applies the sld properly. If all goes well you can then try it from MapServer. Note also that there seems to be a error in your sld: ogc:Filterogc:PropertyIsEqualToogc:PropertyNameSTATUS/ogc:PropertyName/ogc:PropertyIsEqualTo/ogc:Filter should have a literal value in it, something like: ogc:Filterogc:PropertyIsEqualToogc:PropertyNameSTATUS/ogc:PropertyNameogc:Literal1/ogc:Literal/ogc:PropertyIsEqualTo/ogc:Filter Hope it helps. regards,, [1]: http://atlas.information.qld.gov.au/ArcGIS/services/IRTM/MapServer/WMSServer?service=WMSRequest=GetCapabilities [2]:http://atlas.information.qld.gov.au/ArcGIS/services/IRTM/MapServer/WMSServer?service=WMSVERSION=1.1.0Request=GetMapLayers=56SRS=EPSG:4326BBOX=137.984510,-28.998470,153.534386,-10.098496FORMAT=image/pngWIDTH=300HEIGHT=200STYLES=; [3]http://atlas.information.qld.gov.au/ArcGIS/services/IRTM/MapServer/WMSServer?service=WMSVERSION=1.1.0Request=GetMapLayers=56SRS=EPSG:4326BBOX=137.984510,-28.998470,153.534386,-10.098496FORMAT=image/pngWIDTH=300HEIGHT=200STYLES=sld=http://../mysld.xml Tony Baylis wrote: All, This is the first time I have tried styling external WMS data using SLD and cannot get the returned data/image in the desired style. Below is the simplified mapfile and SLD file. If anyone has any pointers I'd be more than grateful. Please note that the link to the SLD file does work with the following return: 56 APPLICATION STATUS #ff GRANTED STATUS #be Tony Mapfile: # # Start of map file # MAP NAME qld_tenement STATUS ON SIZE 800 500 EXTENT 140 -23.25 150 -17 UNITS DD SHAPEPATH /var/www/remwms/htdocs/data IMAGECOLOR 192 213 255 SYMBOLSET /var/www/remwms/htdocs/includes/symbols.sym FONTSET /usr/share/fonts/truetype/font.list DEBUG 2 CONFIG MS_ERRORFILE /var/www/ms_tmp/ms_error.txt #IMAGETYPE PNG OUTPUTFORMAT NAME AGGA MIMETYPE image/png DRIVER AGG/PNG EXTENSION png IMAGEMODE RGBA TRANSPARENT ON END # # Start of web interface definition # WEB IMAGEPATH /var/www/ms_tmp/ IMAGEURL http://mapserver1/ms_tmp/; END # # Assign Projection # PROJECTION init=epsg:4283 END LAYER NAME EPM TYPE RASTER STATUS ON CONNECTIONTYPE WMS CONNECTION 'http://atlas.information.qld.gov.au/ArcGIS/services/IRTM/MapServer/WMSServer?' METADATA wms_srs EPSG:4326 wms_name 56 wms_server_version 1.1.1 wms_format image/png wms_title EPM wms_include_itemsall wms_sld_url http://mapserver1/remwms/includes/sld/publicsld.xml; wms_legend_graphic 0 wms_feature_info_mime_type text/plain END END END SLD File: ?xml version=1.0 encoding=UTF-8? StyledLayerDescriptor version=1.0.0 xmlns=http://www.opengis.net/sld; xmlns:ogc=http://www.opengis.net/ogc; xmlns:xlink=http://www.w3.org/1999/xlink; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://www.opengis.net/sld http://schemas.opengis.net/sld/1.0.0/StyledLayerDescriptor.xsd; NamedLayer Name56/Name UserStyle FeatureTypeStyle Rule NameAPPLICATION/Name ogc:Filterogc:PropertyIsEqualToogc:PropertyNameSTATUS/ogc:PropertyName/ogc:PropertyIsEqualTo/ogc:Filter PolygonSymbolizer Fill CssParameter name=fill#ff/CssParameter /Fill /PolygonSymbolizer /Rule Rule NameGRANTED/Name ogc:Filterogc:PropertyIsEqualToogc:PropertyNameSTATUS/ogc:PropertyName/ogc:PropertyIsEqualTo/ogc:Filter PolygonSymbolizer Fill CssParameter name=fill#be/CssParameter /Fill /PolygonSymbolizer /Rule /FeatureTypeStyle /UserStyle /NamedLayer /StyledLayerDescriptor -- Assefa Yewondwossen Software Analyst Email: ass...@dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] getLegendGraphic Request error
Boer, dr. W.M. de (Thijs) wrote: Hi Yewondwossen, finally I found the solution. The layer in question had all of its classes commented out... Once I fixed that, it was no problem anymore. Thanks for your offer to help. Thijs Great. Note that It was the first thing I tried (removing all classes) to reproduce the issue but could not using both gd and agg output. I was getting an empty valid image.The tests I have done were using the latest MapServer. regards, -Oorspronkelijk bericht- Van: Yewondwossen Assefa [mailto:yass...@dmsolutions.ca] Verzonden: 26 november 2009 15:09 Aan: Boer, dr. W.M. de (Thijs) CC: mapserver-users@lists.osgeo.org Onderwerp: Re: [mapserver-users] getLegendGraphic Request error Hi There, Boer, dr. W.M. de (Thijs) wrote: Hello list, wenn I send my getLegendGraphic Request I get the following error: [Thu Nov 26 09:44:02 2009].113000 msImageCreateGD(): Image handling error. Cannot create GD image of size 67x-2. [Thu Nov 26 09:44:02 2009].113000 msDrawLegend(): GD library error. Unable to initialize image. Does anyone know, what can be wrong? How can I solve the problem? Would it be possible to make available a map/data and the full getlegendgraphic url and I can quickly check the case your are facing? Something is going wrong when calculating the size of the legend or the icons but could not quickly identify it by looking in the code. regards Greetings, Thijs Dit bericht kan informatie bevatten die niet voor u is bestemd. Indien u niet de geadresseerde bent of dit bericht abusievelijk aan u is gezonden, wordt u verzocht dat aan de afzender te melden en het bericht te verwijderen. De Staat aanvaardt geen aansprakelijkheid voor schade, van welke aard ook, die verband houdt met risico's verbonden aan het elektronisch verzenden van berichten. This message may contain information that is not intended for you. If you are not the addressee or if this message was sent to you by mistake, you are requested to inform the sender and delete the message. The State accepts no liability for damage of any kind resulting from the risks inherent in the electronic transmission of messages. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Assefa Yewondwossen Software Analyst Email: ass...@dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] getLegendGraphic Request error
Hi There, Boer, dr. W.M. de (Thijs) wrote: Hello list, wenn I send my getLegendGraphic Request I get the following error: [Thu Nov 26 09:44:02 2009].113000 msImageCreateGD(): Image handling error. Cannot create GD image of size 67x-2. [Thu Nov 26 09:44:02 2009].113000 msDrawLegend(): GD library error. Unable to initialize image. Does anyone know, what can be wrong? How can I solve the problem? Would it be possible to make available a map/data and the full getlegendgraphic url and I can quickly check the case your are facing? Something is going wrong when calculating the size of the legend or the icons but could not quickly identify it by looking in the code. regards Greetings, Thijs Dit bericht kan informatie bevatten die niet voor u is bestemd. Indien u niet de geadresseerde bent of dit bericht abusievelijk aan u is gezonden, wordt u verzocht dat aan de afzender te melden en het bericht te verwijderen. De Staat aanvaardt geen aansprakelijkheid voor schade, van welke aard ook, die verband houdt met risico's verbonden aan het elektronisch verzenden van berichten. This message may contain information that is not intended for you. If you are not the addressee or if this message was sent to you by mistake, you are requested to inform the sender and delete the message. The State accepts no liability for damage of any kind resulting from the risks inherent in the electronic transmission of messages. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Assefa Yewondwossen Software Analyst Email: ass...@dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Export SVG
Hi, Not sure I get it correctly: MapServer exports a vector file (the svg), when you mention anti-aliasing, I believe you are referring to an svg viewer rendering the svg file? From what I understand, the svg specifications allows to specify some properties at the shape level for example to give a hint to the viewers on how to render the different shapes (http://www.w3.org/TR/SVG/painting.html#ShapeRenderingProperty). Depending on the viewer, I suppose some would respect these properties. MapServer does not at the point setup these properties. Is this what you are looking for? regards. Maria Neywell wrote: Thanks, I have already tried this way to extract my map in a svg file and it works. _However_, I had a svg file which corresponds to my map but with a lot of aliasing. The FORMATOPTION FULL_RESOLUTION=TRUE changes nothing. I tested this with and without option. I don't know if I did something wrong or if this is a mapserver problem… am I the only one to have this problem ? Regards, Maria 2009/11/24 Yewondwossen Assefa yass...@dmsolutions.ca mailto:yass...@dmsolutions.ca Hi, You could possibly specify FULL_RESOLUTION option in your outputformat. Something like this: OUTPUTFORMAT NAME svg MIMETYPE image/svg+xml DRIVER svg FORMATOPTION FULL_RESOLUTION=TRUE END best regards, Maria Neywell wrote: Hi list, I'm using mapserver 5.2. I have tested all mapserver exports to render my map in svg, see : http://mapserver.org/output/svg.html but, the point is that all of these outputs give me up simplified geometry. I want to export my map in a svg with geometries who match exactly with my map. did someone noticed that same weird result ? Regards, Maria ___ mapserver-users mailing list mapserver-users@lists.osgeo.org mailto:mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Assefa Yewondwossen Software Analyst Email: ass...@dmsolutions.ca mailto:ass...@dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 -- Assefa Yewondwossen Software Analyst Email: ass...@dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Usage of Vendor Option
David, From a quick test I did locally using latest MapServer, I don;t see any particular issues with your sld. I was able to generate the labels as expected. Note that the anchor position is only used when labeling point features. Are each polygon formed with one shape or could one polygon be formed by several adjacent shapes? You can also check the log files and see what your layer looks like after the sld is applied: add something like this in your map file for example: CONFIG MS_ERRORFILE f:/logs/my_log_file.log DEBUG 5 regards, David Alda Fernandez de Lezea wrote: Hi, I've got a SLD that I apply to a polygon layer and I want to add a label to identify those polygons. I manage to add the the labels but my problem is that the labels are repeated a lot of times into the polygons and furthermore they don't appear on the centroif of my polygon. Here is my TextSymbolizer tag: TextSymbolizer sld:MinScaleDenominator3000/sld:MinScaleDenominator sld:MaxScaleDenominator5000/sld:MaxScaleDenominator Label ogc:PropertyNameMUNICIPIO/ogc:PropertyName /Label Font CssParameter name=font-familyArial/CssParameter CssParameter name=font-weightbold/CssParameter CssParameter name=font-size8/CssParameter /Font !-- this centers the label on the polygon's centroid-- LabelPlacement PointPlacement AnchorPoint AnchorPointX0.5/AnchorPointX AnchorPointY0.5/AnchorPointY /AnchorPoint /PointPlacement /LabelPlacement !-- make the label easy to read-- Halo Radius ogc:Literal2/ogc:Literal /Radius Fill CssParameter name=fill#FF/CssParameter CssParameter name=fill-opacity0.85/CssParameter /Fill /Halo Fill CssParameter name=fill#00/CssParameter /Fill !-- This labels each name only once, not every shape with that name -- VendorOption name=grouptrue/VendorOption /TextSymbolizer Un saludo, ·· *David Alda Fernández de Lezea* Lurralde eta Biodibertsitate Saila / Dpto. de Territorio y Biodiversidad *IKT* Granja Modelo s/n · 01192 · Arkaute (Araba) ·· Tlfnos.: 945-00-32-95 Fax: 945-00.32.90 ·· email: da...@ikt.es mailto:da...@ikt.esweb: www.ikt.es http://www.ikt.es/ ·· ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Assefa Yewondwossen Software Analyst Email: ass...@dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Problems with SLD
David Alda Fernandez de Lezea wrote: Hello, I'm quite new in MapServer, and I'm trying to apply some SLD's to a polygon layer served via WMS with MapServer, and I want these ploygons to have some transparency, and I specify the field fill-opacity to 0.5 but in the returned image the polygon is filled with opacity = 1. What could be happening?? Thanks. David, The fill-opacity parameter should be supported as MapServer version 5.2. Note also that style level opacity is only available through the AGG format. If both these cases are met and you still have an issue, you can send me/point me to your sld and I can give it a quick look. regards, -- Assefa Yewondwossen Software Analyst Email: ass...@dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] use of srsName in wfs 1.1
Martin Kofahl wrote: ... leads to msWFSGetFeature(): WFS server error. Invalid GetFeature Request: SRSNAME value should be valid for all the TYPENAMES. Please check the capabilities and reformulate your request. Having the capabilities in mind it's correct as there are no OtherSRS listed. But it would be a very useful feature I think and I wonder if there are plans to implement it. I agree on this. I will add at for the next release: http://trac.osgeo.org/mapserver/ticket/3184 best regards - Assefa Yewondwossen Software Analyst Email: ass...@dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users