<div><div dir="auto">Hi! My guess is your v.5 style is being interpreted differently in v.6. For example, what’s the purpose of the ANGLE 360? There were some big changes between versions 5 and 6. For example you don’t have to use a circular brush to draw a thick line. You should be able to do something much simpler like:</div><div dir="auto"><br></div><div dir="auto"> STYLE</div><div dir="auto"> COLOR 0 0 255</div><div dir="auto"> WIDTH 2</div><div dir="auto"> END</div></div><div dir="auto"><br></div><div dir="auto">—Steve</div><div dir="auto"><br></div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Mar 2, 2020 at 4:48 PM Ei Fujioka <<a href="mailto:efujioka@duke.edu">efujioka@duke.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello all,<br>
<br>
I'm upgrading a web site that I have been developing for many years. The <br>
web site uses Mapserver & Mapscript along with PHP. Mapserver layers are <br>
drawn on top of Google Maps using Javascript.<br>
<br>
What I'm struggling to figure out is that a line layer is not drawn at <br>
lower zoom levels with Mapserver & Mapscript 6.4 and PHP 5.4.16. When <br>
zooming in, the lines will start getting drawn but still not fully.<br>
<br>
The same layer was drawn at any zoom levels without any problem under <br>
Mapserver 5.2 and PHP 5.2.6.<br>
<br>
Are there any mapfile settings (new to Mapserver 6.4 or changed from <br>
Mapserver 5.2) that limit the number of line segments to be drawn at <br>
unit cell or affects how the lines are drawn at differently zoom levels? <br>
Are there any limits in Mapscript/PHP regarding data size to fetch or <br>
draw? The line data of the layer is stored in a PostgreSQL table which <br>
has a lot of records (~270,000 line segments). If the line layer does <br>
not have such a large number of records (e.g. ~10,000), it draws fine.<br>
<br>
Please take a look at an image (screenshots) that shows how the lines <br>
are drawn differently between Mapserver 5.2 and Mapserver 6.4:<br>
<a href="http://seamap.env.duke.edu/images/mapserver6_4_not_draw_lines.png" rel="noreferrer" target="_blank">http://seamap.env.duke.edu/images/mapserver6_4_not_draw_lines.png</a><br>
<br>
The new web site is not publicly available yet, so I can't let you <br>
explore but the existing web site that draws the example line layer fine <br>
can be accessed at<br>
<a href="http://seamap.env.duke.edu/dataset/2001" rel="noreferrer" target="_blank">http://seamap.env.duke.edu/dataset/2001</a><br>
# Please turn on "Survey tracks" in the Layer selection.<br>
<br>
<br>
The snippet of the mapfile is below.<br>
Thanks for your help in advance!<br>
<br>
Ei Fujioka<br>
Duke University<br>
<br>
<br>
=== Mapfile ===<br>
MAP<br>
EXTENT -20001364 -15000982 20001253 15000982<br>
IMAGETYPE "PNG"<br>
NAME "OBIS-SEAMAP_OGC_SERVICES"<br>
SIZE 256 256<br>
STATUS ON<br>
TRANSPARENT TRUE<br>
UNITS METERS<br>
<br>
OUTPUTFORMAT<br>
NAME "PNG"<br>
MIMETYPE "image/png"<br>
DRIVER "AGG/PNG"<br>
EXTENSION "png"<br>
IMAGEMODE RGBA<br>
TRANSPARENT TRUE<br>
END # OUTPUTFORMAT<br>
<br>
PROJECTION<br>
"init=epsg:3857"<br>
END # PROJECTION<br>
<br>
SYMBOL<br>
NAME "solid_line"<br>
TYPE ELLIPSE<br>
POINTS<br>
1 1<br>
END<br>
FILLED true<br>
END<br>
<br>
WEB<br>
IMAGEPATH "/var/www/tmp/"<br>
IMAGEURL "/tmp/"<br>
METADATA<br>
"wms_srs" "EPSG:3857 EPSG:4326"<br>
"ows_enable_request" "*"<br>
"wms_title" "Online Mapper"<br>
END # METADATA<br>
END # WEB<br>
<br>
LAYER<br>
CLASSITEM "classitem_dataset"<br>
CONNECTION "user=xxx password=xxx dbname=xxx host=xxx"<br>
CONNECTIONTYPE POSTGIS<br>
DATA "geom from (SELECT ..., as classitem_dataset, 'solid_line' as <br>
symbol FROM z_tracks WHERE ...) AS foo USING UNIQUE oid USING SRID=4326"<br>
METADATA<br>
"wms_legend_graphic" "true"<br>
"gml_featureid" "oid"<br>
"title" "Survey tracklines"<br>
"gml_include_items" "all"<br>
"wms_title" "Survey tracklines"<br>
END # METADATA<br>
NAME "survey_tracks"<br>
PROJECTION<br>
"init=epsg:4326"<br>
END # PROJECTION<br>
STATUS OFF<br>
TILEITEM "location"<br>
TOLERANCE 1<br>
TYPE LINE<br>
UNITS METERS<br>
CLASS<br>
NAME "class_0"<br>
EXPRESSION "0_ON"<br>
STYLE<br>
ANGLE 360<br>
COLOR 255 0 0<br>
OUTLINECOLOR 255 0 0<br>
SIZE 2<br>
SYMBOL [symbol]<br>
END # STYLE<br>
END # CLASS<br>
<br>
# In total 60 CLASS ... END are defined<br>
END # LAYER<br>
<br>
<br>
-- <br>
========================<br>
Ei Fujioka<br>
Research Scientist<br>
Nicholas School<br>
Duke University<br>
<br>
(919) 684-3518<br>
<a href="mailto:efujioka@duke.edu" target="_blank">efujioka@duke.edu</a><br>
========================<br>
<br>
_______________________________________________<br>
mapserver-users mailing list<br>
<a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/mapserver-users" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/mapserver-users</a></blockquote></div></div>