[mapserver-users] MS 3.5 Trouble getting a POLYLINE shape file to display
klehr1@tampabay.rr.com
klehr1@tampabay.rr.com
Wed, 13 Mar 2002 02:28:56 -0500
This is a multi-part message in MIME format.
------=_NextPart_000_01EE_01C1CA36.D3369920
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Good morning:
I'm using Mapserver 3.5. and I have a shape file (dimension lines for a =
parcel layer) that appears to be of type Poly Line in ESRI Arcview GIS =
3.2a (i.e. when I open it I see all lines, and when I open the .dbf it =
calls the fields RPOLY...see below).
The only TYPE I can get to display in Mapserv is POINT, if I try TYPE =
LINE, POLYLINE, or POLYGON, I get the errror: msDrawShape(): General =
error message. Only polygon or line shapes can be drawn using a line =
layer definition. (or similar error for polygon, and getSymbol(): =
Symbol definition error. (POLYLINE):(9) for POLYLINE). I know POLYLINE =
is no longer used in 3.5 but I thought I'd try it.
Map File:
NAME lines
EXTENT 2453973.98744173 213648.197153 2554427.20872896 341848.56871657
SIZE 150 150
SHAPEPATH "/maps/"
LAYER
NAME "Parcel_Grid"
DATA dim_lines
STATUS DEFAULT
TYPE POLYLINE
CLASS
OUTLINECOLOR 255 0 0
# COLOR 255 0 0
END
END
END =20
DBF Fields:
FNODE_, TNODE_, LPOLY_, RPOLY_, LENGTH, HISTORIC_, HISTORIC_I, CODE
Any suggestions on what how to export the data from ESRI or map file =
parameters I might be mis-using? I have tried combinations of TYPE =
POLYGON and color and outlinecolor and received the error above, and =
LINE and color and outlinecolor (note in each of POLYGON, LINE I tried =
both color and outlinecolor, and each separately).
Thanks
Steve Lehr
------=_NextPart_000_01EE_01C1CA36.D3369920
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2614.3500" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Good morning:</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2><FONT face=3DArial size=3D2>I'm using =
Mapserver 3.5.=20
and </FONT></FONT><FONT face=3DArial size=3D2>I have a shape file =
(dimension=20
lines for a parcel layer) that appears to be of type Poly Line in =
ESRI=20
Arcview GIS 3.2a (i.e. when I open it I see all lines, and when I =
open the=20
.dbf it calls the fields RPOLY...see below).</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>The only TYPE I can get to =
display in=20
Mapserv is POINT, if I try TYPE LINE, POLYLINE, =
or POLYGON</FONT><FONT=20
face=3DArial size=3D2>, I get the errror: msDrawShape(): General error =
message. Only=20
polygon or line shapes can be drawn using a line layer definition. =
(or=20
similar error for polygon, and getSymbol(): Symbol definition error.=20
(POLYLINE):(9) for POLYLINE). I know POLYLINE is no longer =
used in=20
3.5 but I thought I'd try it.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>Map File:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>NAME lines<BR>EXTENT 2453973.98744173 =
213648.197153=20
2554427.20872896 341848.56871657<BR>SIZE 150 150<BR>SHAPEPATH=20
"/maps/"</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>LAYER<BR> NAME =
"Parcel_Grid"<BR> DATA=20
dim_lines<BR> STATUS DEFAULT<BR> TYPE POLYLINE<BR> =20
CLASS<BR> OUTLINECOLOR 255 0 =
0<BR> #=20
COLOR 255 0 0<BR> END<BR>END</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial=20
size=3D2>END &=
nbsp; =20
</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>DBF Fields:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>FNODE_, TNODE_, LPOLY_, RPOLY_, LENGTH, =
HISTORIC_,=20
HISTORIC_I, CODE</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>Any suggestions on what how to export =
the data from=20
ESRI or map file parameters I might be mis-using? I have tried=20
combinations of TYPE POLYGON and color and outlinecolor and received the =
error=20
above, and LINE and color and outlinecolor (note in each of=20
POLYGON, LINE I tried both color and outlinecolor, and each=20
separately).</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>Thanks</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Steve Lehr</FONT></DIV></BODY></HTML>
------=_NextPart_000_01EE_01C1CA36.D3369920--