<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://m.tkk7.com/zhyiwww   
    |----------------------------------------------------------------------------------------|
    posted on 2009-02-20 17:40 zhyiwww 閱讀(517) 評論(0)  編輯  收藏 所屬分類: gis
    主站蜘蛛池模板: 直接进入免费看黄的网站| 亚洲精品天天影视综合网 | 亚洲精品日韩中文字幕久久久| 无码日韩人妻av一区免费| 国产免费伦精品一区二区三区| 久久亚洲中文字幕精品有坂深雪 | 亚洲男女一区二区三区| 亚洲精品无码久久毛片| 天堂在线免费观看中文版| 无码免费一区二区三区免费播放| aa在线免费观看| 西西人体大胆免费视频| 久久亚洲精品11p| 亚洲AV无码一区二区三区鸳鸯影院| 亚洲剧场午夜在线观看| 亚洲精品中文字幕无乱码| 亚洲免费电影网站| 亚洲色欲色欱wwW在线| 亚洲精品中文字幕无乱码麻豆| 亚洲AV无码国产精品色| 国产成人人综合亚洲欧美丁香花| 亚洲Av永久无码精品黑人| 猫咪www免费人成网站| 男的把j放进女人下面视频免费| 久久ww精品w免费人成| 永久免费毛片在线播放| 免费看AV毛片一区二区三区| 日韩一卡2卡3卡4卡新区亚洲| 国精无码欧精品亚洲一区| 亚洲91av视频| 免费一级全黄少妇性色生活片 | 国产精品亚洲综合一区| 亚洲国产一区二区a毛片| 亚洲无成人网77777| 国产高潮久久免费观看| 永久免费视频网站在线观看| 亚洲va中文字幕无码| 亚洲爆乳精品无码一区二区三区| 亚洲欧美日韩综合俺去了| 三年片在线观看免费| 丁香亚洲综合五月天婷婷|