<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Thank you for your valuable response. <div><br></div><div>I've struggled through 25 layers in an existing .map file, some defined as index shape file coverages and</div><div>now I think I have them all properly configured. Most of the problems were deprecated syntax, bad paths</div><div>in index shape files or scale related omissions I've learned to overcome with mapserver Url parameters.</div><div><br></div><div>Thanks to all the helpful tips I've received on this challenge.<br><br>Michael McInnis
6033 44th Ave. N.E.
Seattle, WA 98115
206 517-4701<br><br><div><hr id="stopSpelling">Date: Sat, 3 Aug 2013 09:23:55 -0600<br>From: bfraser@geoanalytic.com<br>To: mmcinnis59@msn.com<br>CC: mapserver-users@lists.osgeo.org<br>Subject: Re: [mapserver-users] Can't draw points from shapefile<br><br>
<div class="ecxmoz-cite-prefix">Michael,<br>
<br>
A minor point: Change UNITS DD in the map portion (UNITS,
EXTENT, and PROJECTION are all related). <br>
<br>
But the basic problem is a lack of a SYMBOL object in the STYLE
object of the points layer. I didn't think it was necessary (it
wasn't in some previous versions?). Back in the day, I thought
the default was SYMBOL 0 which was defined as a filled circle
therefore no explicit definition or reference required in the map
file. It looks like this is no longer the case.<br>
<br>
So the solution is to add a symbol definition to the map file
(between the WEB and LAYER objects):<br>
<br>
#Circle symbol<br>
SYMBOL<br>
NAME 'CIRCLE'<br>
TYPE ellipse<br>
FILLED true<br>
POINTS<br>
1 1<br>
END<br>
END <br>
<br>
and add a reference to it in the LAYER's STYLE object:<br>
<br>
STYLE<br>
SYMBOL 'CIRCLE'<br>
COLOR 255 1 1<br>
END<br>
<br>
<pre class="ecxmoz-signature">Best Regards,
Brent Fraser</pre>
On 8/1/2013 12:06 PM, Michael McInnis wrote:<br>
</div>
<blockquote cite="mid:BAY162-W2572135606B73FE11AB392D9500@phx.gbl">
<style><!--
.ExternalClass .ecxhmmessage P {
padding:0px;
}
.ExternalClass body.ecxhmmessage {
font-size:12pt;
font-family:Calibri;
}
--></style>
<div dir="ltr">I have not been able to draw basic points from a
shapefile. I can draw lines and polygons.<br>
Does anyone see a problem with the hwypoints layer?<br>
What is the minimal layer definition to display shapefile
points?<br>
<br>
Thanks<br>
<br>
PS - shapefile points draw in QGIS.<br>
<br>
MAP<br>
DEBUG 5<br>
CONFIG "MS_ERRORFILE"
"/media/D_Drive/www/gis/logs/error_file.log" <br>
EXTENT -180 -90 180 90<br>
IMAGECOLOR 153 179 204<br>
IMAGETYPE PNG24<br>
SHAPEPATH data/<br>
FONTSET data/fonts/fonts.list<br>
UNITS MILES<br>
SIZE 1000 1000 # Added<br>
<br>
PROJECTION<br>
#"+proj=mill +units=m"<br>
"+proj=longlat +ellps=WGS84"<br>
END<br>
<br>
OUTPUTFORMAT<br>
NAME png<br>
DRIVER "AGG/PNG"<br>
MIMETYPE "image/png"<br>
IMAGEMODE RGBA<br>
EXTENSION "png"<br>
END<br>
<br>
WEB<br>
#IMAGEPATH "/home/www/gis/tmp/"<br>
IMAGEPATH "/media/D_Drive/www/gis/tmp/"<br>
IMAGEURL "gis/tmp/"<br>
END<br>
<br>
<br>
# good <br>
LAYER<br>
DATA "world_noUSA"<br>
NAME "world"<br>
TYPE POLYGON<br>
STATUS ON<br>
LABELITEM "NAME"<br>
CLASS<br>
STYLE<br>
COLOR 217 223 195<br>
OUTLINECOLOR 181 190 148<br>
END<br>
LABEL<br>
FONT "arial"<br>
PARTIALS false<br>
#TYPE truetype<br>
SIZE 8<br>
MINFEATURESIZE 20<br>
MINDISTANCE 1000<br>
COLOR 123 130 140<br>
END<br>
END<br>
PROJECTION<br>
"+proj=longlat +ellps=WGS84"<br>
END<br>
END<br>
<br>
# good <br>
LAYER<br>
DATA "hwypoints"<br>
NAME "hwypoints"<br>
TYPE POINT<br>
STATUS ON<br>
LABELITEM "HWYNUMBER"<br>
CLASS<br>
STYLE<br>
#COLOR 255 1 1<br>
#OUTLINECOLOR 181 190 148<br>
END<br>
LABEL<br>
FONT "arial"<br>
# PARTIALS false<br>
# #TYPE truetype<br>
SIZE 8<br>
# MINFEATURESIZE 20<br>
# MINDISTANCE 1000<br>
COLOR 123 130 140<br>
END<br>
END<br>
PROJECTION<br>
"+proj=longlat +ellps=WGS84"<br>
END<br>
END<br>
<br>
# good<br>
LAYER<br>
NAME "us_interstate"<br>
DATA "US-Interstate-Low"<br>
TYPE LINE<br>
STATUS ON<br>
CLASS<br>
#MINSCALEDENOM 300000<br>
STYLE<br>
COLOR 190 87 99<br>
SIZE 1<br>
#SYMBOL "line"<br>
ANTIALIAS TRUE<br>
END<br>
END<br>
CLASS<br>
#MINSCALEDENOM 30000<br>
#MAXSCALEDENOM 300000<br>
STYLE<br>
COLOR 190 87 99<br>
SIZE 2<br>
#SYMBOL "line"<br>
ANTIALIAS TRUE<br>
END<br>
END<br>
CLASS<br>
#MINSCALEDENOM 2000<br>
#MAXSCALEDENOM 30000<br>
STYLE<br>
COLOR 150 47 59<br>
SIZE 4<br>
#SYMBOL "line"<br>
ANTIALIAS TRUE<br>
END<br>
END<br>
PROJECTION<br>
"+proj=longlat +ellps=WGS84"<br>
END<br>
END<br>
END<br>
<br>
Michael McInnis
6033 44th Ave. N.E.
Seattle, WA 98115
206 517-4701 </div>
<br>
<fieldset class="ecxmimeAttachmentHeader"></fieldset>
<br>
<pre>_______________________________________________
mapserver-users mailing list
<a class="ecxmoz-txt-link-abbreviated" href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a>
<a class="ecxmoz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a>
</pre>
</blockquote>
<br></div></div> </div></body>
</html>