[mapserver-users] line shapefiles

Donald F Caldwell dfwc at research.att.com
Mon Feb 9 10:41:48 EST 2009


i am having trouble showing line data on mapserver

###########################################################################
# i create an 'arc' shapefile with one edge
###########################################################################

shpcreate nysf arc
shpadd nysf -73.905235290527344 40.707859039306641 + -122.380088806152344 37.795818328857422
dbfcreate nysf -s ecity 32 -s wcity 32
dbfadd nysf "New York" "San Francisco"

###########################################################################
# i use this mapfile
###########################################################################

MAP                         # Start of MAP object
  DEBUG ON
  SIZE 800 600
  EXTENT -122.380089 37.795818 -73.905235 40.707859
  IMAGECOLOR 255 255 255

  UNITS DD

  LAYER
    NAME nysf
    TYPE LINE
    STATUS DEFAULT
    DATA nysf
    DEBUG 5
    CLASS
      NAME 'edge'
      STYLE
        COLOR 0 0 0
      END
    END
  END

END                         # End of MAP object and map file

###########################################################################
# i attempt to create an image with this line in it
###########################################################################
shp2img -m nysf.map -i png -o nysf.png -s 800 600 -all_debug 9

###########################################################################
# result - no line
# my question is - do these tools support lines?
# if so, how do i make them visible?
# thanks in advance




More information about the mapserver-users mailing list