Re: [mapserver-users] WMS LAYERS parameter - problems with the order
Hi, ok, this setting solved my problem. Thank you very much! Best regards, Daniel Am 30/11/2011 09:54, schrieb Jana Golinowski: I think this one is causing your problem: POSTLABELCACHE TRUE According to the docs MapServer is acting correctly: "Tells MapServer to render this layer after all labels in the cache have been drawn." Your point layer contains labels. So your polygon layer will always be drawn afterwards. Greetings, Jana. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- *Daniel Degasperi* *R3 GIS* Srl - GmbH Via Johann Kravogl-Str. 2 I-39012 Meran/Merano (BZ) web: www.r3-gis.com <http://www.r3-gis.com/> Email: daniel.degasp...@r3-gis.com <mailto:daniel.degasp...@r3-gis.com> Tel. : +39 0473 494949 Fax : +39 0473 069902 *ATTENZIONE!* Le informazioni contenute nella presente e-mail e nei documenti eventualmente allegati sono confidenziali. La loro diffusione, distribuzione e/o riproduzione da parte di terzi, senza autorizzazione del mittente è vietata e può violare il D. Lgs. 196/2003. In caso di ricezione per errore, Vogliate immediatamente informare il mittente del messaggio e distruggere la e-mail. *ACHTUNG!* Die in dieser Nachricht oder in den beigelegten Dokumenten beinhalteten Informationen sind streng vertraulich. Ihre Verbreitung und/oder ihre Wiedergabe durch Dritte ist ohne Erlaubnis des Absenders verboten und verstößt gegen das Legislativdekret 196/2003. Sollten Sie diese Mitteilung irrtümlicherweise erhalten haben, bitten wir Sie uns umgehend zu informieren und anschließend die Mitteilung zu vernichten. *WARNING!* This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorised copying, disclousure or distribution of the material in this e-mail is strictly forbidden and could be against the law (D. Lgs. 196/2003) ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] WMS LAYERS parameter - problems with the order
Hi, I have read the thread about STATUS DEFAULTand tried alreadywithSTATUS ON, but it's the same result as before. I'm using following layer blocks: LAYER GROUP "g_05" NAME "g_05.s2" TYPE POLYGON STATUS ON METADATA "wms_group_title" "g_05" "ows_title""polygon_layer" END PROJECTION "init=epsg:26591" END CONNECTIONTYPE POSTGIS CONNECTION "user=foo password=foo dbname=foo host=localhost port=5432" DATA "the_geom FROM (SELECT * FROM geo.s2_data) AS foo USING UNIQUE objectid USING SRID=26591" FILTER "code_ts = '05'" PROCESSING "CLOSE_CONNECTION=DEFER" DUMP TRUE SIZEUNITS pixels MAXSCALEDENOM 11000 OPACITY 80 POSTLABELCACHE TRUE CLASS NAME "polygon_class" TITLE "polygon_layer" STYLE COLOR 0 0 0 OUTLINECOLOR 0 0 0 END END END LAYER GROUP "g_play_label" NAME "g_play_label.play_label" TYPE POINT STATUS ON METADATA "wms_group_title" "g_play_label" "ows_title""point_layer" END PROJECTION "init=epsg:26591" END CONNECTIONTYPE POSTGIS CONNECTION "user=foo password=foo dbname=foo host=localhost port=5432" DATA "the_geom FROM (SELECT * FROM play.play) AS foo USING UNIQUE pl_id USING SRID=26591" FILTER "pl_date_end >= now() or pl_date_end is null" PROCESSING "CLOSE_CONNECTION=DEFER" DUMP TRUE SIZEUNITS pixels MAXSCALEDENOM 3000 LABELITEM "pl_code" CLASS NAME "simple_label" TITLE "simple_label" EXPRESSION ([pc_id] eq 8) LABEL TYPE TRUETYPE PARTIALS TRUE FONT "dejavu-sans-bold" COLOR 255 150 0 OUTLINECOLOR 80 0 0 SIZE 8 MINSIZE 8 MAXSIZE 8 POSITION UR FORCE TRUE OFFSET 5 0 END STYLE COLOR 80 0 0 SYMBOL "SQUARE" SIZE 8 MINSIZE 8 MAXSIZE 8 ANGLE 45 WIDTH 8 MINWIDTH 8 END STYLE COLOR 255 150 0 SYMBOL "SQUARE" SIZE 6 MINSIZE 6 MAXSIZE 6 ANGLE 45 WIDTH 6 MINWIDTH 6 END END CLASS NAME "complex_label" TITLE "complex_label" LABEL TYPE TRUETYPE PARTIALS TRUE FONT "dejavu-sans-bold" COLOR 255 50 0 OUTLINECOLOR 80 0 0 SIZE 8 MINSIZE 8 MAXSIZE 8 POSITION UR FORCE TRUE OFFSET 5 0 END STYLE COLOR 80 0 0 SYMBOL "SQUARE" SIZE 8 MINSIZE 8 MAXSIZE 8 ANGLE 45 WIDTH 8 MINWIDTH 8 END STYLE COLOR 255 150 0 SYMBOL "SQUARE" SIZE 6 MINSIZE 6 MAXSIZE 6 ANGLE 45 WIDTH 6 MINWIDTH 6 END END END Daniel Am 29/11/2011 22:02, schrieb Rahkonen Jukka: Hi, Both systems should work. First layer in the mapfile is rendered first so it goes on the bottom and the same should happen with WMS layers. A few weeks ago we learned that layers set to STATUS DEFAULT do not respect any other rules and they are always rendered first. Do you have such ones? If yes, try turning them into STATUS ON. If that does not have an effect please mail us the whole layer blocks for those two. You should be able to see that layer order does have an effect by sending the following GetMaps with a browser. http://188.64.1.61/cgi-bin/osm-mapserver_i?REQUEST=GetMap&SERVICE=WMS&VERSION=1.1.1&WIDTH=659&HEIGHT=534&LAYERS=default,POI_pub_restaurant&TRANSPARENT=TRUE&FORMAT=image/png&BBOX=227718.18080836372,7007391.918564562,229420.66496860533,7008771.473255865&SRS=EPSG:3067&STYLES= http://188.64.1.61/cgi-bin/osm-mapserver_i?REQUEST=GetMap&SERVICE=WMS&VERSION=1.1.1&WIDTH=659&HEIGHT=534&LAYERS=POI_pub_restaurant,default&TRANSPARENT=TRUE&FORMAT=image/png&BBOX=227718.18080836372,7007391.918564562,229420.66496860533,7008771.473255865&SRS=EPSG:3067&STYLES= -Jukka Rahkonen- Daniel Degasperi wrote: Hi, I've tried several combinations of the order of my LAYERS in the WMS request. - changed the or
[mapserver-users] WMS LAYERS parameter - problems with the order
Hi, I've tried several combinations of the order of my LAYERS in the WMS request. - changed the order in LAYERS parameter - changed the order in the mapfile but still, the polygon layer is drawn at the top of my map and the point layer at the bottom. I've tried the request with MapServer 5.6.7 and MapServer 6.0.1; WMS 1.1.1 & WMS 1.3.0. Requests: [1] /cgi-bin/mapserv6?map=map-ms6.map&EXCEPTIONS=inimage&FORMAT=image/png&TRANSPARENT=false&LAYERS=g_05.s2,g_play_label.play_label&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&SRS=EPSG%3A26591&BBOX=1515109.311936,506.8146348,1515261.7333042,5033476.4274846&WIDTH=1428&HEIGHT=1308 [2] /cgi-bin/mapserv6?map=map-ms6.map&EXCEPTIONS=inimage&FORMAT=image/png&TRANSPARENT=false&LAYERS=g_play_label.play_label,g_05.s2&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&SRS=EPSG%3A26591&BBOX=1515109.311936,506.8146348,1515261.7333042,5033476.4274846&WIDTH=1428&HEIGHT=1308 For each request I've got the same output, see screenshot. Am I doing something wrong? Best regards, Daniel -- Daniel Degasperi R3 GIS Srl - GmbH www.r3-gis.com <>___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] mapscript generateSLD
Hi, with the function generateSLD no custom symbol next to the WellKnown ones(square, circle, triangle, star, cross, x) are exported, so I thought that they are not supported. Then I've found this ticket http://trac.osgeo.org/mapserver/ticket/1789 In my opinion, the function generateSLD should export the SLD with the custom symbol, because it is not clear why the generated SLD file is displayed differently. Perhaps the documentation should be updated as well and explain this important "feature" support. Best regards, Daniel -- Daniel Degasperi R3 GIS Srl - GmbH www.r3-gis.com ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] SLD with filter
Ok, ticket (with test data) created at http://trac.osgeo.org/mapserver/ticket/3902 Am 31/05/2011 19:35, schrieb Yewondwossen Assefa: 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: http://www.opengis.net/ogc";> localita 1.102 Output: 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";> msWFSGetFeature(): 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 && 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) ) 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 -- Daniel Degasperi R3 GIS Srl - GmbH www.r3-gis.com ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] SLD with filter
Could you please use a different subject. This is totally offtopic with the current problem. Am 31/05/2011 16:54, schrieb Virginia Maffei: Hi, i'm new at this and i'm trying to connect to postgis raster in the mapfile. I loaded a tif file into postgis raster database. It created a table with 2 fields. In the mapfile i added the connection like it specifies in the postgis raster FAQ but it doesnt displays a thing: LAYER NAME coolwktraster TYPE raster STATUS ON DATA "PG:host=localhost port=5432 dbname='somedb' user='someuser' password='whatever' schema='someschema' table='cooltable' mode='2'" PROCESSING "NODATA=0" PROCESSING "SCALE=AUTO" #... other standard raster processing functions here #... classes are optional but useful for 1 band data CLASS NAME "boring" EXPRESSION ([pixel]< 20) COLOR 250 250 250 END CLASS NAME "mildly interesting" EXPRESSION ([pixel]> 20 AND [pixel]< 1000) COLOR 255 0 0 END CLASS NAME "very interesting" EXPRESSION ([pixel]>= 1000) COLOR 0 255 0 END END the mode=2 i deleted it because its for other postgis version, i have postgis 1.5.2. Could you help me with this? Could someone connect with success? Thank you! Viriginia _______ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Daniel Degasperi R3 GIS Srl - GmbH www.r3-gis.com ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] SLD with filter
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: http://www.opengis.net/ogc";> localita 1.102 Output: 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";> msWFSGetFeature(): 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 && 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) ) 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 -- Daniel Degasperi R3 GIS Srl - GmbH www.r3-gis.com ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] SLD with filter
Hi, I've a problem with following filter: http://www.opengis.net/ogc";> localita 1.102 Output: 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";> msWFSGetFeature(): 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 && 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) ) 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 -- Daniel Degasperi R3 GIS Srl - GmbH www.r3-gis.com ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Floating point exception agg png
Ok, ticket created at http://trac.osgeo.org/mapserver/ticket/3760 and necessary files attached. Daniel Am 21/03/2011 15:03, schrieb thomas bonfort: Daniel, any chance you can create a ticket for that with a mapfile and sample data that reproduces it ? the png vs. jpeg should not intervene as at the point the error is occuring the code path has been nearly identical (i.e. no png or jpeg library calls have been made yet). thomas On Mon, Mar 21, 2011 at 14:47, Daniel Degasperi wrote: Hi, I'v encountered following problem with outputformat png (agg driver): shp2img -m /data/sites/R3-MTB-Public/sito/etc/goldart/mtb.map -l "ropeway" -e 667072.437052 5153904.693426 677867.431220 5164699.687594 -s 1224 1224 -o test-mtb.png -all_debug 1 (i got a FPE) The debugger backtrace gives me: Program received signal SIGFPE, Arithmetic exception. 0x004ba89e in mapserver::line_image_pattern ::pixel (this=0x7fffc940, p=0x7fffc43c, x=82, y=-757) at renderers/agg/include/agg_renderer_outline_image.h:173 173 m_filter->pixel_high_res(m_buf.rows(), (gdb) bt #0 0x004ba89e in mapserver::line_image_pattern ::pixel (this=0x7fffc940, p=0x7fffc43c, x=82, y=-757) at renderers/agg/include/agg_renderer_outline_image.h:173 #1 0x004ba8fb in mapserver::renderer_outline_image, mapserv_row_ptr_cache, int> >, mapserver::line_image_pattern ::pixel (this=0x7fffc9e0, p=0x7fffc43c, x=82, y=-757) at renderers/agg/include/agg_renderer_outline_image.h:860 #2 0x004bafba in mapserver::line_interpolator_image, mapserv_row_ptr_cache, int> >, mapserver::line_image_pattern ::step_hor (this=0x7fffc1c0) at renderers/agg/include/agg_renderer_outline_image.h:668 #3 0x004bb27f in mapserver::renderer_outline_image, mapserv_row_ptr_cache, int> >, mapserver::line_image_pattern ::line3_no_clip (this=0x7fffc9e0, lp=..., sx=105681, sy=155778, ex=101946, ey=147898) at renderers/agg/include/agg_renderer_outline_image.h:931 #4 0x004c99f9 in mapserver::renderer_outline_image, mapserv_row_ptr_cache, int> >, mapserver::line_image_pattern ::line3 (this=0x7fffc9e0, lp=..., sx=105681, sy=155778, ex=101946, ey=147898) at renderers/agg/include/agg_renderer_outline_image.h:992 #5 0x004cc5b9 in mapserver::rasterizer_outline_aa, mapserv_row_ptr_cache, int> >, mapserver::line_image_pattern , mapserver::line_coord_sat>::render (this=0x7fffc9a0, close_polygon=false) at renderers/agg/include/agg_rasterizer_outline_aa.h:540 #6 0x004cc9b5 in mapserver::rasterizer_outline_aa, mapserv_row_ptr_cache, int> >, mapserver::line_image_pattern , mapserver::line_coord_sat>::add_path ( this=0x7fffc9a0, vs=..., path_id=0) at renderers/agg/include/agg_rasterizer_outline_aa.h:177 #7 0x004cca3f in AGGMapserverRenderer::renderPathPixmapBGRA (this=0xf74350, line=..., pattern=...) at mapagg.cpp:392 #8 0x004cccea in AGGMapserverRenderer::renderPolylineVectorSymbol >, mapserver::null_markers> > (this=0xf74350, shape=..., symbol=..., tilewidth=0, tileheight=5, color=..., backgroundcolor=...) at mapagg.cpp:370 #9 0x004a9b21 in msDrawLineSymbolAGG(._98 *, ._105 *, ._39 *, ._91 *, double) (symbolset=0x822ae0, image=0x937b30, p=0x7fffd310, style=0x87e230, scalefactor=1.) at mapagg.cpp:1723 #10 0x0053d573 in msDrawLineSymbol (symbolset=0x822ae0, image=0x937b30, p=0x7fffd310, style=0x87e230, scalefactor=1.) at maprendering.c:488 #11 0x00485521 in msDrawShape (map=0x822ab0, layer=0x87c820, shape=0x7fffd310, image=0x937b30, style=0, querymapMode=0) at mapdraw.c:1962 #12 0x0047fe20 in msDrawVectorLayer (map=0x822ab0, layer=0x87c820, image=0x937b30) at mapdraw.c:1032 #13 0x0047f32e in msDrawLayer (map=0x822ab0, layer=0x87c820, image=0x937b30) at mapdraw.c:822 #14 0x0047e1e5 in msDrawMap (map=0x822ab0, querymap=0) at mapdraw.c:468 #15 0x00440b32 in main (argc=17, argv=0x7fffd848) at shp2img.c:292 When I switch to outputformat jpeg (agg driver) everything is fine. MapServer is 5.6.6 on 64bit CentOS 5.5 Best regards, Daniel -- Daniel Degasperi R3 GIS Srl - GmbH www.r3-gis.com ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Daniel Degasperi R3 GIS Srl - GmbH www.r3-gis.com ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Floating point exception agg png
Hi, I'v encountered following problem with outputformat png (agg driver): shp2img -m /data/sites/R3-MTB-Public/sito/etc/goldart/mtb.map -l "ropeway" -e 667072.437052 5153904.693426 677867.431220 5164699.687594 -s 1224 1224 -o test-mtb.png -all_debug 1 (i got a FPE) The debugger backtrace gives me: Program received signal SIGFPE, Arithmetic exception. 0x004ba89e in mapserver::line_image_pattern >::pixel (this=0x7fffc940, p=0x7fffc43c, x=82, y=-757) at renderers/agg/include/agg_renderer_outline_image.h:173 173 m_filter->pixel_high_res(m_buf.rows(), (gdb) bt #0 0x004ba89e in mapserver::line_image_pattern >::pixel (this=0x7fffc940, p=0x7fffc43c, x=82, y=-757) at renderers/agg/include/agg_renderer_outline_image.h:173 #1 0x004ba8fb in mapserver::renderer_outline_imagemapserver::order_bgra>, mapserv_row_ptr_cache, int> >, mapserver::line_image_pattern > >::pixel (this=0x7fffc9e0, p=0x7fffc43c, x=82, y=-757) at renderers/agg/include/agg_renderer_outline_image.h:860 #2 0x004bafba in mapserver::line_interpolator_imagemapserver::order_bgra>, mapserv_row_ptr_cache, int> >, mapserver::line_image_pattern > > >::step_hor (this=0x7fffc1c0) at renderers/agg/include/agg_renderer_outline_image.h:668 #3 0x004bb27f in mapserver::renderer_outline_imagemapserver::order_bgra>, mapserv_row_ptr_cache, int> >, mapserver::line_image_pattern > >::line3_no_clip (this=0x7fffc9e0, lp=..., sx=105681, sy=155778, ex=101946, ey=147898) at renderers/agg/include/agg_renderer_outline_image.h:931 #4 0x004c99f9 in mapserver::renderer_outline_imagemapserver::order_bgra>, mapserv_row_ptr_cache, int> >, mapserver::line_image_pattern > >::line3 (this=0x7fffc9e0, lp=..., sx=105681, sy=155778, ex=101946, ey=147898) at renderers/agg/include/agg_renderer_outline_image.h:992 #5 0x004cc5b9 in mapserver::rasterizer_outline_aamapserver::order_bgra>, mapserv_row_ptr_cache, int> >, mapserver::line_image_pattern > >, mapserver::line_coord_sat>::render (this=0x7fffc9a0, close_polygon=false) at renderers/agg/include/agg_rasterizer_outline_aa.h:540 #6 0x004cc9b5 in mapserver::rasterizer_outline_aamapserver::order_bgra>, mapserv_row_ptr_cache, int> >, mapserver::line_image_pattern > >, mapserver::line_coord_sat>::add_path ( this=0x7fffc9a0, vs=..., path_id=0) at renderers/agg/include/agg_rasterizer_outline_aa.h:177 #7 0x004cca3f in AGGMapserverRenderer::renderPathPixmapBGRA (this=0xf74350, line=..., pattern=...) at mapagg.cpp:392 #8 0x004cccea in AGGMapserverRenderer::renderPolylineVectorSymbolmapserver::conv_stroke8u, 256u> >, mapserver::null_markers> > (this=0xf74350, shape=..., symbol=..., tilewidth=0, tileheight=5, color=..., backgroundcolor=...) at mapagg.cpp:370 #9 0x004a9b21 in msDrawLineSymbolAGG(._98 *, ._105 *, ._39 *, ._91 *, double) (symbolset=0x822ae0, image=0x937b30, p=0x7fffd310, style=0x87e230, scalefactor=1.) at mapagg.cpp:1723 #10 0x0053d573 in msDrawLineSymbol (symbolset=0x822ae0, image=0x937b30, p=0x7fffd310, style=0x87e230, scalefactor=1.) at maprendering.c:488 #11 0x00485521 in msDrawShape (map=0x822ab0, layer=0x87c820, shape=0x7fffd310, image=0x937b30, style=0, querymapMode=0) at mapdraw.c:1962 #12 0x0047fe20 in msDrawVectorLayer (map=0x822ab0, layer=0x87c820, image=0x937b30) at mapdraw.c:1032 #13 0x0047f32e in msDrawLayer (map=0x822ab0, layer=0x87c820, image=0x937b30) at mapdraw.c:822 #14 0x0047e1e5 in msDrawMap (map=0x822ab0, querymap=0) at mapdraw.c:468 #15 0x00440b32 in main (argc=17, argv=0x7fffd848) at shp2img.c:292 When I switch to outputformat jpeg (agg driver) everything is fine. MapServer is 5.6.6 on 64bit CentOS 5.5 Best regards, Daniel -- Daniel Degasperi R3 GIS Srl - GmbH www.r3-gis.com ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] PHP Mapscript: generateSLD
Ok, ticket created at: http://trac.osgeo.org/mapserver/ticket/3668 Daniel Am 07/02/2011 18:25, schrieb Lime, Steve D (DNR): Documentation mod suggestions can be filed as tickets at http://trac.osgeo.org/mapserver. Just assign it to the "MapServer Documentation" component and we'll handle it like any other defect... Steve -Original Message- From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Jean-François Gigand Sent: Monday, February 07, 2011 11:23 AM To: Daniel Degasperi Cc: mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] PHP Mapscript: generateSLD You're welcome. I think this precision would be useful in the documentation. Am not in the MapServer team however, and don't know the process for suggesting modifications in the doc. It seems logical that msMapObj.generateSLD() only includes enabled layers, but it's not that clear that it's the same for explicit calls to msLayerObj.generateSLD(). It might also be considered as a program issue... Don't know. Jeff 2011/2/7 Daniel Degasperi Hi Jeff, thank you very much, now it works. Should this information be included in the documentation? Daniel Am 07/02/2011 17:14, schrieb Jean-François Gigand: Hi, Maybe the layer has to be enabled (STATUS property) to appear in the SLD? If you want to keep it disabled in your mapFile, you can enable it programmatically just before calling generateSLD() by setting "status" to MS_ON. Jeff 2011/2/7 Daniel Degasperi: Hi, I've used the function generateSLD from the layerObj class to create a sld snippet, but the output was a empty sld file: http://www.opengis.net/sld"; xmlns:gml="http://www.opengis.net/gml"; 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";> I'm using following mapfile with mapserver 5.6.5: MAP NAME "test.map" SIZE 256 256 RESOLUTION 72 OUTPUTFORMAT NAME "aggpng24" DRIVER "AGG/PNG" MIMETYPE "image/png" IMAGEMODE RGB EXTENSION "png" FORMATOPTION "INTERLACE=OFF" TRANSPARENT ON FORMATOPTION "INTERLACE=OFF" END WEB METADATA "ows_onlineresource" "http://dev/public/services/ows.php?map=test.map"; "ows_title""test" "ows_abstract""" "wms_feature_info_mime_type""text/html" "ows_service_onlineresource""" "wms_srs""EPSG:32632 EPSG:4326 EPSG:900913" END IMAGEPATH "/tmp/ms_tmp/" IMAGEURL "/tmp/" END LAYER GROUP "test" NAME "test" TYPE LINE STATUS OFF METADATA "ows_title""test" "ows_extent""482003.57067363 5006503.5706736 537996.42932637 5062496.4293264" "ows_srs""EPSG:32632" "gml_geometries""the_geom" END PROJECTION "+proj=utm +zone=32 +ellps=WGS84 +datum=WGS84 +units=m +no_defs " END EXTENT 482003.57067363 5006503.5706736 537996.42932637 5062496.4293264 CONNECTIONTYPE POSTGIS CONNECTION "user=test password=test dbname=test host=localhost port=5432" DATA "the_geom FROM test USING UNIQUE gid USING SRID 32632" PROCESSING "CLOSE_CONNECTION=DEFER" SIZEUNITS pixels CLASS NAME "l103106" EXPRESSION ('[code]' eq 'L103106') STYLE COLOR 76 230 0 SYMBOL "CIRCLE" SIZE 3 MINSIZE 3 MAXSIZE 3 WIDTH 3 MINWIDTH 3 END END CLASS NAME "l103107" EXPRESSION ('[code]' eq 'L103107') STYLE COLOR 56 168 1 SYMBOL "CIRCLE" SIZE 2 MINSIZE 2 MAXSIZE 2 WIDTH 2 MINWIDTH 2 END END END ## SYMBOLS ### SYMBOL NAME "CIRCLE" TYPE ELLIPSE FILLED TRUE POINTS 1 1 END END END #MAP Can somebody help me? Best regards, Daniel ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Daniel Degasperi R3 GIS Srl - GmbH Via Johann Kravogl-Str. 2 I-39012 Meran/Merano (BZ) web: www.r3-gis.com Email: daniel.degasp...@r3-gis.com Tel. : +39 0473 494949 Fax : +3
Re: [mapserver-users] PHP Mapscript: generateSLD
Hi Jeff, thank you very much, now it works. Should this information be included in the documentation? Daniel Am 07/02/2011 17:14, schrieb Jean-François Gigand: Hi, Maybe the layer has to be enabled (STATUS property) to appear in the SLD? If you want to keep it disabled in your mapFile, you can enable it programmatically just before calling generateSLD() by setting "status" to MS_ON. Jeff 2011/2/7 Daniel Degasperi: Hi, I've used the function generateSLD from the layerObj class to create a sld snippet, but the output was a empty sld file: http://www.opengis.net/sld"; xmlns:gml="http://www.opengis.net/gml"; 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";> I'm using following mapfile with mapserver 5.6.5: MAP NAME "test.map" SIZE 256 256 RESOLUTION 72 OUTPUTFORMAT NAME "aggpng24" DRIVER "AGG/PNG" MIMETYPE "image/png" IMAGEMODE RGB EXTENSION "png" FORMATOPTION "INTERLACE=OFF" TRANSPARENT ON FORMATOPTION "INTERLACE=OFF" END WEB METADATA "ows_onlineresource" "http://dev/public/services/ows.php?map=test.map"; "ows_title""test" "ows_abstract""" "wms_feature_info_mime_type""text/html" "ows_service_onlineresource""" "wms_srs""EPSG:32632 EPSG:4326 EPSG:900913" END IMAGEPATH "/tmp/ms_tmp/" IMAGEURL "/tmp/" END LAYER GROUP "test" NAME "test" TYPE LINE STATUS OFF METADATA "ows_title""test" "ows_extent""482003.57067363 5006503.5706736 537996.42932637 5062496.4293264" "ows_srs""EPSG:32632" "gml_geometries""the_geom" END PROJECTION "+proj=utm +zone=32 +ellps=WGS84 +datum=WGS84 +units=m +no_defs " END EXTENT 482003.57067363 5006503.5706736 537996.42932637 5062496.4293264 CONNECTIONTYPE POSTGIS CONNECTION "user=test password=test dbname=test host=localhost port=5432" DATA "the_geom FROM test USING UNIQUE gid USING SRID 32632" PROCESSING "CLOSE_CONNECTION=DEFER" SIZEUNITS pixels CLASS NAME "l103106" EXPRESSION ('[code]' eq 'L103106') STYLE COLOR 76 230 0 SYMBOL "CIRCLE" SIZE 3 MINSIZE 3 MAXSIZE 3 WIDTH 3 MINWIDTH 3 END END CLASS NAME "l103107" EXPRESSION ('[code]' eq 'L103107') STYLE COLOR 56 168 1 SYMBOL "CIRCLE" SIZE 2 MINSIZE 2 MAXSIZE 2 WIDTH 2 MINWIDTH 2 END END END ## SYMBOLS ### SYMBOL NAME "CIRCLE" TYPE ELLIPSE FILLED TRUE POINTS 1 1 END END END #MAP Can somebody help me? Best regards, Daniel ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- *Daniel Degasperi* *R3 GIS* Srl - GmbH Via Johann Kravogl-Str. 2 I-39012 Meran/Merano (BZ) web: www.r3-gis.com <http://www.r3-gis.com/> Email: daniel.degasp...@r3-gis.com <mailto:daniel.degasp...@r3-gis.com> Tel. : +39 0473 494949 Fax : +39 0473 069902 *ATTENZIONE!* Le informazioni contenute nella presente e-mail e nei documenti eventualmente allegati sono confidenziali. La loro diffusione, distribuzione e/o riproduzione da parte di terzi, senza autorizzazione del mittente è vietata e può violare il D. Lgs. 196/2003. In caso di ricezione per errore, Vogliate immediatamente informare il mittente del messaggio e distruggere la e-mail. *ACHTUNG!* Die in dieser Nachricht oder in den beigelegten Dokumenten beinhalteten Informationen sind streng vertraulich. Ihre Verbreitung und/oder ihre Wiedergabe durch Dritte ist ohne Erlaubnis des Absenders verboten und verstößt gegen das Legislativdekret 196/2003. Sollten Sie diese Mitteilung irrtümlicherweise erhalten haben, bitten wir Sie uns umgehend zu informieren und anschließend die Mitteilung zu vernichten. *WARNING!* This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorised copying, disclousure or distribution of the material in this e-mail is strictly forbidden and could be against the law (D. Lgs. 196/2003) ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] PHP Mapscript: generateSLD
Hi, I've used the function generateSLD from the layerObj class to create a sld snippet, but the output was a empty sld file: xmlns="http://www.opengis.net/sld"; xmlns:gml="http://www.opengis.net/gml"; 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";> I'm using following mapfile with mapserver 5.6.5: MAP NAME "test.map" SIZE 256 256 RESOLUTION 72 OUTPUTFORMAT NAME "aggpng24" DRIVER "AGG/PNG" MIMETYPE "image/png" IMAGEMODE RGB EXTENSION "png" FORMATOPTION "INTERLACE=OFF" TRANSPARENT ON FORMATOPTION "INTERLACE=OFF" END WEB METADATA "ows_onlineresource" "http://dev/public/services/ows.php?map=test.map"; "ows_title""test" "ows_abstract""" "wms_feature_info_mime_type""text/html" "ows_service_onlineresource""" "wms_srs""EPSG:32632 EPSG:4326 EPSG:900913" END IMAGEPATH "/tmp/ms_tmp/" IMAGEURL "/tmp/" END LAYER GROUP "test" NAME "test" TYPE LINE STATUS OFF METADATA "ows_title""test" "ows_extent""482003.57067363 5006503.5706736 537996.42932637 5062496.4293264" "ows_srs""EPSG:32632" "gml_geometries""the_geom" END PROJECTION "+proj=utm +zone=32 +ellps=WGS84 +datum=WGS84 +units=m +no_defs " END EXTENT 482003.57067363 5006503.5706736 537996.42932637 5062496.4293264 CONNECTIONTYPE POSTGIS CONNECTION "user=test password=test dbname=test host=localhost port=5432" DATA "the_geom FROM test USING UNIQUE gid USING SRID 32632" PROCESSING "CLOSE_CONNECTION=DEFER" SIZEUNITS pixels CLASS NAME "l103106" EXPRESSION ('[code]' eq 'L103106') STYLE COLOR 76 230 0 SYMBOL "CIRCLE" SIZE 3 MINSIZE 3 MAXSIZE 3 WIDTH 3 MINWIDTH 3 END END CLASS NAME "l103107" EXPRESSION ('[code]' eq 'L103107') STYLE COLOR 56 168 1 SYMBOL "CIRCLE" SIZE 2 MINSIZE 2 MAXSIZE 2 WIDTH 2 MINWIDTH 2 END END END ## SYMBOLS ### SYMBOL NAME "CIRCLE" TYPE ELLIPSE FILLED TRUE POINTS 1 1 END END END #MAP Can somebody help me? Best regards, Daniel ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] MAXSCALEDENOM [scale_field]
Even if I use the scale denominator I have to repeat the class for each category for every priority. The style of each category remain still the same, which means I have a lot of duplicated classes. Daniel Am 15/07/2010 20:03, schrieb Lime, Steve D (DNR): I wonder if you could access the current computed scale denominator in expression (or the DATA statement) and get the same effect... e.g.: CLASS EXPRESSION ('[category]' eq 'poi'&& [priority]< SCALE) ... END Steve -Original Message- From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Daniel Degasperi Sent: Thursday, July 15, 2010 5:02 AM To: Lime, Steve D (DNR) Cc: mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] MAXSCALEDENOM [scale_field] Hi Steve, maybe it's easier to explain with a mapfile example: LAYER NAME "POI" TYPE POINT CONNECTIONTYPE postgis CONNECTION "user=somebody password=something dbname=test host=localhost" DATA "the_geom FROM (SELECT gid, category, priority, the_geom FROM poi) AS foo USING UNIQUE gid" ... CLASS EXPRESSION ('[category]' eq 'poi') MAXSCALEDENOM [priority] ... END ... END In this case I've one single class for each category and the MAXSCALEDENOM get the value from the priority attribute of my datasource. As it is now, MapServer does not support this feature and I've to repeat every single category for each different priority value. Best regards, Daniel Am 14/07/2010 23:53, schrieb Lime, Steve D (DNR): MapServer doesn't support layer-level binding only feature-level binding. I'm having trouble seeing the value. Can you explain further? Steve ____ From: mapserver-users-boun...@lists.osgeo.org [mapserver-users-boun...@lists.osgeo.org] On Behalf Of Daniel Degasperi [daniel.degasp...@r3-gis.com] Sent: Wednesday, July 14, 2010 7:54 AM To: mapserver-users@lists.osgeo.org Subject: [mapserver-users] MAXSCALEDENOM [scale_field] Hi, I've tried to read the MAXSCALEDENOM value from a attribute in my datasource, but mapserver throw's a parsing error. Probably because such feature does not exist in mapserver. Are there any intentions to implement this? It could be interesting for layers, whose data has different priorities but the same styling. With this feature I can avoid repeating the classes for every priority. Best regards, Daniel ___ 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
Re: [mapserver-users] MAXSCALEDENOM [scale_field]
Hi Steve, maybe it's easier to explain with a mapfile example: LAYER NAME "POI" TYPE POINT CONNECTIONTYPE postgis CONNECTION "user=somebody password=something dbname=test host=localhost" DATA "the_geom FROM (SELECT gid, category, priority, the_geom FROM poi) AS foo USING UNIQUE gid" ... CLASS EXPRESSION ('[category]' eq 'poi') MAXSCALEDENOM [priority] ... END ... END In this case I've one single class for each category and the MAXSCALEDENOM get the value from the priority attribute of my datasource. As it is now, MapServer does not support this feature and I've to repeat every single category for each different priority value. Best regards, Daniel Am 14/07/2010 23:53, schrieb Lime, Steve D (DNR): MapServer doesn't support layer-level binding only feature-level binding. I'm having trouble seeing the value. Can you explain further? Steve From: mapserver-users-boun...@lists.osgeo.org [mapserver-users-boun...@lists.osgeo.org] On Behalf Of Daniel Degasperi [daniel.degasp...@r3-gis.com] Sent: Wednesday, July 14, 2010 7:54 AM To: mapserver-users@lists.osgeo.org Subject: [mapserver-users] MAXSCALEDENOM [scale_field] Hi, I've tried to read the MAXSCALEDENOM value from a attribute in my datasource, but mapserver throw's a parsing error. Probably because such feature does not exist in mapserver. Are there any intentions to implement this? It could be interesting for layers, whose data has different priorities but the same styling. With this feature I can avoid repeating the classes for every priority. Best regards, Daniel ___ 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] MAXSCALEDENOM [scale_field]
Hi, I've tried to read the MAXSCALEDENOM value from a attribute in my datasource, but mapserver throw's a parsing error. Probably because such feature does not exist in mapserver. Are there any intentions to implement this? It could be interesting for layers, whose data has different priorities but the same styling. With this feature I can avoid repeating the classes for every priority. Best regards, Daniel ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] WFS_SRS
Hi, I've read in the "WFS Server" documentation that it's possible to obtain data from wfs request in a different SRS. I removed the top level PROJECTION, the layer PROJECTION and add the 'wfs_srs' metadata with the epsg:4326 in my mapfile. Then I've started my wfs request but the data remains still with the original SRS. Am I missing something? Best regards, Daniel ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] OGC spatial filter BBox
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. Best regards, Daniel ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] PHP MapScript pixel coordinates to map coordinates
Hi David, have you already tried with this conversion: $geo_x = $minx + (($pix_x / $map_width) * ($maxx- $minx)); $geo_y = $maxy - (($pix_y / $map_height) * ($maxy - $miny)); Daniel Am 20.01.2010 04:57, schrieb Shorthouse, David: Folks, This question has no doubt been asked many times, but for the life of me I cannot find a solution. Here's what I'm trying to do: I have a jQuery-based front-end that uses the wonderful jcrop extension (http://deepliquid.com/content/Jcrop.html) that helps coordinate zoom. I'm hoping to use this same front-end to permit cropping of a resultant map image, which means I need to pass the four pixel corner coordinates, convert to map coordinates (projection may be variable), then set the extent such that the resultant map image will have the same dimensions as that described by the user on the front-end. So, how can I convert pixel coordinates to map coordinates? Note that the map projection is not always DD so I cannot merely use proportions as I have seen in some solutions. Surely this is easier than I am making it out to be. Thanks for any advice, David Shorthouse ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Daniel Degasperi Software Developer daniel.degasp...@r3-gis.com --- R3 GIS Srl Via Johann Kravogl 2 I-39010 Merano - Sinigo (BZ) Tel. +39 0473 494949 Fax. +39 0473 069902 Web http://www.r3-gis.com - ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] SLD with TextSymbolizer
Hi Michael, I've tested now the mixed case and it works. The simple static text generates an error (AAA), but it can be avoided with the following example: AAA Best regards, Daniel Michael Schulz schrieb: Hi, actually, I think the sld specs say that the label property can be of mixed content and thus should e.g. allow for static text and variable property values. So if you want to have a static text "V" id should suffice to put that as it is in the label-tag. Values that have variable content obtained from a DB-field should be enclosed with . An example from the ogc spec: This is city "NAME" of state STATE I had these problems too with older mapserver versions (< 5.x), but thought that recent versions handle this correctly. Especially the case of the example should work. Can you try that, i.e. have a static text mixed with a ogc:PropertyValue? Cheers, Michael 2009/9/15 Guillaume Sueur : Hi Daniel, Label is supposed to enclise the name of a field. Here is a complete working example of text symbolizer : id_field 5 VERDANA bold 16 #00 3 #FF Hope that helps Guillaume Daniel Degasperi a écrit : Hi, I've some problems using the TextSymbolizer in my SLD-File (see Attachment route_sld.xml), specially with the following part, which will generate this error: column Literal does not exists. (see Attachment wms_error.png for further details) V Is this problem related to MapServer or MapServer does not support SLD-Labels? I've tested this with MapServer 5.2.2 and 5.4.2. Best regards, Daniel Degasperi ___ 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 -- Daniel Degasperi Software Developer daniel.degasp...@r3-gis.com --- R3 GIS Srl Via Johann Kravogl 2 I-39010 Merano - Sinigo (BZ) Tel. +39 0473 494949 Fax. +39 0473 069902 Web http://www.r3-gis.com - ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] SLD with TextSymbolizer
Hi Guillaume, I found this example: http://blog.geoserver.org/2009/04/02/follow-the-arrows/ Does MapServer support the ogc:Literal Element within label, too? Daniel Guillaume Sueur schrieb: Hi Daniel, Label is supposed to enclise the name of a field. Here is a complete working example of text symbolizer : id_field 5 VERDANA bold 16 #00 3 #FF Hope that helps Guillaume Daniel Degasperi a écrit : Hi, I've some problems using the TextSymbolizer in my SLD-File (see Attachment route_sld.xml), specially with the following part, which will generate this error: column Literal does not exists. (see Attachment wms_error.png for further details) V Is this problem related to MapServer or MapServer does not support SLD-Labels? I've tested this with MapServer 5.2.2 and 5.4.2. Best regards, Daniel Degasperi ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Daniel Degasperi Software Developer daniel.degasp...@r3-gis.com --- R3 GIS Srl Via Johann Kravogl 2 I-39010 Merano - Sinigo (BZ) Tel. +39 0473 494949 Fax. +39 0473 069902 Web http://www.r3-gis.com - ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] SLD with TextSymbolizer
Hi, I've some problems using the TextSymbolizer in my SLD-File (see Attachment route_sld.xml), specially with the following part, which will generate this error: column Literal does not exists. (see Attachment wms_error.png for further details) V Is this problem related to MapServer or MapServer does not support SLD-Labels? I've tested this with MapServer 5.2.2 and 5.4.2. Best regards, Daniel Degasperi -- Daniel Degasperi Software Developer daniel.degasp...@r3-gis.com --- R3 GIS Srl Via Johann Kravogl 2 I-39010 Merano - Sinigo (BZ) Tel. +39 0473 494949 Fax. +39 0473 069902 Web http://www.r3-gis.com - http://www.opengis.net/sld"; xmlns:gml="http://www.opengis.net/gml"; 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://ogc.dmsolutions.ca/sld/1.0.0/StyledLayerDescriptor.xsd";> routen rte_id 16 10.00 #00ff00 1.00 6 V Arial 18 0 #00 true false <>___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Querymap
Hello MapServer Users, I've been using the Querymap-Feature of MapServer. As I understand the objects are highlighted by changing the color. It would be very nice to have the possibility to define other style-properties like SIZE, OUTLINECOLOR, etc. Is this possible? Best regards Daniel Degasperi -- Daniel Degasperi Software Developer daniel.degasp...@r3-gis.com --- R3 GIS Srl Via Johann Kravogl 2 I-39010 Merano - Sinigo (BZ) Tel. +39 0473 494949 Fax. +39 0473 069902 Web http://www.r3-gis.com - ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Openlayers Mapserver
Hi Rafael, retry this without the colon before layers, maybe it's only a javascript error. Rafael chacón schrieb: Hi, I would like to know how to add severals mapserver layers as my base layer for openlayers. Supose I have a mapfile with a layers us_states (with the states shapes) other for the roads (us_roads) , and other for the railsways (us_railsways). So, what I want to do is to have all this layers when openlayers loads. I'd been unable to do so... I was trying something like this but is not working: layer = new OpenLayers.Layer.MapServer("United States", "http://localhost/cgi-bin/mapserv?us_states.map";, {:layers: 'us_railsways,us_states, us_roads'}, {gutter:15}); map.addLayer -- Rafael Chacon, "El hombre es la medida de todas las cosas". Protagoras ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Daniel Degasperi Software Developer daniel.degasp...@r3-gis.com --- R3 GIS Srl Via Johann Kravogl 2 I-39010 Merano - Sinigo (BZ) Tel. +39 0473 494949 Fax. +39 0473 069902 Web http://www.r3-gis.com - ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] SLD not rendered correctly
Dear Assefa, sorry for the delay. We tried the SVN-Version (Date 13/11/08) and the issue seems to be solved. Thank you very much for your quick reaction. Regards, Daniel Yewondwossen Assefa schrieb: Daniel, I could confirm that http://trac.osgeo.org/mapserver/ticket/2548 was still an issue in the current mapserver code. I have committed the fix in the trunk and updated the bug. Please give it a try and let me know. I will also possibility fix it in the 5.2.x branch so it will be available for the upcoming release. With this fix, I was able to use your example SLD and have the expected result. Note that I did not so any testing with the 5.0.x release Best Regards, Daniel Degasperi wrote: Hello, the attached SLD should render a point layer with an outlinecolor (see stroke), unfortunately the stroke-color seems to overwrite the fill color. Images are attached. withoutsld.png would be the expected result, withsld.png is the actual result. Can anybody help me? I'm using MapServer 5.0.3 on Centos5 and the render client is OpenLayers. These tickets could be related: * http://trac.osgeo.org/mapserver/ticket/1887 * http://trac.osgeo.org/mapserver/ticket/2548 Regards, Daniel -- Daniel Degasperi Software Developer [EMAIL PROTECTED] --- R3 GIS Srl Via Johann Kravogl 2 I-39010 Merano - Sinigo (BZ) Tel. +39 0473 494949 Fax. +39 0473 069902 Web http://www.r3-gis.com - ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Daniel Degasperi Software Developer [EMAIL PROTECTED] --- R3 GIS Srl Via Johann Kravogl 2 I-39010 Merano - Sinigo (BZ) Tel. +39 0473 494949 Fax. +39 0473 069902 Web http://www.r3-gis.com - ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: RE : [mapserver-users] SLD not rendered correctly
Hi James, thx for your fast answer. I tried following piece of SLD, unfortunately the second PointSymbolizer overwrite the first one. xmlns="http://www.opengis.net/sld"; xmlns:gml="http://www.opengis.net/gml"; 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://ogc.dmsolutions.ca/sld/1.0.0/StyledLayerDescriptor.xsd";> tree IT:Pianta|DE:Pflanze circle #00c800 5 circle #006400 2 Léveillé schrieb: Hi Daniel, I'm no expert in SLD, but have you tried using 2 PointSymbolizer ? That's what I'm doing (with lines) and it works great ... center-line name="stroke">#00 name="stroke-width">7.0 center-line name="stroke">#009432 name="stroke-width">5.0 __ *JAMES LÉVEILLÉ *Service des systèmes de Mission Direction des technologies de l'information Ministère des Transports du Québec 5833, boul. Pierre-Bertrand, 2ième étage Québec (Québec) G2K 1K7 Téléphone: (418) 380-2005 poste 227 Télécopieur: (418) 644-6653 [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> -Message d'origine- *De :* [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] *De la part de* Daniel Degasperi *Envoyé :* 12 novembre 2008 10:36 *À :* mapserver-users@lists.osgeo.org *Objet :* [mapserver-users] SLD not rendered correctly Hello, the attached SLD should render a point layer with an outlinecolor (see stroke), unfortunately the stroke-color seems to overwrite the fill color. Images are attached. withoutsld.png would be the expected result, withsld.png is the actual result. Can anybody help me? I'm using MapServer 5.0.3 on Centos5 and the render client is OpenLayers. These tickets could be related: * http://trac.osgeo.org/mapserver/ticket/1887 * http://trac.osgeo.org/mapserver/ticket/2548 Regards, Daniel -- Daniel Degasperi Software Developer [EMAIL PROTECTED] --- R3 GIS Srl Via Johann Kravogl 2 I-39010 Merano - Sinigo (BZ) Tel. +39 0473 494949 Fax. +39 0473 069902 Web http://www.r3-gis.com - -- Daniel Degasperi Software Developer [EMAIL PROTECTED] --- R3 GIS Srl Via Johann Kravogl 2 I-39010 Merano - Sinigo (BZ) Tel. +39 0473 494949 Fax. +39 0473 069902 Web http://www.r3-gis.com - ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] SLD not rendered correctly
Hello, the attached SLD should render a point layer with an outlinecolor (see stroke), unfortunately the stroke-color seems to overwrite the fill color. Images are attached. withoutsld.png would be the expected result, withsld.png is the actual result. Can anybody help me? I'm using MapServer 5.0.3 on Centos5 and the render client is OpenLayers. These tickets could be related: * http://trac.osgeo.org/mapserver/ticket/1887 * http://trac.osgeo.org/mapserver/ticket/2548 Regards, Daniel -- Daniel Degasperi Software Developer [EMAIL PROTECTED] --- R3 GIS Srl Via Johann Kravogl 2 I-39010 Merano - Sinigo (BZ) Tel. +39 0473 494949 Fax. +39 0473 069902 Web http://www.r3-gis.com - http://www.opengis.net/sld"; xmlns:gml="http://www.opengis.net/gml"; 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://ogc.dmsolutions.ca/sld/1.0.0/StyledLayerDescriptor.xsd";> tree IT:Pianta|DE:Pflanze circle #00c800 #006400 2.0 5 <><>___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] PHP/MapScript - Export SLD
Hello, I would like to export a mapfile to sld using the following PHP/MapScript. function ms_create_sld($map) { for($i=0;$i<$map->numlayers;$i++) { // - get Layer $layer = $map->getLayer($i); // generate the sld for that layer $SLD = $layer->generateSLD(); // save sld to a file $fp = fopen("sld/merano/".$layer->name."-sld.xml", "w+"); fputs($fp, $SLD); fclose($fp); } } Unfortunately it seems that OUTLINECOLOR is not exported, see following mapfile-fragment. It seems that this happens only with POINT Layers. I'm using MapServer 5.0.3 on Centos5. Is there something I am doing wrong? Regards Daniel LAYER NAME "tree" GROUP "basic_map" STATUS ON CONNECTIONTYPE postgis CONNECTION "user=foo password=foo dbname=foo host=foo" DATA "the_geom FROM tree.tree_view USING UNIQUE tr_id USING SRID 32632" TYPE POINT DUMP TRUE ## REQUIRED for WFS MINSCALE 0 ## MAXSCALE 5 FILTER "tr_date_end >= now() or tr_date_end is null" PROJECTION "init=epsg:32632" ##required per WFS END HEADER "/data/sites/wms/templates/header.html" TEMPLATE "/data/sites/wms/templates/test.html" FOOTER "/data/sites/wms/templates/footer.html" CLASS NAME "IT:Pianta|DE:Pflanze" SYMBOL 'circle' COLOR 0 200 0 *OUTLINECOLOR 0 100 0 # THIS IS NOT EXPORTED TO SLD* SIZE 5 END METADATA "DESCRIPTION" "IT:Pianta|DE:Baum" "WMS_SRS" "EPSG:32632" "WMS_TITLE" "tree_pg" "wms_feature_info_mime_type" "text/html" "wfs_title""tree" ## REQUIRED "gml_featureid" "ID" ## REQUIRED "gml_include_items" "tr_id,de="ar_name_2">,tr_code,de="sc_name_2">,tr_date_start,tr_diameter_trunk" ## Optional (serves all attributes for layer) "wms_sld_url" "http://192.168.0.18/wms/sld/merano/tree.sld"; END #METADATA END #LAYER -- Daniel Degasperi Software Developer [EMAIL PROTECTED] --- R3 GIS Srl Via Johann Kravogl 2 I-39010 Merano - Sinigo (BZ) Tel. +39 0473 494949 Fax. +39 0473 069902 Web http://www.r3-gis.com - http://www.opengis.net/sld"; xmlns:gml="http://www.opengis.net/gml"; 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://ogc.dmsolutions.ca/sld/1.0.0/StyledLayerDescriptor.xsd";> tree IT:Pianta|DE:Pflanze circle #00c800 #006400 2.0 5 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Labelling
Hi, you can't give some coordinates to your label. I solved the problem by creating a point layer. Nelson Soto schrieb: Is it possible to create a label and position it with given coordinates? If I do not like the positioning of the labels, can I in any way specify my own? ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Daniel Degasperi Software Developer [EMAIL PROTECTED] --- R3 GIS Srl Via Johann Kravogl 2 I-39010 Merano - Sinigo (BZ) Tel. +39 0473 494949 Fax. +39 0473 069902 Web http://www.r3-gis.com - ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users