[mapserver-users] Can't draw points from shapefile

Michael McInnis mmcinnis59 at msn.com
Thu Aug 1 11:06:13 PDT 2013


I have not been able to draw basic points from a shapefile. I can draw lines and polygons.
Does anyone see a problem with the hwypoints layer?
What is the minimal layer definition to display shapefile points?

Thanks

PS - shapefile points draw in QGIS.

MAP
    DEBUG 5
    CONFIG "MS_ERRORFILE" "/media/D_Drive/www/gis/logs/error_file.log"    
    EXTENT            -180 -90 180 90
    IMAGECOLOR    153 179 204
    IMAGETYPE    PNG24
    SHAPEPATH    data/
    FONTSET        data/fonts/fonts.list
    UNITS        MILES
    SIZE 1000 1000    # Added
    
    PROJECTION
          #"+proj=mill +units=m"
        "+proj=longlat +ellps=WGS84"
    END
    
    OUTPUTFORMAT
        NAME        png
        DRIVER        "AGG/PNG"
        MIMETYPE    "image/png"
        IMAGEMODE    RGBA
        EXTENSION    "png"
    END
    
    WEB
        #IMAGEPATH    "/home/www/gis/tmp/"
        IMAGEPATH    "/media/D_Drive/www/gis/tmp/"
        IMAGEURL    "gis/tmp/"
    END


    # good    
    LAYER
        DATA            "world_noUSA"
        NAME            "world"
        TYPE            POLYGON
        STATUS            ON
        LABELITEM        "NAME"
        CLASS
            STYLE
                COLOR            217 223 195
                OUTLINECOLOR    181 190 148
            END
            LABEL
                FONT                "arial"
                PARTIALS            false
                #TYPE                truetype
                SIZE                8
                MINFEATURESIZE        20
                MINDISTANCE            1000
                COLOR                123 130 140
            END
        END
        PROJECTION
              "+proj=longlat +ellps=WGS84"
        END
    END

    # good    
    LAYER
        DATA            "hwypoints"
        NAME            "hwypoints"
        TYPE            POINT
        STATUS            ON
        LABELITEM        "HWYNUMBER"
        CLASS
            STYLE
                #COLOR        255 1 1
                #OUTLINECOLOR    181 190 148
            END
            LABEL
                FONT                "arial"
            #    PARTIALS            false
            #    #TYPE                truetype
                SIZE                8
            #    MINFEATURESIZE            20
            #    MINDISTANCE            1000
                COLOR                123 130 140
            END
        END
        PROJECTION
              "+proj=longlat +ellps=WGS84"
        END
    END

    # good
    LAYER
        NAME        "us_interstate"
        DATA        "US-Interstate-Low"
        TYPE        LINE
        STATUS        ON
        CLASS
            #MINSCALEDENOM            300000
            STYLE
                COLOR        190 87 99
                SIZE         1
                #SYMBOL         "line"
                ANTIALIAS     TRUE
            END
        END
        CLASS
            #MINSCALEDENOM            30000
            #MAXSCALEDENOM            300000
            STYLE
                COLOR        190 87 99
                SIZE         2
                #SYMBOL         "line"
                ANTIALIAS     TRUE
            END
        END
        CLASS
            #MINSCALEDENOM            2000
            #MAXSCALEDENOM            30000
            STYLE
                COLOR        150 47 59
                SIZE        4
                #SYMBOL         "line"
                ANTIALIAS     TRUE
            END
        END
        PROJECTION
              "+proj=longlat +ellps=WGS84"
        END
    END
END

Michael McInnis
6033 44th Ave. N.E.
Seattle, WA 98115
206 517-4701 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20130801/9e599c31/attachment.htm>


More information about the MapServer-users mailing list