RE: [mapserver-users] clipping symbols at tile boundary?
OL gutter helps with symbols but breaks labels. PARTIALS false doesn't help in this case. I didn't find solution how to avoid breaking labels while using gutter. I suppose the only one is to turn off gutter (prebuild OL map clone with no gutter) on scales when symbols are turned off (if symbols are visible in large scales then labels uses large font size and gutter works fine with labels). Aaron Racicot wrote: Wendell, Look at 'gutter' in OpenLayers. It will allow you to get tiles slightly larger from your Mapserver WMS to get rid of some of the artifacts: http://dev.openlayers.org/docs/files/OpenLayers/Layer-js.html#OpenLayers.Lay er.gutter Hope that helps... Aaron -- Aaron Racicot Z-Pulley Inc. -Original Message- From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Wendell Turner Sent: Thursday, June 18, 2009 4:59 PM To: mapserver-users@lists.osgeo.org Subject: [mapserver-users] clipping symbols at tile boundary? (this must be basic, but here goes anyway...) I'm using Mapserver 5.2 with OpenLayers 2.7. I have a vector mapserver layer with point objects (shown with circle symbols) on it. The vector layer referenced via OpenLayers.Layer.WMS and is tiled. The circles are displayed in the tile that the center is on, but not the adjacent tiles. That is, if a circle is near the edge, part of the circle is chopped off. Is that what 'BUFFER 10' fixes? What about 'PARTIALS FALSE'? That seems to be just for labels, but that only shows the label when it completely lies within the tile. Do I need to turn off tiling completely? Thanks, Wendell ___ 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 -- View this message in context: http://n2.nabble.com/clipping-symbols-at-tile-boundary--tp3116673p3131305.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] New EPSG added but Projection Error
Hi All I have a requirement to create a map with a non-standard projection. I have added the new projection to the /proj/nad/epsg file with the appropriate parameters - i.e: # Hartebeesthoek94 / Lo31 2054+proj=tmerc +lon_0=31 +datum=WGS84 If I then try and reference that projection in my map file like below it throws an error - msProcessProjection(): Projection library error. projection not named: PROJECTION init=epsg:2054 END On the other hand, if I reference the proj4 format directly - it works - i.e PROJECTION +proj=tmerc +lon_0=31 +datum=WGS84 END Any ideas what I need to do, or is it not as simple as adding it directly to the epsg file? Thanks in advance Andrew -- View this message in context: http://n2.nabble.com/New-EPSG-added-but-Projection-Error-tp3131630p3131630.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] tilecache_clean.py cleaning more than expected
Hi all, I’m trying to keep my disk usage to about 500MB, but apparently tilecache_clean is freeing more space than what I’ve requested: # du -s -h /data/TILES 782M /data/TILES # python /apps/tilecache2.10/tilecache_clean.py -s 500 /data/TILES Cache entries found: 13040 Removed 12644 files. # du -s -h /data/TILES 73M /data/TILES Anyone knows why is this happening? Thanks, Nelson _ Drag n’ drop—Get easy photo sharing with Windows Live™ Photos. http://www.microsoft.com/windows/windowslive/products/photos.aspx___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] New EPSG added but Projection Error
Hi, Try adding some white space between 2054 and +proj -Jukka Rahkonen- stretch wrote: Hi All I have a requirement to create a map with a non-standard projection. I have added the new projection to the /proj/nad/epsg file with the appropriate parameters - i.e: # Hartebeesthoek94 / Lo31 2054+proj=tmerc +lon_0=31 +datum=WGS84 If I then try and reference that projection in my map file like below it throws an error - msProcessProjection(): Projection library error. projection not named: PROJECTION init=epsg:2054 END On the other hand, if I reference the proj4 format directly - it works - i.e PROJECTION +proj=tmerc +lon_0=31 +datum=WGS84 END Any ideas what I need to do, or is it not as simple as adding it directly to the epsg file? Thanks in advance Andrew -- View this message in context: http://n2.nabble.com/New-EPSG-added-but-Projection-Error-tp3131630p3131630.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 mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Help Needed - MS4W, Tikiwiki and Vista
Dear Friends... I'm trying to use tikiwiki as a GeoCMS on MS4W on windows(Vista) Platform... I have configured Mapserver 5.4.0 RC2 on XAMPP Platform and it's working perfectly standalone... But when I use with tikiwiki map module I get this error Can Some one help me in solving this error. *An error as occured with the mapfile: world.map [MapServer Error]: loadWeb(): Parsing error near (:):(line 33) * * # WEB TEMPLATE D:\xampp\htdocs\tw\map\map.html -- IMAGEPATH D:\xampp\htdocs\tw\map\images IMAGEURL /map/images METADATA VIEW1 Australia,117.500594119,-34.8753753754,165.037355881,-3.2087087087 VIEW2 Fiji,165.704315901,-24.5147748593,201.374684099,-0.76477485929* -- Arpit Deomurari Naturalist And Birder.. AVANI Anand Colony Road No-1 Nr. Gurukrupa, Opp. Rushi Apartment, Vikasgruh Road, Jamnagar - 361008 Gujarat(INDIA) E-Mail:- deomur...@gmail.com ar...@waders.in Web site: http://www.waders.in http://indianaturewatch.net/view_cat.php?tag=Arpit%20Deomurari http://www.flickr.com/photos/deomurari Mobile No.:- +91-9426442243 (Mobile) I Believe In God, Only spell It Nature *** One should not have a job, career or profession- only a hobby, passion and a cause Please consider your environmental responsibility before printing this e-mail - Save paper. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] New EPSG added but Projection Error
Thanks - that seemed to work. its the small things Rahkonen Jukka wrote: Hi, Try adding some white space between 2054 and +proj -Jukka Rahkonen- -- View this message in context: http://n2.nabble.com/New-EPSG-added-but-Projection-Error-tp3131630p3132274.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] clipping symbols at tile boundary?
Hi, You can put labelcache_map_edge_buffer -10 in the WEB block metadata. This will ensure that no labels are drawn within 10 pixels of a tile boundary (you can change the value to increase or decrease the buffer zone) E.g.: MAP ... WEB METADATA labelcache_map_edge_buffer -10 END ... END ... END Christy BrainDrain wrote: OL gutter helps with symbols but breaks labels. PARTIALS false doesn't help in this case. I didn't find solution how to avoid breaking labels while using gutter. I suppose the only one is to turn off gutter (prebuild OL map clone with no gutter) on scales when symbols are turned off (if symbols are visible in large scales then labels uses large font size and gutter works fine with labels). Aaron Racicot wrote: Wendell, Look at 'gutter' in OpenLayers. It will allow you to get tiles slightly larger from your Mapserver WMS to get rid of some of the artifacts: http://dev.openlayers.org/docs/files/OpenLayers/Layer-js.html#OpenLayers.Lay er.gutter Hope that helps... Aaron -- Aaron Racicot Z-Pulley Inc. -Original Message- From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Wendell Turner Sent: Thursday, June 18, 2009 4:59 PM To: mapserver-users@lists.osgeo.org Subject: [mapserver-users] clipping symbols at tile boundary? (this must be basic, but here goes anyway...) I'm using Mapserver 5.2 with OpenLayers 2.7. I have a vector mapserver layer with point objects (shown with circle symbols) on it. The vector layer referenced via OpenLayers.Layer.WMS and is tiled. The circles are displayed in the tile that the center is on, but not the adjacent tiles. That is, if a circle is near the edge, part of the circle is chopped off. Is that what 'BUFFER 10' fixes? What about 'PARTIALS FALSE'? That seems to be just for labels, but that only shows the label when it completely lies within the tile. Do I need to turn off tiling completely? Thanks, Wendell ___ 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
[mapserver-users] GetLegendGraphic GeltLegend Problem
Hi all I am running Mapserver 5.4 RC2 as per the MS4W from the maptools site - mapserv -v output below: MapServer version 5.4.0-rc2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPP ORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPOR TS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS SUPPORTS=RGBA_PNG INPUT =JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE Previously, the following request from Mapserver 5.0.0 produced the legend item for the requested layer correctly: http://domain/wms/wms.php?SERVICE=WMSVERSION=1.1.1REQUEST=GetLegendGraphicLAYER=ProvincesFormat=image/png However, when I do the same call now, i get the map returned instead of the legend graphic. Is there an extra parameter I need to pass through, or some incorrect syntax that is being trapped by the latest release. Thanks in advance -- View this message in context: http://n2.nabble.com/GetLegendGraphic-GeltLegend-Problem-tp3132435p3132435.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] Postgis data source: quoting table name problem
Dear List, I've extensively searched the archives, saw a couple of more or less related posts, but couldn't find any solutions for my problem. In my mapserver application I use postgis as a data source. In my application the tables containing geometry columns do need to have odd characters like . and - in their names (for clarity: the table names that is, not the column names). Postgis allows this by double qouting the table name in functions, queries and sql statements. So in mapserver I like to do that as well as in the following example: DATA 'tc_vlak_geometry from nl_imro_0026_svbbu_0001 using unique geoidn' Unfortunately that fails with a message from the WMS: msDrawMap(): Image handling error. Failed to draw layer named 'geoidNL.IMRO.SVBBU-102-_vlak'. prepare_database(): Query error. Error executing POSTGIS DECLARE (the actual query) statement: 'DECLARE mycursor BINARY CURSOR FOR SELECT asbinary(force_collection(force_2d(tc_vlak_geometry)),'NDR'),geoidn::text from nl_imro_0026_svbbu_0001 WHERE tc_vlak_geometry setSRID('BOX3D(155016 467631,156758 470080)'::BOX3D, find_srid('','nl_imro_0026_svbbu_0001','tc_vlak_geometry') )' Postgresql reports the error as 'ERROR: find_srid() - couldnt find the corresponding SRID - is the geometry registered in the GEOMETRY_COLUMNS table? Is there an uppercase/lowercase missmatch? ' More Help: Error with POSTGIS data variable. You specified 'check your .map file'. Standard ways of specifiying are : (1) 'geometry_column from geometry_table' (2) 'geometry_column from (sub query) as foo using unique column name using SRID=srid#' Make sure you put in the 'using unique column name' and 'using SRID=#' clauses in. For more help, please see http://postgis.refractions.net/documentation/ Mappostgis.c - version of Jan 23/2004 Removing the quotes works fine and gives a map from the WMS. Of course removing the quotes in this example is no problem because there are no odd characters like . and -. When tablenames do have these characters, the query of course fails. Are there any workarounds for this problem other than renaming tables to names without odd characters? (and yes, I've tried to add using srid = 28992 to the DATA string, but that doesn't help). (and yes, I've tried escaping double quotes like DATA 'tc_vlak_geometry from \nl_imro_0026_svbbu_0001\ using unique geoidn') Any help greatly appreciated. MArco ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] tilecache_clean.py cleaning more than expected
On Mon, Jun 22, 2009 at 08:30:40AM +, Nelson Correia wrote: Hi all, I?m trying to keep my disk usage to about 500MB, but apparently tilecache_clean is freeing more space than what I?ve requested: # du -s -h /data/TILES 782M /data/TILES # python /apps/tilecache2.10/tilecache_clean.py -s 500 /data/TILES Cache entries found: 13040 Removed 12644 files. # du -s -h /data/TILES 73M /data/TILES Anyone knows why is this happening? Please send this message to the tilecache mailing list. Regards, -- Christopher Schmidt MetaCarta ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Mapserver CGI 5.4 crashed my app (Windows 2003)
ok... I´m waiting for the news :p Thanks 2009/6/18 Tamas Szekeres szeker...@gmail.com Hi, I've set it up (Win2003) but didn't crash, though I get blank images in cgi mode. http://vbkto.dyndns.org:1280/cgi-bin4/mapserv.exe?map=E :\tests\TestCGI\map.mapmode=map shp2img produces correct image however. I'm a bit uncertain whether the 2 problems are the same but I'll look into this one in more detail shortly. Tamas 2009/6/18 stela anders stelaand...@gmail.com Hi guys! I got that binary now : http://vbkto.dyndns.org:1280/sdk/release-1500-gdal-mapserver.zip Same error Tamas... System : Windows XP / IIS 5.1 Using Postgis as datasourse... I made a package with : - Mapfile - Postgis data - Html You only need OL js to tryout... Or you can try typing : http://localhost/cgi-binx/mapserv.exe?map=map.map The error is : CGI Error The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are: --- Using version 5.2.2 all works fine... Stela 2009/6/18 Tamas Szekeres szeker...@gmail.com Hi, Some of the guys reported issues with mapserver 5.4+ in normal CGI mode (FastCGI was reported ok) but I couldn't reproduce it myself so it would be helpful if someone could describe the steps (and provide mapfiles/sample data) to check it out. You could also test with the binaries provided from here which appears to be working ok. http://vbkto.dyndns.org:1280/sdk/Default.aspx Best regards, Tamas 2009/6/18 stela anders stelaand...@gmail.com Hey guys ! That´s my first message here... (I´m from Argentina, sorry about my bad English) Is there any bug on Mapserver 5.4 CGI ? We have a full application using Mapserver 5.2 CGI on Windowns 2003/IIS ... We tried to update to newest version 5.4 and got a CGI error ... Is there any FAQ to upgrade ? Or maybe is it a bug? Stela ___ 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] Re: [UMN_MAPSERVER-USERS] Problem: ANGLEITEM and TRANSPARENT
Dear List, I'm facing the same problems adressed in the messages below regarding the transpareny of pixmap symbols. Pixmap symbols lose their transparency after rotation or resizing with ANGLE or SIZE parameter. I'm working with mapserver 5.4.0 and gd 2.0.32. Is anybody aware of this problem? Was this fixed with later versions of GD? Any help is appreciated. best regards, Oliver On Wed, May 31, 2006 at 4:04 PM, Steve Lime steve.l...@dnr.state.mn.uswrote: As a follow up. The patch was not as complete as I hoped. I worked on the problem until late last night but did not end up committing anything- still working on it though. Steve Steve Lime steve.l...@dnr.state.mn.us 05/30/06 1:01 PM Christian: The problem seems to be in GD. Transparency is lost after rotation and I've tried a variety of methods to rebuild it post rotation and it simply doesn't work. That said, the folks have MapMedia have submitted a new image rotation function that should fix the issue and some others with resampling method. I need to integrate that into the development version for testing. I will do that tonite... Steve Christian Wilmes c.wil...@gmx.de 5/30/2006 8:11:39 AM Hi All, I'm trying to visualize point-data with the mapserver. As symbol I'm using a transparent PIXMAP. Now I want to use ANGLEITEM in the STYLE-Object, ANGLEITEM itself is working fine, but using it causes the lost of the transperency. Instead of the parameter TRANSPARNZ in the SYMBOL-Object I also tried it with a gif and a png which has already a transparent background. The result is the same, without ANGLEITEM it works fine but without it doesn't. Does anybody have an idea how to fix that problem? Best Regards Christian -- Bis zu 70% Ihrer Onlinekosten sparen: GMX SmartSurfer! Kostenlos downloaden: http://www.gmx.net/de/go/smartsurfer ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Postgis data source: quoting table name problem
Hello Marco, If you do not specify ...using unique geoidnd using SRID=28992' mapserver will search the table for srid information, again sending the table name in a query to the database as seen in the error message. I agree that this might be a tiny bug, but it might be a workaround to define the srid in the DATA clause. Kind regards, Milo van der Linden On Mon, 2009-06-22 at 15:02 +0200, DeDuikertjes wrote: Dear List, I've extensively searched the archives, saw a couple of more or less related posts, but couldn't find any solutions for my problem. In my mapserver application I use postgis as a data source. In my application the tables containing geometry columns do need to have odd characters like . and - in their names (for clarity: the table names that is, not the column names). Postgis allows this by double qouting the table name in functions, queries and sql statements. So in mapserver I like to do that as well as in the following example: DATA 'tc_vlak_geometry from nl_imro_0026_svbbu_0001 using unique geoidn' Unfortunately that fails with a message from the WMS: msDrawMap(): Image handling error. Failed to draw layer named 'geoidNL.IMRO.SVBBU-102-_vlak'. prepare_database(): Query error. Error executing POSTGIS DECLARE (the actual query) statement: 'DECLARE mycursor BINARY CURSOR FOR SELECT asbinary(force_collection(force_2d(tc_vlak_geometry)),'NDR'),geoidn::text from nl_imro_0026_svbbu_0001 WHERE tc_vlak_geometry setSRID('BOX3D(155016 467631,156758 470080)'::BOX3D, find_srid('','nl_imro_0026_svbbu_0001','tc_vlak_geometry') )' Postgresql reports the error as 'ERROR: find_srid() - couldnt find the corresponding SRID - is the geometry registered in the GEOMETRY_COLUMNS table? Is there an uppercase/lowercase missmatch? ' More Help: Error with POSTGIS data variable. You specified 'check your .map file'. Standard ways of specifiying are : (1) 'geometry_column from geometry_table' (2) 'geometry_column from (sub query) as foo using unique column name using SRID=srid#' Make sure you put in the 'using unique column name' and 'using SRID=#' clauses in. For more help, please see http://postgis.refractions.net/documentation/ Mappostgis.c - version of Jan 23/2004 Removing the quotes works fine and gives a map from the WMS. Of course removing the quotes in this example is no problem because there are no odd characters like . and -. When tablenames do have these characters, the query of course fails. Are there any workarounds for this problem other than renaming tables to names without odd characters? (and yes, I've tried to add using srid = 28992 to the DATA string, but that doesn't help). (and yes, I've tried escaping double quotes like DATA 'tc_vlak_geometry from \nl_imro_0026_svbbu_0001\ using unique geoidn') Any help greatly appreciated. MArco ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users signature.asc Description: This is a digitally signed message part ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Mapserver 5.4 For Windows Resolution problems - openlayers
Hi all I have upgraded my local machine to Mapserver 5.4 for windows. Since upgrading my openlayers projects has started complaining about setting my map resolutions, and the output is a map with a whole lot of tiles of the full map extent. Reverting back to my old 5 version suddenly everything works fine. I have also had an issue with getMapLegend (couple of posts earlier). The latest windows build is 5.4 rc2. Can anyone tell me if there is an issue with this, or if there is something new that needs to be implemented to get things working again. I apologise for the lack of additional technical detail, but I have spent the entire day trying to troubleshoot this and come a full circle so I actually dont know what I have dome and what I haven't done at this stage! Perhaps, if anyone else has had problems they could let me know? Thanks -- View this message in context: http://n2.nabble.com/Mapserver-5.4-For-Windows-Resolution-problems---openlayers-tp3136893p3136893.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] Postgis data source: quoting table name problem
Milo, List, changing to DATA 'tc_vlak_geometry from nl_imro_0026_svbbu_0001 using unique geoidn using SRID = 28992' and also DATA 'tc_vlak_geometry from nl_imro_0026_svbbu_0001 using unique geoidn using srid = 28992' fails, but: DATA 'tc_vlak_geometry from nl_imro_0026_svbbu_0001 using unique geoidn using SRID=28992' and DATA 'tc_vlak_geometry from nl_imro_0026_svbbu_0001 using unique geoidn using srid=28992' both work as it should. I allready tried things like that before, but apparently got something wrong in the details like having spaces around the = Great, thank you very much. MArco Milo van der Linden schreef: Hello Marco, If you do not specify ...using unique geoidnd using SRID=28992' mapserver will search the table for srid information, again sending the table name in a query to the database as seen in the error message. I agree that this might be a tiny bug, but it might be a workaround to define the srid in the DATA clause. Kind regards, Milo van der Linden On Mon, 2009-06-22 at 15:02 +0200, DeDuikertjes wrote: Dear List, I've extensively searched the archives, saw a couple of more or less related posts, but couldn't find any solutions for my problem. In my mapserver application I use postgis as a data source. In my application the tables containing geometry columns do need to have odd characters like . and - in their names (for clarity: the table names that is, not the column names). Postgis allows this by double qouting the table name in functions, queries and sql statements. So in mapserver I like to do that as well as in the following example: DATA 'tc_vlak_geometry from nl_imro_0026_svbbu_0001 using unique geoidn' Unfortunately that fails with a message from the WMS: msDrawMap(): Image handling error. Failed to draw layer named 'geoidNL.IMRO.SVBBU-102-_vlak'. prepare_database(): Query error. Error executing POSTGIS DECLARE (the actual query) statement: 'DECLARE mycursor BINARY CURSOR FOR SELECT asbinary(force_collection(force_2d(tc_vlak_geometry)),'NDR'),geoidn::text from nl_imro_0026_svbbu_0001 WHERE tc_vlak_geometry setSRID('BOX3D(155016 467631,156758 470080)'::BOX3D, find_srid('','nl_imro_0026_svbbu_0001','tc_vlak_geometry') )' Postgresql reports the error as 'ERROR: find_srid() - couldnt find the corresponding SRID - is the geometry registered in the GEOMETRY_COLUMNS table? Is there an uppercase/lowercase missmatch? ' More Help: Error with POSTGIS data variable. You specified 'check your .map file'. Standard ways of specifiying are : (1) 'geometry_column from geometry_table' (2) 'geometry_column from (sub query) as foo using unique column name using SRID=srid#' Make sure you put in the 'using unique column name' and 'using SRID=#' clauses in. For more help, please see http://postgis.refractions.net/documentation/ Mappostgis.c - version of Jan 23/2004 Removing the quotes works fine and gives a map from the WMS. Of course removing the quotes in this example is no problem because there are no odd characters like . and -. When tablenames do have these characters, the query of course fails. Are there any workarounds for this problem other than renaming tables to names without odd characters? (and yes, I've tried to add using srid = 28992 to the DATA string, but that doesn't help). (and yes, I've tried escaping double quotes like DATA 'tc_vlak_geometry from \nl_imro_0026_svbbu_0001\ using unique geoidn') Any help greatly appreciated. MArco ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Mapserver CGI 5.4 crashed my app (Windows 2003)
I had to replace the 'STATUS ON' with 'STATUS DEFAULT' in the mapfile to make it work. Here is the result: http://vbkto.dyndns.org:1280/cgi-bin4/mapserv.exe?map=E :\tests\TestCGI\map.mapmode=map But it seems the original problem couldn't be reproduced here, it might be an environment specific issue (I'm using Win2003 x64). I'll be trying to set up the same stuff in XP, just in case Best regards, Tamas 2009/6/22 stela anders stelaand...@gmail.com ok... I´m waiting for the news :p Thanks 2009/6/18 Tamas Szekeres szeker...@gmail.com Hi, I've set it up (Win2003) but didn't crash, though I get blank images in cgi mode. http://vbkto.dyndns.org:1280/cgi-bin4/mapserv.exe?map=E :\tests\TestCGI\map.mapmode=map shp2img produces correct image however. I'm a bit uncertain whether the 2 problems are the same but I'll look into this one in more detail shortly. Tamas 2009/6/18 stela anders stelaand...@gmail.com Hi guys! I got that binary now : http://vbkto.dyndns.org:1280/sdk/release-1500-gdal-mapserver.zip Same error Tamas... System : Windows XP / IIS 5.1 Using Postgis as datasourse... I made a package with : - Mapfile - Postgis data - Html You only need OL js to tryout... Or you can try typing : http://localhost/cgi-binx/mapserv.exe?map=map.map The error is : CGI Error The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are: --- Using version 5.2.2 all works fine... Stela 2009/6/18 Tamas Szekeres szeker...@gmail.com Hi, Some of the guys reported issues with mapserver 5.4+ in normal CGI mode (FastCGI was reported ok) but I couldn't reproduce it myself so it would be helpful if someone could describe the steps (and provide mapfiles/sample data) to check it out. You could also test with the binaries provided from here which appears to be working ok. http://vbkto.dyndns.org:1280/sdk/Default.aspx Best regards, Tamas 2009/6/18 stela anders stelaand...@gmail.com Hey guys ! That´s my first message here... (I´m from Argentina, sorry about my bad English) Is there any bug on Mapserver 5.4 CGI ? We have a full application using Mapserver 5.2 CGI on Windowns 2003/IIS ... We tried to update to newest version 5.4 and got a CGI error ... Is there any FAQ to upgrade ? Or maybe is it a bug? Stela ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Mapserver CGI 5.4 crashed my app (Windows 2003)
I think It´s not the case... I tested in Windows 2003/IIS 6.0 (x86) and got same problem... Stella 2009/6/22 Tamas Szekeres szeker...@gmail.com I had to replace the 'STATUS ON' with 'STATUS DEFAULT' in the mapfile to make it work. Here is the result: http://vbkto.dyndns.org:1280/cgi-bin4/mapserv.exe?map=E :\tests\TestCGI\map.mapmode=map But it seems the original problem couldn't be reproduced here, it might be an environment specific issue (I'm using Win2003 x64). I'll be trying to set up the same stuff in XP, just in case Best regards, Tamas 2009/6/22 stela anders stelaand...@gmail.com ok... I´m waiting for the news :p Thanks 2009/6/18 Tamas Szekeres szeker...@gmail.com Hi, I've set it up (Win2003) but didn't crash, though I get blank images in cgi mode. http://vbkto.dyndns.org:1280/cgi-bin4/mapserv.exe?map=E :\tests\TestCGI\map.mapmode=map shp2img produces correct image however. I'm a bit uncertain whether the 2 problems are the same but I'll look into this one in more detail shortly. Tamas 2009/6/18 stela anders stelaand...@gmail.com Hi guys! I got that binary now : http://vbkto.dyndns.org:1280/sdk/release-1500-gdal-mapserver.zip Same error Tamas... System : Windows XP / IIS 5.1 Using Postgis as datasourse... I made a package with : - Mapfile - Postgis data - Html You only need OL js to tryout... Or you can try typing : http://localhost/cgi-binx/mapserv.exe?map=map.map The error is : CGI Error The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are: --- Using version 5.2.2 all works fine... Stela 2009/6/18 Tamas Szekeres szeker...@gmail.com Hi, Some of the guys reported issues with mapserver 5.4+ in normal CGI mode (FastCGI was reported ok) but I couldn't reproduce it myself so it would be helpful if someone could describe the steps (and provide mapfiles/sample data) to check it out. You could also test with the binaries provided from here which appears to be working ok. http://vbkto.dyndns.org:1280/sdk/Default.aspx Best regards, Tamas 2009/6/18 stela anders stelaand...@gmail.com Hey guys ! That´s my first message here... (I´m from Argentina, sorry about my bad English) Is there any bug on Mapserver 5.4 CGI ? We have a full application using Mapserver 5.2 CGI on Windowns 2003/IIS ... We tried to update to newest version 5.4 and got a CGI error ... Is there any FAQ to upgrade ? Or maybe is it a bug? Stela ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Mapserver CGI 5.4 crashed my app (Windows 2003)
Could you post a log of a single request monitored with SysInternals filemon (and setting up a filter to mapserv.exe). I'd be curious to know which files are accessed by mapserv.exe during a request on your system. Best regards, Tamas 2009/6/22 stela anders stelaand...@gmail.com I think It´s not the case... I tested in Windows 2003/IIS 6.0 (x86) and got same problem... Stella 2009/6/22 Tamas Szekeres szeker...@gmail.com I had to replace the 'STATUS ON' with 'STATUS DEFAULT' in the mapfile to make it work. Here is the result: http://vbkto.dyndns.org:1280/cgi-bin4/mapserv.exe?map=E :\tests\TestCGI\map.mapmode=map But it seems the original problem couldn't be reproduced here, it might be an environment specific issue (I'm using Win2003 x64). I'll be trying to set up the same stuff in XP, just in case Best regards, Tamas 2009/6/22 stela anders stelaand...@gmail.com ok... I´m waiting for the news :p Thanks 2009/6/18 Tamas Szekeres szeker...@gmail.com Hi, I've set it up (Win2003) but didn't crash, though I get blank images in cgi mode. http://vbkto.dyndns.org:1280/cgi-bin4/mapserv.exe?map=E :\tests\TestCGI\map.mapmode=map shp2img produces correct image however. I'm a bit uncertain whether the 2 problems are the same but I'll look into this one in more detail shortly. Tamas 2009/6/18 stela anders stelaand...@gmail.com Hi guys! I got that binary now : http://vbkto.dyndns.org:1280/sdk/release-1500-gdal-mapserver.zip Same error Tamas... System : Windows XP / IIS 5.1 Using Postgis as datasourse... I made a package with : - Mapfile - Postgis data - Html You only need OL js to tryout... Or you can try typing : http://localhost/cgi-binx/mapserv.exe?map=map.map The error is : CGI Error The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are: --- Using version 5.2.2 all works fine... Stela 2009/6/18 Tamas Szekeres szeker...@gmail.com Hi, Some of the guys reported issues with mapserver 5.4+ in normal CGI mode (FastCGI was reported ok) but I couldn't reproduce it myself so it would be helpful if someone could describe the steps (and provide mapfiles/sample data) to check it out. You could also test with the binaries provided from here which appears to be working ok. http://vbkto.dyndns.org:1280/sdk/Default.aspx Best regards, Tamas 2009/6/18 stela anders stelaand...@gmail.com Hey guys ! That´s my first message here... (I´m from Argentina, sorry about my bad English) Is there any bug on Mapserver 5.4 CGI ? We have a full application using Mapserver 5.2 CGI on Windowns 2003/IIS ... We tried to update to newest version 5.4 and got a CGI error ... Is there any FAQ to upgrade ? Or maybe is it a bug? Stela ___ 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] Compiling mapserver with custom libtiff and libgeotiff
Good day all, Os: Ubuntu 8.04 I need bigtiff support in mapserver (default version in ubuntu 8.04 does not offer this). Steps: #libtiff make sudo make install #libgeotiff ./configure --with-ld-shared=gcc -shared make sudo make install #mapserver ./configure \ --prefix=/usr \ --with-pdf \ --with-freetype \ --with-agg \ --with-eppl \ --with-proj \ --with-threads \ --with-sde \ --with-geos \ --with-ogr \ --with-gdal \ --with-tiff=/usr/local \ --with-postgis \ --with-wfs \ --with-wcs \ --with-wmsclient \ --with-wfsclient \ --with-sos \ --with-fribidi-config \ --with-php=/usr/include/php5 \ --with-httpd=/usr/sbin/apache2 \ --with-gd make Error (on mapserver make) gcc -c -O2 -fPIC -Wall -DNEED_NONBLOCKING_STDERR -DHAVE_VSNPRINTF -DNEED_STRLCAT -DNEED_STRRSTR -DNEED_NONBLOCKING_STDERR -DUSE_WMS_LYR -DUSE_WFS_LYR -DUSE_SOS_SVR -DUSE_LIBXML2 -DUSE_CURL -DUSE_WCS_SVR -DUSE_WFS_SVR -DUSE_WMS_SVR-DUSE_POSTGIS -DUSE_TIFF -DUSE_GDAL -DUSE_OGR -DUSE_GEOS -DUSE_THREAD -DUSE_PROJ -DUSE_EPPL -DUSE_AGG -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 -DUSE_ICONV -DUSE_ZLIB -I/usr/include -I/usr/include/agg2 -I/usr/include/freetype2 -I/usr/local/include -I/usr/include/gdal -I/usr/include/postgresql -I/usr/include -I/usr/include/libxml2 mapraster.c -o mapraster.o mapraster.c: In function ‘readGEOTiff’: mapraster.c:444: error: ‘TIFFDirEntry’ undeclared (first use in this function) mapraster.c:444: error: (Each undeclared identifier is reported only once mapraster.c:444: error: for each function it appears in.) mapraster.c:444: error: expected ‘;’ before ‘tdir’ mapraster.c:453: warning: pointer targets in passing argument 1 of ‘TIFFSwabShort’ differ in signedness mapraster.c:456: error: ‘tdir’ undeclared (first use in this function) make: *** [mapraster.o] Error 1 Without --with-tiff=/usr/local compiles fine. Any help would be appreciated. -- http://iap.md, The future is open ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
RE: [mapserver-users] tilecache_clean.py cleaning more than expected
Hi, I've sent it two times to tileca...@openlayers.org a few days ago, but it seems to never reached that mailing list... Nelson Date: Mon, 22 Jun 2009 09:18:55 -0400 To: nelson...@hotmail.com CC: mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] tilecache_clean.py cleaning more than expected From: crschm...@metacarta.com On Mon, Jun 22, 2009 at 08:30:40AM +, Nelson Correia wrote: Hi all, I?m trying to keep my disk usage to about 500MB, but apparently tilecache_clean is freeing more space than what I?ve requested: # du -s -h /data/TILES 782M /data/TILES # python /apps/tilecache2.10/tilecache_clean.py -s 500 /data/TILES Cache entries found: 13040 Removed 12644 files. # du -s -h /data/TILES 73M /data/TILES Anyone knows why is this happening? Please send this message to the tilecache mailing list. Regards, -- Christopher Schmidt MetaCarta _ More than messages–check out the rest of the Windows Live™. http://www.microsoft.com/windows/windowslive/___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Compiling mapserver with custom libtiff and libgeotiff
Pavel Iacovlev wrote: Good day all, Os: Ubuntu 8.04 I need bigtiff support in mapserver (default version in ubuntu 8.04 does not offer this). ... Without --with-tiff=/usr/local compiles fine. Any help would be appreciated. Pavel, The built-in tiff support in mapserver does not appear to work with the latest tiff library and it is not well maintained. Normally you should build GDAL with libtiff4 to get bigtiff support. The internal libtiff in GDAL includes this so building it --with-libtiff=internal --with-libgeotiff=internal should do the trick. Then you will need to rebuild MapServer to use your new local GDAL build. Best regards, -- ---+-- I set the clouds in motion - turn up | Frank Warmerdam, warmer...@pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush| Geospatial Programmer for Rent ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] clipping symbols at tile boundary?
Thanks. The gutter parameter seems to fix the symbols, and the symbol labels, but the labels on lines are still chopped. The labelcache_map_edge_buffer didn't seem to work. For now I'll just use 'singleTile: true', and take the (non-tiled) performance hit. On Mon, Jun 22, 2009 at 07:27:02AM -0400, Christy Nieman wrote: Hi, You can put labelcache_map_edge_buffer -10 in the WEB block metadata. This will ensure that no labels are drawn within 10 pixels of a tile boundary (you can change the value to increase or decrease the buffer zone) E.g.: MAP ... WEB METADATA labelcache_map_edge_buffer -10 END ... END ... END Christy BrainDrain wrote: OL gutter helps with symbols but breaks labels. PARTIALS false doesn't help in this case. I didn't find solution how to avoid breaking labels while using gutter. I suppose the only one is to turn off gutter (prebuild OL map clone with no gutter) on scales when symbols are turned off (if symbols are visible in large scales then labels uses large font size and gutter works fine with labels). Aaron Racicot wrote: Wendell, Look at 'gutter' in OpenLayers. It will allow you to get tiles slightly larger from your Mapserver WMS to get rid of some of the artifacts: http://dev.openlayers.org/docs/files/OpenLayers/Layer-js.html#OpenLayers.Lay er.gutter Hope that helps... Aaron -- Aaron Racicot Z-Pulley Inc. -Original Message- From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Wendell Turner Sent: Thursday, June 18, 2009 4:59 PM To: mapserver-users@lists.osgeo.org Subject: [mapserver-users] clipping symbols at tile boundary? (this must be basic, but here goes anyway...) I'm using Mapserver 5.2 with OpenLayers 2.7. I have a vector mapserver layer with point objects (shown with circle symbols) on it. The vector layer referenced via OpenLayers.Layer.WMS and is tiled. The circles are displayed in the tile that the center is on, but not the adjacent tiles. That is, if a circle is near the edge, part of the circle is chopped off. Is that what 'BUFFER 10' fixes? What about 'PARTIALS FALSE'? That seems to be just for labels, but that only shows the label when it completely lies within the tile. Do I need to turn off tiling completely? Thanks, Wendell ___ 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 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Querying map using CGI ...
Hello guys, I pretty lost with CGI... Using mapscript, I can get query results with functions queryByPoint and queryByRect... How can I do that in CGI mode? Thanks Paul ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Mapserver CGI 5.4 crashed my app (Windows 2003)
Stela, By using my latest binaries I've found that mapserv.exe is hanging right after returning the image to the browser. This problem is possibly caused by some breaking changes in geos 3-1, since geos 3-0 seems to be working correctly. Would you test your application by using geos 3-0? I'd be curious to know whether this problem is the same as yours, or not. If you can't compile geos-3-0 then here is the dll compiled with MSVC2008. http://vbkto.dyndns.org:1280/tests/geos_c.zip Best regards, Tamas ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Mapserver 5.4.1 for MS4W??
Problem resolved. This was a weird one in my book. I turns out that the mapfile got corrupted somehow. The mapfile was good on my linux system it was zipped up and sent to the windows system. We had to edit the SHAPEPATH, FONTSET and SYMBOLSET values in wordpad. Somewhere along the line 5 random characters in the mapfile got corrupted. Below is the good mapfile from my linux system that worked. On the windows version the SIZE 12 got changed to SIZE ?2 Any after spending all day transferring my build stuff to the windows server and getting it to build there I finally got a working mapserv.exe based on 5.4.1 and it generated the same error below. Since I was logged into the Windows box, I was decided to edit the mapfile to work around the problem, and noticed the corrupted line. Fixed it and reran the test ... four more times fixing additional corrupt lines and it finally worked, 5 minutes before the box had to be powered down and moved to the coloc center. So I didn't get a change to retest with ms4w and mapserver-5.4.0-RC2 with the repaired mapfile and won't have a chance before next week sometime if I can get access then. So on a side note, I have some questions about building stuff on windows if anyone with knowledge would like to contact me off list, I would appreciate the chance for a few questions. Thanks, -Steve Stephen Woodbridge wrote: Thomas Bonfort wrote: loadLabel(): Unknown identifier. Parsing error near (2):(line 407) Which I believe is because Thomas added some rendering features that I'm using after 5.4.0-RC2. what's on line 407 in your mapfile? I don't think there are any keywords I added since the 5.4 release process started. -- thomas Thomas, CLASS EXPRESSION /C/ MAXSCALEDENOM 50100 STYLE WIDTH 14 OUTLINECOLOR #B7AC9A OUTLINEWIDTH 1 MINWIDTH 1.5 MAXWIDTH 12 END STYLE WIDTH 14 COLOR #bc MINWIDTH 1.5 MAXWIDTH 12 END LABEL MAXSCALEDENOM 3 TYPE TRUETYPE FONT arial SIZE 12 COLOR #00 PARTIALS FALSE OUTLINEWIDTH 3 Line: 407 ANGLE FOLLOW OUTLINECOLOR #bc PRIORITY 3 MINSIZE 7 MAXSIZE 10 MINDISTANCE 200 MINFEATURESIZE 20 END END I was thinking the OUTLINEWIDTH and OUTLINECOLOR were new, but I could be mistaken. I'm not sure when these were added, anyway the above works fine in Linux and only through this error when I moved stuff over to Windows. I have just build my own mapserver using VS2008 Express based on 4.5.1 and I'm waiting for the client to download that and test it. I'll also move the data and applications over to my Windows box and try to reproduce in my own environment if I have time this weekend. -Steve ___ 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