[mapserver-users] Using applySLD and generateSLD with Mapscript Python
Hi list, I'm playing with mapscript python and SLD files, and having some kinds of troubles. It seems that applySLD doesn't build an EXPRESSION tag for the CLASS it refers too. Starting from a mapfile with CLASS and EXPRESSION set, the SLD body generated is correct : Rule NameVELOV/Name ogc:Filterogc:PropertyIsGreaterThanOrEqualToogc:PropertyNamenbbornettes/ogc:PropertyNameogc:Literal20/ogc:Literal/ogc:PropertyIsGreaterThanOrEqualTo/ogc:Filter PointSymbolizer Graphic Mark WellKnownNamesquare/WellKnownName Fill CssParameter name=fill#993300/CssParameter /Fill /Mark Size8/Size /Graphic /PointSymbolizer /Rule but applying this same SLD file to the mapfile via mapscript gives only a FILTER set: FILTER (nbbornettes= 20) ... CLASS NAME VELOV STYLE ANGLE 0 COLOR 153 51 0 OFFSET 0 0 SIZE 8 SYMBOL sld_mark_symbol_square_filled END # STYLE END # CLASS The matching between SLd Filters and Classes has been lost. It means that you can't build any SLD file with more than one class/filter and see them drawn on the map. I 'm using mapscript 6.0.1 Thanks for any clue Best regards Guillaume ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Re: Reloading MapCache configuration file on changes?
AFAIK, this isn't possible. Inside an apache module, the configuration is considered read-only as it is shared between multiple worker threads/processed spawned by httpd. apachectl configtest apachectl graceful will restart the server gracefully, i.e. without aborting ongoing requests, and will load the new configuration for subsequent requests. -- thomas On Mon, Dec 5, 2011 at 23:37, John Taranu jtar...@firstbasesolutions.com wrote: Thomas, Is there a better way force MapCache to reload its configuration script than restarting apache? I’m working on an application that will use two load-balanced web servers running MapCache, all pointing to a single central tile repository and a single central .xml configuration file. The configuration file will occasionally be edited, either with deletions or additional tilesets. Both web servers need to reload the updated configuration .xml. Is it possible to set up MapCache to check if the config file was recently updated and, if so, reload the config .xml? It looks like this is currently enabled under FastCGI, but not under Apache. John ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] PostGIS+Mapserver: i can't string points ST_MakeLine
Hi I have a problem: *Given:* A table in PostgreSQL, it fields gid, id, the_geom (point) ... records in a table about 200 000 *Objective:* to bring the two layers, one simply points in the second to connect the dots in a line The first layer to the output points works well here it is: But the second layer in which I try to connect the dots in a line, persistently displays the error in the query: error: Please help edit the query -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/PostGIS-Mapserver-i-can-t-string-points-ST-MakeLine-tp7066874p7066874.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] mapcache_seed segmentation fault.
Hi guys: I'm having trouble with mapcache_seed I get a segmentation fault, it appears to happen at line 626 http://trac.osgeo.org/mapserver/browser/trunk/mapserver/mapcache/src/mapcache_seed.c#L626 Warning messages from the compile process: mapcache_seed.c: In function 'cmd_recurse': mapcache_seed.c:337: warning: unused variable 'j' mapcache_seed.c:337: warning: unused variable 'i' mapcache_seed.c: In function 'seed_thread': mapcache_seed.c:511: warning: dereferencing type-punned pointer will break strict-aliasing rules mapcache_seed.c: In function 'main': mapcache_seed.c:626: warning: assignment makes integer from pointer without a cast mapcache_seed.c:626: warning: value computed is not used mapcache_seed.c:626: warning: assignment makes integer from pointer without a cast mapcache_seed.c:626: warning: value computed is not used mapcache_seed.c:626: warning: value computed is not used mapcache_seed.c:626: warning: 'dimvalue' is used uninitialized in this function mapcache_seed.c:626: warning: 'optargcpy' is used uninitialized in this function If I put some fprintf statements around line 626, I only get the first one: fprintf(stderr,FOO\n); dimkey = NULL,*dimvalue = NULL,*key,*last,*optargcpy = NULL; fprintf(stderr,BAR\n); prints out: $ ./src/mapcache_seed FOO Segmentation fault Am I missing something? Thanks, Jerl -- A computer without Windows is like chocolate cake without mustard. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] mapcache_seed segmentation fault.
fixed. On Tue, Dec 6, 2011 at 15:41, forums for...@craniumjuice.com wrote: Hi guys: I'm having trouble with mapcache_seed I get a segmentation fault, it appears to happen at line 626 http://trac.osgeo.org/mapserver/browser/trunk/mapserver/mapcache/src/mapcache_seed.c#L626 Warning messages from the compile process: mapcache_seed.c: In function 'cmd_recurse': mapcache_seed.c:337: warning: unused variable 'j' mapcache_seed.c:337: warning: unused variable 'i' mapcache_seed.c: In function 'seed_thread': mapcache_seed.c:511: warning: dereferencing type-punned pointer will break strict-aliasing rules mapcache_seed.c: In function 'main': mapcache_seed.c:626: warning: assignment makes integer from pointer without a cast mapcache_seed.c:626: warning: value computed is not used mapcache_seed.c:626: warning: assignment makes integer from pointer without a cast mapcache_seed.c:626: warning: value computed is not used mapcache_seed.c:626: warning: value computed is not used mapcache_seed.c:626: warning: 'dimvalue' is used uninitialized in this function mapcache_seed.c:626: warning: 'optargcpy' is used uninitialized in this function If I put some fprintf statements around line 626, I only get the first one: fprintf(stderr,FOO\n); dimkey = NULL,*dimvalue = NULL,*key,*last,*optargcpy = NULL; fprintf(stderr,BAR\n); prints out: $ ./src/mapcache_seed FOO Segmentation fault Am I missing something? Thanks, Jerl -- A computer without Windows is like chocolate cake without mustard. ___ 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] mapcache_seed segmentation fault.
Thank you!! On Tue, Dec 6, 2011 at 8:45 AM, thomas bonfort thomas.bonf...@gmail.comwrote: fixed. On Tue, Dec 6, 2011 at 15:41, forums for...@craniumjuice.com wrote: Hi guys: I'm having trouble with mapcache_seed I get a segmentation fault, it appears to happen at line 626 http://trac.osgeo.org/mapserver/browser/trunk/mapserver/mapcache/src/mapcache_seed.c#L626 Warning messages from the compile process: mapcache_seed.c: In function 'cmd_recurse': mapcache_seed.c:337: warning: unused variable 'j' mapcache_seed.c:337: warning: unused variable 'i' mapcache_seed.c: In function 'seed_thread': mapcache_seed.c:511: warning: dereferencing type-punned pointer will break strict-aliasing rules mapcache_seed.c: In function 'main': mapcache_seed.c:626: warning: assignment makes integer from pointer without a cast mapcache_seed.c:626: warning: value computed is not used mapcache_seed.c:626: warning: assignment makes integer from pointer without a cast mapcache_seed.c:626: warning: value computed is not used mapcache_seed.c:626: warning: value computed is not used mapcache_seed.c:626: warning: 'dimvalue' is used uninitialized in this function mapcache_seed.c:626: warning: 'optargcpy' is used uninitialized in this function If I put some fprintf statements around line 626, I only get the first one: fprintf(stderr,FOO\n); dimkey = NULL,*dimvalue = NULL,*key,*last,*optargcpy = NULL; fprintf(stderr,BAR\n); prints out: $ ./src/mapcache_seed FOO Segmentation fault Am I missing something? Thanks, Jerl -- A computer without Windows is like chocolate cake without mustard. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- A computer without Windows is like chocolate cake without mustard. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Re: PostGIS+Mapserver: i can't string points ST_MakeLine
Tried advanced query is returned in the error and run it in the database manager, received the same storage error why he does not like the code in this place http://osgeo-org.1803224.n2.nabble.com/file/n7067254/ZqLNQfjV00GcMnzFoL58A.jpg -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/PostGIS-Mapserver-i-can-t-string-points-ST-MakeLine-tp7066874p7067254.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] Using applySLD and generateSLD with Mapscript Python
Actually, this only happens for POSTGIS layers and not for SHAPEFILE layers, and only with MapServer 6. I have filled a ticket. Best Guillaume Le 06/12/11 10:54, Guillaume Sueur a écrit : Hi list, I'm playing with mapscript python and SLD files, and having some kinds of troubles. It seems that applySLD doesn't build an EXPRESSION tag for the CLASS it refers too. Starting from a mapfile with CLASS and EXPRESSION set, the SLD body generated is correct : Rule NameVELOV/Name ogc:Filterogc:PropertyIsGreaterThanOrEqualToogc:PropertyNamenbbornettes/ogc:PropertyNameogc:Literal20/ogc:Literal/ogc:PropertyIsGreaterThanOrEqualTo/ogc:Filter PointSymbolizer Graphic Mark WellKnownNamesquare/WellKnownName Fill CssParameter name=fill#993300/CssParameter /Fill /Mark Size8/Size /Graphic /PointSymbolizer /Rule but applying this same SLD file to the mapfile via mapscript gives only a FILTER set: FILTER (nbbornettes= 20) ... CLASS NAME VELOV STYLE ANGLE 0 COLOR 153 51 0 OFFSET 0 0 SIZE 8 SYMBOL sld_mark_symbol_square_filled END # STYLE END # CLASS The matching between SLd Filters and Classes has been lost. It means that you can't build any SLD file with more than one class/filter and see them drawn on the map. I 'm using mapscript 6.0.1 Thanks for any clue Best regards Guillaume ___ 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: PostGIS+Mapserver: i can't string points ST_MakeLine
From your online picture I can't see any instructions on how to manage the points etc: have you seen this post - it works for me every time! http://www.bostongis.com/postgis_makeline.snippet cheers Ben On 07/12/2011, at 1:00 AM, mapserver-users-requ...@lists.osgeo.org wrote: From: Koba powerslave...@gmail.com Date: 6 December 2011 11:49:59 PM AWST To: mapserver-users@lists.osgeo.org Subject: [mapserver-users] Re: PostGIS+Mapserver: i can't string points ST_MakeLine Tried advanced query is returned in the error and run it in the database manager, received the same storage error why he does not like the code in this place http://osgeo-org.1803224.n2.nabble.com/file/n7067254/ZqLNQfjV00GcMnzFoL58A.jpg -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/PostGIS-Mapserver-i-can-t-string-points-ST-MakeLine-tp7066874p7067254.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