[mapserver-users] shp layer can't be drawn

wei cheng chengwei02 at gmail.com
Tue Jun 30 23:41:42 PDT 2015


hi all,

I have one shp file called sensor.shp, based on which I compose mapfile and
want to view via latest Mapserver MapManager, my mapfile is:

MAP
  CONFIG "MS_ERRORFILE" "d:\ms_error.txt"
  DEBUG 5
  DEFRESOLUTION 96
  EXTENT 36623289.7484795 3778220.03563055 36627315.6082067 3780849.75397967
  FONTSET "C:\\Program Files (x86)\\MapManager\\templates\\font.list"
  IMAGETYPE "png24"
  NAME "MS"
  RESOLUTION 96
  SHAPEPATH "D:\\OutSource\\Gis\\Data_new"
  SIZE 843 551
  STATUS ON
  SYMBOLSET "C:\\Program Files (x86)\\MapManager\\templates\\symbols.sym"
  UNITS METERS

  OUTPUTFORMAT
    NAME "png24"
    MIMETYPE "image/png"
    DRIVER "AGG/PNG"
    EXTENSION "png"
    IMAGEMODE RGB
    TRANSPARENT FALSE
  END # OUTPUTFORMAT

  OUTPUTFORMAT
    NAME "print"
    MIMETYPE "image/png"
    DRIVER "AGG/PNG"
    EXTENSION "png"
    IMAGEMODE RGB
    TRANSPARENT FALSE
  END # OUTPUTFORMAT

  LEGEND
    KEYSIZE 20 10
    KEYSPACING 5 5
    LABEL
      SIZE MEDIUM
      OFFSET 0 0
      SHADOWSIZE 1 1
      TYPE BITMAP
    END # LABEL
    STATUS OFF
  END # LEGEND

  QUERYMAP
    SIZE -1 -1
    STATUS OFF
    STYLE HILITE
  END # QUERYMAP

  SCALEBAR
    INTERVALS 4
    LABEL
      SIZE MEDIUM
      OFFSET 0 0
      SHADOWSIZE 1 1
      TYPE BITMAP
    END # LABEL
    SIZE 200 3
    STATUS OFF
    UNITS MILES
  END # SCALEBAR

  WEB
    METADATA
      "distance_units"    "MS_METERS"
      "mapmanager_version"    "1.0.0.0"
    END # METADATA
  END # WEB

  LAYER
    CONNECTION "Sensor.shp"
    CONNECTIONTYPE OGR
    DATA "Sensor"
    DEBUG 5
    NAME "Sensor"
    STATUS ON
    TILEITEM "Sensor"
    TYPE LINE
    UNITS METERS
    CLASS
      NAME "line_color"
      STYLE
        COLOR 255 41 9
      END # STYLE
    END # CLASS
  END # LAYER

END # MAP

the log file has such line: msOGRFileNextShape: Returning MS_DONE (no more
shapes)

And I aslo try to load it into PostGis and the column the_geom is empty,
postgis layer can't show either.

But I load sensor.shp by SAGA (http://www.saga-gis.org/en/index.html), it
can show what I expected as follow.
​
So, my question is why Mapserver can't show such shp file?

Thanks for you help
-- 
论坛系统,欢迎使用http://blog.csdn.net/tiplip/article/details/10980397
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20150701/f9f7012f/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sensor.png
Type: image/png
Size: 2104 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20150701/f9f7012f/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Data_new.zip
Type: application/zip
Size: 33057 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20150701/f9f7012f/attachment.zip>


More information about the MapServer-users mailing list