<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    zhyiwww
    用平實的筆,記錄編程路上的點點滴滴………
    posts - 536,comments - 394,trackbacks - 0
    在windows下面配置mapserver,用shp做數據源,總是出現如下的錯誤,
    loadLayer(): Unknown identifier. Parsing error near (:):(line 46)
    嘗試多次也沒有找到結果,最后,找到了。
    主要是在map的文件
    我的錯誤的配置是:

    # Map file generated by QGIS version 0.7.4
    # Edit this file to customize for your interface
    # Not all sections are complete. See comments for details.
    NAME road
    STATUS ON

    # Map image size. Change size as desired
    SIZE 256 256
    #
    # Start of web interface definition. Only the TEMPLATE parameter
    # must be specified to display a map. See Mapserver documentation
    #
    WEB
    ? # HEADER
    ? # TEMPLATE
    ? # FOOTER
    MINSCALE 1
    ? MAXSCALE 8
    # Set IMAGEPATH to the path where mapserver should
    # write its output
    ?IMAGEPATH 'd:\\tmp\\'
    # Set IMAGEURL to the url that points to IMAGEPATH
    ?#IMAGEURL '/map_output/'
    END

    PROJECTION
    ??? "init=epsg:4326"
    END

    # Extent based on full extent of QGIS view
    EXTENT 115.275 39.2204 117.475 40.9462

    UNITS METERS

    IMAGECOLOR 255 255 255
    IMAGETYPE gif
    # Projection definition
    # Projections are not currenlty supported. If desired, add your own
    # projection information based on Mapserver documentation.
    #
    LAYER
    ? NAME road
    ? TYPE LINE
    ? STATUS ON
    ? DATA? d:\\wwwroot\\shp\\Rbeijing.shp
    ? CLASS
    ??? NAME "ROAD"
    ??? # TEMPLATE
    ??? OUTLINECOLOR 112 238 238
    ? END
    END
    END # Map File

    正確的配置是:

    # Map file generated by QGIS version 0.7.4
    # Edit this file to customize for your interface
    # Not all sections are complete. See comments for details.
    NAME road
    STATUS ON

    # Map image size. Change size as desired
    SIZE 256 256
    #
    # Start of web interface definition. Only the TEMPLATE parameter
    # must be specified to display a map. See Mapserver documentation
    #
    WEB
    ? # HEADER
    ? # TEMPLATE
    ? # FOOTER
    MINSCALE 1
    ? MAXSCALE 8
    # Set IMAGEPATH to the path where mapserver should
    # write its output
    ?IMAGEPATH 'd:\\tmp\\'
    # Set IMAGEURL to the url that points to IMAGEPATH
    ?#IMAGEURL '/map_output/'
    END

    PROJECTION
    ??? "init=epsg:4326"
    END

    # Extent based on full extent of QGIS view
    EXTENT 115.275 39.2204 117.475 40.9462

    UNITS METERS

    IMAGECOLOR 255 255 255
    IMAGETYPE gif
    # Projection definition
    # Projections are not currenlty supported. If desired, add your own
    # projection information based on Mapserver documentation.
    #
    LAYER
    ? NAME road
    ? TYPE LINE
    ? STATUS ON
    ? DATA? "d:\\wwwroot\\shp\\Rbeijing.shp"
    ? CLASS
    ??? NAME "ROAD"
    ??? # TEMPLATE
    ??? OUTLINECOLOR 112 238 238
    ? END
    END
    END # Map File

    這個就是正確的配置,僅僅是引號的差別。




    |----------------------------------------------------------------------------------------|
                               版權聲明  版權所有 @zhyiwww
                引用請注明來源 http://www.tkk7.com/zhyiwww   
    |----------------------------------------------------------------------------------------|
    posted on 2009-02-20 17:40 zhyiwww 閱讀(517) 評論(0)  編輯  收藏 所屬分類: gis
    主站蜘蛛池模板: 国产免费资源高清小视频在线观看| 日本久久久免费高清| 久久久久久AV无码免费网站| 野花香高清在线观看视频播放免费| 中文字幕在线免费播放| 午夜无码A级毛片免费视频| 国产桃色在线成免费视频| 国产猛烈高潮尖叫视频免费| 国产亚洲精品成人a v小说| 国产成人精品日本亚洲| 亚洲狠狠成人综合网| 三级网站免费观看| 亚洲免费综合色在线视频| 亚洲一区二区高清| 亚洲人成色777777老人头| 中文字幕手机在线免费看电影| 日本在线高清免费爱做网站| 亚洲国产精品日韩专区AV| 亚洲国产精品无码久久久| 一级毛片正片免费视频手机看| 亚洲视频免费在线播放| 亚洲福利在线播放| 亚洲精品乱码久久久久久V| 午夜网站在线观看免费完整高清观看| 毛片免费观看网址| 亚洲AV色香蕉一区二区| 香蕉97碰碰视频免费| 成人一a毛片免费视频| 亚洲精品国产成人| 亚洲免费视频在线观看| 在线精品亚洲一区二区三区| 免费国产在线精品一区 | 国产亚洲精品免费视频播放| 成人午夜视频免费| 久久精品国产99国产精品亚洲| 日韩av无码久久精品免费| 亚洲国产精品婷婷久久| 96免费精品视频在线观看| 亚洲精品美女久久久久| 亚洲毛片免费视频| 国产成+人+综合+亚洲专|