<div dir="ltr"><div><div><div><div>hi all,<br><br></div>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:<br><br>MAP<br> CONFIG "MS_ERRORFILE" "d:\ms_error.txt"<br> DEBUG 5<br> DEFRESOLUTION 96<br> EXTENT 36623289.7484795 3778220.03563055 36627315.6082067 3780849.75397967<br> FONTSET "C:\\Program Files (x86)\\MapManager\\templates\\font.list"<br> IMAGETYPE "png24"<br> NAME "MS"<br> RESOLUTION 96<br> SHAPEPATH "D:\\OutSource\\Gis\\Data_new"<br> SIZE 843 551<br> STATUS ON<br> SYMBOLSET "C:\\Program Files (x86)\\MapManager\\templates\\symbols.sym"<br> UNITS METERS<br><br> OUTPUTFORMAT<br> NAME "png24"<br> MIMETYPE "image/png"<br> DRIVER "AGG/PNG"<br> EXTENSION "png"<br> IMAGEMODE RGB<br> TRANSPARENT FALSE<br> END # OUTPUTFORMAT<br><br> OUTPUTFORMAT<br> NAME "print"<br> MIMETYPE "image/png"<br> DRIVER "AGG/PNG"<br> EXTENSION "png"<br> IMAGEMODE RGB<br> TRANSPARENT FALSE<br> END # OUTPUTFORMAT<br><br> LEGEND<br> KEYSIZE 20 10<br> KEYSPACING 5 5<br> LABEL<br> SIZE MEDIUM<br> OFFSET 0 0<br> SHADOWSIZE 1 1<br> TYPE BITMAP<br> END # LABEL<br> STATUS OFF<br> END # LEGEND<br><br> QUERYMAP<br> SIZE -1 -1<br> STATUS OFF<br> STYLE HILITE<br> END # QUERYMAP<br><br> SCALEBAR<br> INTERVALS 4<br> LABEL<br> SIZE MEDIUM<br> OFFSET 0 0<br> SHADOWSIZE 1 1<br> TYPE BITMAP<br> END # LABEL<br> SIZE 200 3<br> STATUS OFF<br> UNITS MILES<br> END # SCALEBAR<br><br> WEB<br> METADATA<br> "distance_units" "MS_METERS"<br> "mapmanager_version" "1.0.0.0"<br> END # METADATA<br> END # WEB<br><br> LAYER<br> CONNECTION "Sensor.shp"<br> CONNECTIONTYPE OGR<br> DATA "Sensor"<br> DEBUG 5<br> NAME "Sensor"<br> STATUS ON<br> TILEITEM "Sensor"<br> TYPE LINE<br> UNITS METERS<br> CLASS<br> NAME "line_color"<br> STYLE<br> COLOR 255 41 9<br> END # STYLE<br> END # CLASS<br> END # LAYER<br><br>END # MAP<br><br></div>the log file has such line: msOGRFileNextShape: Returning MS_DONE (no more shapes)<br><br></div>And I aslo try to load it into PostGis and the column the_geom is empty, postgis layer can't show either.<br><br></div>But I load sensor.shp by SAGA (<a href="http://www.saga-gis.org/en/index.html">http://www.saga-gis.org/en/index.html</a>), it can show what I expected as follow.<img src="cid:ii_ibke9egd1_14e48588685e0588" height="151" width="517"><br><br clear="all"><div><div><div><div><div><div><div>So, my question is why Mapserver can't show such shp file? <br><br></div><div>Thanks for you help<br></div><div>-- <br><div class="gmail_signature"><div dir="ltr">论坛系统,欢迎使用<a href="http://blog.csdn.net/tiplip/article/details/10980397" target="_blank">http://blog.csdn.net/tiplip/article/details/10980397</a></div></div>
</div></div></div></div></div></div></div></div>