资源简介
libkml-1.2源码包,可以在linux下编译,包括第三方库expat,uriparser等

代码片段和文件信息
#!/usr/bin/env python
# Copyright 2008 Google Inc. All rights reserved.
#
# Redistribution and use in source and binary forms with or without
# modification are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright notice
# this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright notice
# this list of conditions and the following disclaimer in the documentation
# and/or other materials provided with the distribution.
# 3. Neither the name of Google Inc. nor the names of its contributors may be
# used to endorse or promote products derived from this software without
# specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ‘‘AS IS‘‘ AND ANY EXPRESS OR IMPLIED
# WARRANTIES INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT INDIRECT INCIDENTAL
# SPECIAL EXEMPLARY OR CONSEQUENTIAL DAMAGES (INCLUDING BUT NOT LIMITED TO
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE DATA OR PROFITS;
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY
# WHETHER IN CONTRACT STRICT LIABILITY OR TORT (INCLUDING NEGLIGENCE OR
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# A simple graphical application that parses a local or remote KML or KMZ file
# and displays the parsed Features in a tree format.
# Usage: call ./domviewer.py from a terminal command line then use the
# File > Open File command to load a file. You may also supply a file
# (local filesystem or over http) to open on the command line as
# ./domviewer.py input.kml
import os
import sys
import tempfile
import urllib2
import zipfile
from idlelib.TreeWidget import TreeItem TreeNode
from Tkinter import *
from tkFileDialog import askopenfilename
from tkSimpleDialog import askstring
from tkMessageBox import showwarning
import kmldom
class DomTreeItem(TreeItem):
def __init__(self element):
self.__element = element
if element.has_name():
self.__name = element.get_name()
elif element.IsA(kmldom.Type_Document):
self.__name = ‘Unnamed Document‘
elif element.IsA(kmldom.Type_Folder):
self.__name = ‘Unnamed Folder‘
elif element.IsA(kmldom.Type_Placemark):
self.__name = ‘Unnamed Placemark‘
elif element.IsA(kmldom.Type_ScreenOverlay):
self.__name = ‘Unnamed ScreenOverlay‘
elif element.IsA(kmldom.Type_PhotoOverlay):
self.__name = ‘Unnamed PhotoOverlay‘
elif element.IsA(kmldom.Type_GroundOverlay):
self.__name = ‘Unnamed GroundOverlay‘
elif element.IsA(kmldom.Type_Networklink):
self.__name = ‘Unnamed Networklink‘
else:
self.__name = ‘Unknown Feature‘
def GetText(self):
return se
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2010-02-19 15:34 libkml-release-1.0\
文件 23 2010-02-19 15:34 libkml-release-1.0\AUTHORS
文件 1437 2010-02-19 15:34 libkml-release-1.0\COPYING
文件 196 2010-02-19 15:34 libkml-release-1.0\ChangeLog
文件 699 2010-02-19 15:34 libkml-release-1.0\DEPENDENCIES
文件 9236 2010-02-19 15:34 libkml-release-1.0\INSTALL
文件 154 2010-02-19 15:34 libkml-release-1.0\Makefile.am
文件 0 2010-02-19 15:34 libkml-release-1.0\NEWS
文件 561 2010-02-19 15:34 libkml-release-1.0\README
文件 430 2010-02-19 15:34 libkml-release-1.0\autogen.sh
文件 7685 2010-02-19 15:34 libkml-release-1.0\configure.ac
目录 0 2010-02-19 15:34 libkml-release-1.0\doc\
文件 101 2010-02-19 15:34 libkml-release-1.0\doc\README
目录 0 2010-02-19 15:34 libkml-release-1.0\examples\
文件 147 2010-02-19 15:34 libkml-release-1.0\examples\Makefile.am
目录 0 2010-02-19 15:34 libkml-release-1.0\examples\domviewer\
文件 29 2010-02-19 15:34 libkml-release-1.0\examples\domviewer\Makefile.am
文件 6899 2010-02-19 15:34 libkml-release-1.0\examples\domviewer\domviewer.py
目录 0 2010-02-19 15:34 libkml-release-1.0\examples\engine\
文件 3236 2010-02-19 15:34 libkml-release-1.0\examples\engine\Makefile.am
文件 3838 2010-02-19 15:34 libkml-release-1.0\examples\engine\balloonwalker.cc
文件 3122 2010-02-19 15:34 libkml-release-1.0\examples\engine\change.cc
文件 3496 2010-02-19 15:34 libkml-release-1.0\examples\engine\clone.cc
文件 4245 2010-02-19 15:34 libkml-release-1.0\examples\engine\csv2kml.cc
文件 3545 2010-02-19 15:34 libkml-release-1.0\examples\engine\import.cc
文件 2773 2010-02-19 15:34 libkml-release-1.0\examples\engine\inlinest
文件 2829 2010-02-19 15:34 libkml-release-1.0\examples\engine\kml2kmz.cc
文件 3035 2010-02-19 15:34 libkml-release-1.0\examples\engine\kmlfile.cc
文件 3255 2010-02-19 15:34 libkml-release-1.0\examples\engine\kmzcheckli
文件 3632 2010-02-19 15:34 libkml-release-1.0\examples\engine\oldschema.cc
文件 2614 2010-02-19 15:34 libkml-release-1.0\examples\engine\parsebig.cc
............此处省略1169个文件信息
相关资源
- 用foobar2000听google音乐[更新一下]
- Google Earth KML文件生成工具
- google earth 高程点坐标提取软件
- Google架构安全白皮书
- Google Earth在地质勘探中的应用
- The datacenter as a computer_Final-Draft
- Google OCR API源代码和神经网络识别OC
- Google DeepMind的David Silver的强化学习课
- Google论文\“Wide & Deep Learning for Recom
- googlemappoi内容解析
- csv 转换为google earth的轨迹kml
- Google Chrome 49.0.2623.110 便携版(免安装
- arcmap中加载谷歌地图ArcBruTile
- Google Play结算库V2.0.3 接入
- Google Earth 中国国界轮廓.kml
- GoogleEarth高程数据采集工具V1.1.0.1(和
- Google PPT模板
- 中国各省、直辖市、自治区界线,k
- google_usb_driver
- Google book Downloader 谷歌电子书PDF工具
- google earth api
- SGGS-Google earth拼图工具
- ADA_CDMATool_V2-网优插件
- Google Map api V3 (3.9.12)的离线开发包
- 浪潮之巅 清晰pdf版
- 这就是OKR,中文版,非扫描
- 百度_Google_Sogou三种图像搜索引擎功能
- 再不迷路:谷歌地图革命催生新产业
- google地球专业版
- Google官网下拉刷新SwipeRefreshLayout
评论
共有 条评论