[mapserver-users] Re: Raster Strategies Examples
i dont have problems to calculate the scale of an image, because im using one of mapserver apps, fusion to show the map and it has widgets do display the scale of a zoom in/out, or i just use map.scaledenom to show the current scale. My problem is how to find the scale where i should create the new mosaic overview. I have read that we should not use more than 4 tiles to display a request from the client, the Quadtree Structure or Q-Tree. As i have read we should start with max zoom than zooming out till performance decreases. That will be the breakpoint of the new scale. But i cant calculate it cuz i get different responses and im hosting the server so practically i have more performance than other users in other places or countries. Thnx all for the replies -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Raster-Strategies-Examples-tp5363321p5371539.html Sent from the Mapserver - User mailing list archive at Nabble.com. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] PropertyIsLike in combination with AND doesn't work (progress issue 3064)
hi list, As a Mapserver user I noticed that Mapserver does not accept a filter query where PropertyIsLike and AND are combined. In the issue tracker I read that this is a known issue (#3064). In the issue tracker I saw that there is a patch available, but that still some testing needs to be done on this patch. As I'm no programmer, unfortunately I can not perform the tests myself. Has anyone any knowledge if and when this patch will be available in Mapserver? Cheers, Geert ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] PropertyIsLike in combination with AND doesn't work (progress issue 3064)
Hi Geert, as you can read in the bug report it was fixed in trunk as part of ticket 2720, so it should be working on trunk (since 6 months already). Which platform are you on? What type of binaries are you using? Best regards, Bart hi list, As a Mapserver user I noticed that Mapserver does not accept a filter query where PropertyIsLike and AND are combined. In the issue tracker I read that this is a known issue (#3064). In the issue tracker I saw that there is a patch available, but that still some testing needs to be done on this patch. As I'm no programmer, unfortunately I can not perform the tests myself. Has anyone any knowledge if and when this patch will be available in Mapserver? Cheers, Geert ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Looking for flexible support on OpenLayers or GeoExt? Please check out http://www.osgis.nl/support.html Bart van den Eijnden OSGIS bart...@osgis.nl ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Re: Raster Strategies Examples
On Tue, Aug 3, 2010 at 2:12 PM, Frank Warmerdam wrote: I find the MapServer scale values very confusing myself. If I want to compute the scale for particular request (for instance to establish breakpoints for MINSCALE/MAXSCALE), I do a request at the target resolution with shp2img and debug output on and examine the debug output for the scale reported. you mean to use a command like shp2img -m All.map -o test.png -map_debug 3 and see if the response time is good? what do you mean by examine the debug output for the scale reported? -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Raster-Strategies-Examples-tp5363321p5371817.html Sent from the Mapserver - User mailing list archive at Nabble.com. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] WFS GetFeature and SLD filter Between
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
RE: [mapserver-users] PropertyIsLike in combination with AND doesn't work (progress issue 3064)
Hi Bart, Thanks for the quick reply. We're working on Windows Server 2003 and are using the ms4w binaries (with Mapserver 5.6.4). When I look through the ticket I can find that it was fixed in the trunk with ticket 2720, but that it wasn't fixed in the 5.6 branch (that whole trunk and branch work is a bit hazy to me). My tests suggests that the problem is still there in my version of Mapserver. For example: This is the filter portion of the SLD: Filter Or PropertyIsLike wildcard='*' singleChar='.' escape='!' PropertyNameLOC_ZK/PropertyName Literal*WERELD*/Literal /PropertyIsLike PropertyIsLike wildcard='*' singleChar='.' escape='!' PropertyNameLOC_ZK/PropertyName Literal*DAGEN*/Literal /PropertyIsLike /Or /Filter And here's class part from the mapfile created by mapserver: CLASS NAME class1 EXPRESSION /.*DAGEN.*/ STYLE ANGLE 360 COLOR 0 0 255 SYMBOL 0 WIDTH 1 END STYLE ANGLE 360 OUTLINECOLOR 255 0 0 SYMBOL 0 WIDTH 1 END END Any help would be appreciated. Cheers, Geert -Oorspronkelijk bericht- Van: Bart van den Eijnden (OSGIS) [mailto:bart...@osgis.nl] Verzonden: woensdag 4 augustus 2010 11:07 Aan: Huizer, G.J. CC: mapserver-users@lists.osgeo.org Onderwerp: Re: [mapserver-users] PropertyIsLike in combination with AND doesn't work (progress issue 3064) Hi Geert, as you can read in the bug report it was fixed in trunk as part of ticket 2720, so it should be working on trunk (since 6 months already). Which platform are you on? What type of binaries are you using? Best regards, Bart hi list, As a Mapserver user I noticed that Mapserver does not accept a filter query where PropertyIsLike and AND are combined. In the issue tracker I read that this is a known issue (#3064). In the issue tracker I saw that there is a patch available, but that still some testing needs to be done on this patch. As I'm no programmer, unfortunately I can not perform the tests myself. Has anyone any knowledge if and when this patch will be available in Mapserver? Cheers, Geert ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Looking for flexible support on OpenLayers or GeoExt? Please check out http://www.osgis.nl/support.html Bart van den Eijnden OSGIS bart...@osgis.nl ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
RE: [mapserver-users] PropertyIsLike in combination with AND doesn't work (progress issue 3064)
Hi Geert, true, it was not fixed in the 5.6 branch, so the only way to get this fix is to use trunk (also known as Mapserver 5.7 unstable). Gateway Geomatics provides customized Windows builds as a (paid) service, so maybe they can help you to either get a patched 5.6 binary or a current trunk binary (I would advise the last option since after 5.6 a lot of things were still fixed wrt SLD and Filter support). http://www.gatewaygeomatics.com/ Best regards, Bart Hi Bart, Thanks for the quick reply. We're working on Windows Server 2003 and are using the ms4w binaries (with Mapserver 5.6.4). When I look through the ticket I can find that it was fixed in the trunk with ticket 2720, but that it wasn't fixed in the 5.6 branch (that whole trunk and branch work is a bit hazy to me). My tests suggests that the problem is still there in my version of Mapserver. For example: This is the filter portion of the SLD: Filter Or PropertyIsLike wildcard='*' singleChar='.' escape='!' PropertyNameLOC_ZK/PropertyName Literal*WERELD*/Literal /PropertyIsLike PropertyIsLike wildcard='*' singleChar='.' escape='!' PropertyNameLOC_ZK/PropertyName Literal*DAGEN*/Literal /PropertyIsLike /Or /Filter And here's class part from the mapfile created by mapserver: CLASS NAME class1 EXPRESSION /.*DAGEN.*/ STYLE ANGLE 360 COLOR 0 0 255 SYMBOL 0 WIDTH 1 END STYLE ANGLE 360 OUTLINECOLOR 255 0 0 SYMBOL 0 WIDTH 1 END END Any help would be appreciated. Cheers, Geert -Oorspronkelijk bericht- Van: Bart van den Eijnden (OSGIS) [mailto:bart...@osgis.nl] Verzonden: woensdag 4 augustus 2010 11:07 Aan: Huizer, G.J. CC: mapserver-users@lists.osgeo.org Onderwerp: Re: [mapserver-users] PropertyIsLike in combination with AND doesn't work (progress issue 3064) Hi Geert, as you can read in the bug report it was fixed in trunk as part of ticket 2720, so it should be working on trunk (since 6 months already). Which platform are you on? What type of binaries are you using? Best regards, Bart hi list, As a Mapserver user I noticed that Mapserver does not accept a filter query where PropertyIsLike and AND are combined. In the issue tracker I read that this is a known issue (#3064). In the issue tracker I saw that there is a patch available, but that still some testing needs to be done on this patch. As I'm no programmer, unfortunately I can not perform the tests myself. Has anyone any knowledge if and when this patch will be available in Mapserver? Cheers, Geert ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Looking for flexible support on OpenLayers or GeoExt? Please check out http://www.osgis.nl/support.html Bart van den Eijnden OSGIS bart...@osgis.nl -- Looking for flexible support on OpenLayers or GeoExt? Please check out http://www.osgis.nl/support.html Bart van den Eijnden OSGIS bart...@osgis.nl ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
RE: [mapserver-users] PropertyIsLike in combination with AND doesn't work (progress issue 3064)
Hi Bart, Thanks for your quick reply (again) :-D... Shame to see that our problem isn't fixed yet, but good to know that it will (Mapserver 5.7 or 6.0 or something). I'll check out the website. Maybe they can help us! Thanks again! Best regards, Geert -Oorspronkelijk bericht- Van: Bart van den Eijnden (OSGIS) [mailto:bart...@osgis.nl] Verzonden: woensdag 4 augustus 2010 13:10 Aan: Huizer, G.J. CC: mapserver-users@lists.osgeo.org Onderwerp: RE: [mapserver-users] PropertyIsLike in combination with AND doesn't work (progress issue 3064) Hi Geert, true, it was not fixed in the 5.6 branch, so the only way to get this fix is to use trunk (also known as Mapserver 5.7 unstable). Gateway Geomatics provides customized Windows builds as a (paid) service, so maybe they can help you to either get a patched 5.6 binary or a current trunk binary (I would advise the last option since after 5.6 a lot of things were still fixed wrt SLD and Filter support). http://www.gatewaygeomatics.com/ Best regards, Bart Hi Bart, Thanks for the quick reply. We're working on Windows Server 2003 and are using the ms4w binaries (with Mapserver 5.6.4). When I look through the ticket I can find that it was fixed in the trunk with ticket 2720, but that it wasn't fixed in the 5.6 branch (that whole trunk and branch work is a bit hazy to me). My tests suggests that the problem is still there in my version of Mapserver. For example: This is the filter portion of the SLD: Filter Or PropertyIsLike wildcard='*' singleChar='.' escape='!' PropertyNameLOC_ZK/PropertyName Literal*WERELD*/Literal /PropertyIsLike PropertyIsLike wildcard='*' singleChar='.' escape='!' PropertyNameLOC_ZK/PropertyName Literal*DAGEN*/Literal /PropertyIsLike /Or /Filter And here's class part from the mapfile created by mapserver: CLASS NAME class1 EXPRESSION /.*DAGEN.*/ STYLE ANGLE 360 COLOR 0 0 255 SYMBOL 0 WIDTH 1 END STYLE ANGLE 360 OUTLINECOLOR 255 0 0 SYMBOL 0 WIDTH 1 END END Any help would be appreciated. Cheers, Geert -Oorspronkelijk bericht- Van: Bart van den Eijnden (OSGIS) [mailto:bart...@osgis.nl] Verzonden: woensdag 4 augustus 2010 11:07 Aan: Huizer, G.J. CC: mapserver-users@lists.osgeo.org Onderwerp: Re: [mapserver-users] PropertyIsLike in combination with AND doesn't work (progress issue 3064) Hi Geert, as you can read in the bug report it was fixed in trunk as part of ticket 2720, so it should be working on trunk (since 6 months already). Which platform are you on? What type of binaries are you using? Best regards, Bart hi list, As a Mapserver user I noticed that Mapserver does not accept a filter query where PropertyIsLike and AND are combined. In the issue tracker I read that this is a known issue (#3064). In the issue tracker I saw that there is a patch available, but that still some testing needs to be done on this patch. As I'm no programmer, unfortunately I can not perform the tests myself. Has anyone any knowledge if and when this patch will be available in Mapserver? Cheers, Geert ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Looking for flexible support on OpenLayers or GeoExt? Please check out http://www.osgis.nl/support.html Bart van den Eijnden OSGIS bart...@osgis.nl -- Looking for flexible support on OpenLayers or GeoExt? Please check out http://www.osgis.nl/support.html Bart van den Eijnden OSGIS bart...@osgis.nl ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
RE: [mapserver-users] Mapfile from Postgis, just Background No Map?
I see a few potential issues with your mapfile: 1.For testing, set your layer STATUS to DEFAULT or add 'layer=tb_kasusdbd' to your URL 2. You have two entries for UNITS (DD and KILOMETERS). You should only have one of these lines, and the units should match the units of your output projection. So, if your data really is in geographic coordinates (lat/long), your units should be 'DD'. 3. The values in your EXTENT line look weird. The values in your EXTENT need to be expressed in the units used by your output projection/spatial reference system. If your data is in geographic coordinates, these values are invalid. If your data is in some other spatial reference system, you will need to change your UNITS to match that SRS. David. From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of elisabeth theresia Sent: Tuesday, August 03, 2010 10:55 PM To: mapserver-users@lists.osgeo.org Subject: [mapserver-users] Mapfile from Postgis, just Background No Map? Good day all, i want to ask, i have file shp that already convert to Postgis, then i want to appear it in mapfile named:map_postgis.map then check in: http://localhost/cgi-bin/mapserv.exe?map=i:/Spatial/mapfile/map_postgis.mapmode=map, but that i found just background no Map. why? shp: kec_kasus_DBD db in postgis: db_SpatialSura table: tb_kasusdbd mapfile: map_postgis for checking: i want to see column 'kecamatan' here my mapfile: MAP NAME kec_kasus_DBD IMAGETYPE JPEG EXTENT -123.950500 -183.224900 299.457000 145.260600 STATUS ON UNITS DD SIZE 546 388 IMAGECOLOR 255 241 215 SHAPEPATH i:\Spatial\shp_kec FONTSET i:\Spatial\font\font.dat UNITS KILOMETERS #DATA LAYER NAME tb_kasusdbd STATUS ON TYPE POLYGON CONNECTIONTYPE POSTGIS CONNECTION user=dbee dbname=dbSpatialSura host=localhost port=5432 password=xx DATA the_geom FROM tb_kasusdbd USING UNIQUE code_kec MINSCALE 10 #FILTER type= 'jumdbd_08' CLASS NAME kecamatan STYLE COLOR 255 22 22 OUTLINECOLOR 67 70 31 WIDTH 2 ANTIALIAS TRUE END#style END#class END#layer END#map Thanks :) ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Re: Mapfile from Postgis, just Background No Map?
Check your map extents and layer extents if still you are not able to see your data then set debug level to 5 and see your log file ... that may give you some more information about why you are not able to view your data. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Mapfile-from-Postgis-just-Background-No-Map-tp5371127p5372845.html Sent from the Mapserver - User mailing list archive at Nabble.com. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Re: vector pdf output
Map does support vector PDF output. But be careful when you are using opacity parameter in your layer. It seems that mapserver doesn't support transparency in layer. cario is supported by mapserver and I am using cario for generating pdf. However my requirement was to create GeoPDF instead of normal PDF. for that I am also taking help of Itext library ... -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/vector-pdf-output-tp5370130p5372877.html Sent from the Mapserver - User mailing list archive at Nabble.com. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] 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