problem drawing shapefile (polygon/line)

Tim ttsai at POBOX.COM
Sun Mar 20 06:12:36 EST 2005


Ooops.  I shouldn't specify SYMBOL 1 if using POLYGON.  That was
easy enough.  :-p

Tim

On Sun, Mar 20, 2005 at 04:55:43AM -0600, Tim Tsai wrote:
> Hello.  I am stumped on this particular issue running mapserver 4.4.1.
> I have a shapefile of polygons representing some water features.
> For some reason, I can get the map to draw if I use "TYPE LINE" but
> not if I use "TYPE POLYGON" (no objects visible and no error messages).
>
> A quick gdb session shows that the layer and shape drawing routines are
> both reached.  shape->num_lines seems to be always 1 though everytime
> I see it.  I am going to spend more time with gdb but am wondering
> if anybody has any idea on what this is doing.
>
> Thanks!
>
> Tim
>
> -- from ogrinfo --
> % ogrinfo _water.shp
> INFO: Open of `_water.shp'
> using driver `ESRI Shapefile' successful.
> 1: _water (Polygon)
>
> -- from my mapfile --
>     LAYER
>         DEBUG on
>         NAME "water"
>         STATUS default
>
>         DATA "_water"
> #        TYPE POLYGON # doesn't work
>         TYPE LINE # works
>
>         CLASS
>             DEBUG on
>             STYLE
>                 COLOR 102 204 255
>                 OUTLINECOLOR 0 0 128
>                 SYMBOL 1
>                 SIZE 3
>             END
>         END
>     END



More information about the mapserver-users mailing list