hi thanks for your kind tips, it's extent I define is not correct, very shy:(
In fact, I have checked this shp file via gdalinfo before, and I have multiple shp files but only this shp file does not match the others but I think they are the same. Very thankful, it works now the right extent is: EXTENT 36621438.0845178 3775573.64257617 36628397.8256557 3780119.79177551 the former wrong extent: EXTENT 36623289.7484795 3778220.03563055 36627315.6082067 3780849.75397967 2015-07-07 21:40 GMT+08:00 Stephen Woodbridge <[email protected]>: > Wei, > > I would suggest using gdalinfo to check on what projection the shp file is > in and verify the extents of the data. The make sure you mapfile has the > same projection info on the LAYER. > > -Steve W > > > -------- Forwarded Message -------- > Subject: Fwd: Mapserver Fail to draw shp layer > Date: Tue, 7 Jul 2015 13:35:01 +0800 > From: wei cheng <[email protected]> > To: [email protected] > > > > hiStephen > < > http://www.linkedin.com/profile/view?id=62685316&authType=name&authToken=nyFl&goback=&trk=abook_conn > > > > I'm sorry to interrupt you but I encounter one tricky issue for me that > I can't skip over. > > I have posted to mapserver users mail group, however, it seems not > published, I can't find it at least here > <http://lists.osgeo.org/pipermail/mapserver-users/> > > Thanks and BRs. > > /Wei > ---------- Forwarded message ---------- > From: *wei cheng* <[email protected] <mailto:[email protected]>> > Date: 2015-07-06 9:27 GMT+08:00 > Subject: Mapserver Fail to draw shp layer > To: [email protected] <mailto: > [email protected]> > Cc: [email protected] <mailto:[email protected]> > > > 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 > > > > -- > 论坛系统,欢迎使用http://blog.csdn.net/tiplip/article/details/10980397 > > > _______________________________________________ > mapserver-users mailing list > [email protected] > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- 论坛系统,欢迎使用http://blog.csdn.net/tiplip/article/details/10980397
_______________________________________________ mapserver-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapserver-users
