Jana,<br><br>I've just tested the SYMBOL binding with STYLEITEM AUTO and works for me. I expect that the [icon] parameter should contain the name of a valid symbol definition, isn't it? Could you wrap up a small example (mapfile+data) to be able to reproduce your test case?<br>
<br>Best regards,<br><br>Tamas<br><br><br><br><div class="gmail_quote">2011/5/10 Jana Golinowski <span dir="ltr"><<a href="mailto:jgolinowski@codematix.de">jgolinowski@codematix.de</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Could you provide the mapfile which doesn't work for you?<br>
</blockquote>
<br></div>
The source layers are styled with values from database (icon, heading, length). They are displaying correctly. Looking into MS_ERRORFILE I can see MapServer requesting the items for styling and labeling. But the union layer appears to be empty because those items are not requested.<br>
<br>
After changing 'SYMBOL [icon]' to 'SYMBOL "symbol/ais/ship_no_heading_black_3.png"' (for example in layer "ais_notmoving_noheading") the union layer isn't "empty" anymore. But that's not what I need here.<br>
<br>
I just tested this with the current trunk (rev 11665) with the same result. But as I said before I may have misunderstood something.<br>
<br>
Greetings, Jana.<br>
<br>
<br>
---<br>
<br>
MS_ERRORFILE extract when displaying a source layer:<br>
...<br>
msPostGISBuildSQLItems: 2 items requested.<br>
...<br>
msPostGISLayerNextShape called.<br>
msPostGISReadShape called.<br>
msPostGISReadShape: PQgetlength = 38<br>
msPostGISReadShape: [icon] "symbol/ais/ship_no_heading_black_3.png"<br>
msPostGISReadShape: PQgetlength = 9<br>
msPostGISReadShape: [feature_of_interest_id] "211215680"<br>
msPostGISReadShape: Setting shape->index = 3433260<br>
msPostGISReadShape: Setting shape->resultindex = 1<br>
msPostGISReadShape: [index] 3433260<br>
msPostGISReadShape: [shape] POINT (8.9474133333333334 52.3004283333333362)<br>
...<br>
MS_ERRORFILE extract when displaying a source layer:<br>
...<br>
msPostGISBuildSQLItems: 0 items requested.<br>
...<br>
msPostGISLayerNextShape called.<br>
msPostGISReadShape called.<br>
msPostGISReadShape: Setting shape->index = 3433260<br>
msPostGISReadShape: Setting shape->resultindex = 1<br>
msPostGISReadShape: [index] 3433260<br>
msPostGISReadShape: [shape] POINT (8.9474133333333334 52.3004283333333362)<br>
...<br>
<br>
---<br>
<br>
The extract from the mapfile:<br>
<br>
LAYER<br>
NAME "ais_notmoving_union"<br>
STATUS ON<br>
CLASS<br>
END<br>
# hidden block DATASOURCE<br>
TYPE POINT<br>
CONNECTION "ais_notmoving_noheading,ais_notmoving_shape"<br>
CONNECTIONTYPE UNION<br>
# end hidden block<br>
TOLERANCE 0<br>
DEBUG 5<br>
GROUP "AIS_union"<br>
PROJECTION<br>
"init=epsg:4326"<br>
END<br>
PROCESSING "ITEMS=feature_of_interest_id,feature_of_interest_name,outline,icon,length,heading,sog,cog"<br>
STYLEITEM "AUTO"<br>
END<br>
LAYER<br>
NAME "ais_notmoving_noheading"<br>
STATUS OFF<br>
CLASS<br>
STYLE<br>
SYMBOL [icon]<br>
SIZE 20<br>
END<br>
LABEL<br>
SIZE SMALL<br>
TYPE BITMAP<br>
COLOR 0 0 0<br>
END<br>
NAME "ais_notmoving_noheading"<br>
TEXT "Test: not moving, no heading [feature_of_interest_id]"<br>
END<br>
# hidden block DATASOURCE<br>
DATA "geom from ais_sos.wfs_view"<br>
TYPE POINT<br>
CONNECTION "dbname=jweb_ais_dev user=postgres host=localhost port=5432"<br>
CONNECTIONTYPE POSTGIS<br>
# end hidden block<br>
PROJECTION<br>
"init=epsg:4326"<br>
END<br>
FILTER "(geom_velocity is null or sog is null or sog <= 0) and astext(geom) != 'GEOMETRYCOLLECTION EMPTY' and heading is null"<br>
DEBUG 5<br>
GROUP "AIS_union_source_notmoving"<br>
END<br>
LAYER<br>
NAME "ais_notmoving_shape"<br>
STATUS OFF<br>
CLASS<br>
STYLE<br>
SYMBOL [icon]<br>
SIZE [length]<br>
ANGLE [heading]<br>
END<br>
LABEL<br>
SIZE SMALL<br>
TYPE BITMAP<br>
COLOR 0 0 0<br>
END<br>
NAME "ais_notmoving_shape"<br>
TEXT "Test: not moving, shape [feature_of_interest_id]"<br>
END<br>
# hidden block DATASOURCE<br>
DATA "geom from ais_sos.wfs_view"<br>
TYPE POINT<br>
CONNECTION "dbname=jweb_ais_dev user=postgres host=localhost port=5432"<br>
CONNECTIONTYPE POSTGIS<br>
# end hidden block<br>
DEBUG 5<br>
FILTER "(geom_velocity is null or sog is null or sog <= 0) and astext(geom) != 'GEOMETRYCOLLECTION EMPTY' and heading is not null and length is not null and length > 0"<br>
PROJECTION<br>
"init=epsg:4326"<br>
END<br>
GROUP "AIS_union_source_notmoving"<br>
SYMBOLSCALEDENOM 3000<br>
END<div><div></div><div class="h5"><br>
<br>
_______________________________________________<br>
mapserver-dev mailing list<br>
<a href="mailto:mapserver-dev@lists.osgeo.org" target="_blank">mapserver-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-dev</a><br>
</div></div></blockquote></div><br>