[mapserver-users] Polyline problem
Stepan Kafka
kafka at email.cz
Thu Jul 19 23:28:17 PDT 2001
POLYLINE in MS has different meaning than in ArcView.
There is a hollow polygon in MS (it means you can use line symbols for it
but it is still a polygon).
You must use only LINE parameter for "PolyLine" shapefiles from ArcView.
Stepan
>
>
> Hi again.
>
> I'm having a problem with polyline shapes.
>
> mapserv says:
>
> msDrawShapefileLayer(): General error message. POLYGON layers must be
> POLYGON shapefiles.
>
> As you can see in the map file, the layer is declared as POLYLINE not
> a POLYGON, so I don't understand why it doesn't work as expected.
>
> The shape is a polyline made with ArcView. If I change the layer to be a
> LINE, mapserv displays a dot, unzoomable.
>
> Here's my map file:
>
> #
> # Start of map file
> #
> NAME BUSES
> SIZE 600 600
> SYMBOLSET ./symbols/symbols.sym
> EXTENT -71.812301 -33.413659 -71.18889 -33.04636
> UNITS METERS
> SHAPEPATH "buses"
> IMAGECOLOR 255 255 255
>
> PROJECTION
> "proj=utm"
> "ellps=GRS80"
> "zone=19"
> "south"
> "no_defs"
> END
>
> #
> # Start of web interface definition
> #
> WEB
> HEADER buses_h.html
> TEMPLATE buses.html
> FOOTER buses_f.html
> MINSCALE 1000
> MAXSCALE 1550000
> IMAGEPATH "/var/www/html/ms_demo/tmp/"
> IMAGEURL "/tmp/"
> LOG "buses.log"
> END
>
> #
> # Start of scalebar
> #
>
> SCALEBAR
>
> [yadda yadda yadda]
>
> END
>
> #
> # Start of layer definitions
> #
>
> LAYER
> NAME r_bus5
> TYPE POLYLINE
> STATUS DEFAULT
> DATA r_bus5
> CLASS
> COLOR 100 150 54
> END
> END
>
> END # Map File
>
>
> --
> V. <v at w.cl>
>
More information about the MapServer-users
mailing list