GeoJSON工具包

gjtk的Python项目详细描述


gjtk是用于处理GeoJSON的库。它的目标是尽可能符合规范(希望很快standard)。

Build StatusPyPI Version

安装

gjtkPyPI上可用。

pip install gjtk

用法

importgjtk

模块

gjtk.extract

MethodDescription
^{tt4}$returns all the Positions in a valid GeoJSON object
^{tt5}$returns all the Features in a valid GeoJSON object
^{tt6}$returns all the Geometries in a valid GeoJSON object

gjtk.generate

MethodDescription
^{tt8}$returns a valid Point
^{tt9}$returns a valid MultiPoint
^{tt10}$returns a valid LineString
^{tt11}$returns a valid MultiLineString
^{tt12}$returns a valid Polygon
^{tt13}$returns a valid MultiPolygon
^{tt14}$returns a valid GeometryCollection
^{tt15}$returns a valid Feature
^{tt16}$returns a valid FeatureCollection

gjtk.random

MethodDescription
^{tt18}$returns a random Position
^{tt19}$returns random Point coordinates
^{tt20}$returns random MultiPoint coordinates
^{tt21}$returns random LineString coordinates
^{tt22}$returns random LinearRing coordinates
^{tt23}$returns random MultiLineString coordinates
^{tt24}$returns random Polygon coordinates
^{tt25}$returns random MultiPolygon coordinates
^{tt26}$returns a random Geometry
^{tt27}$returns a random Point
^{tt28}$returns a random MultiPoint
^{tt29}$returns a random LineString
^{tt30}$returns a random MultiLineString
^{tt31}$returns a random Polygon
^{tt32}$returns a random MultiPolygon
^{tt33}$returns a random GeometryCollection
^{tt34}$returns a random Feature
^{tt35}$returns a random FeatureCollection
^{tt36}$returns a random CRS
^{tt37}$returns a random Link
^{tt38}$returns a random Bbox

gjtk.validate

MethodDescription
^{tt40}$returns ^{tt41}$ when passed a valid GeoJSON object, otherwise ^{tt42}$
^{tt43}$returns ^{tt41}$ when passed a valid Geometry, otherwise ^{tt42}$
^{tt46}$returns ^{tt41}$ when passed a valid Position, otherwise ^{tt42}$
^{tt49}$returns ^{tt41}$ when passed valid Point coordinates, otherwise ^{tt42}$
^{tt52}$returns ^{tt41}$ when passed valid MultiPoint coordinates, otherwise ^{tt42}$
^{tt55}$returns ^{tt41}$ when passed valid LineString coordinates, otherwise ^{tt42}$
^{tt58}$returns ^{tt41}$ when passed valid LinearRing coordinates, otherwise ^{tt42}$
^{tt61}$returns ^{tt41}$ when passed valid MultiLineString coordinates, otherwise ^{tt42}$
^{tt64}$returns ^{tt41}$ when passed valid Polygon coordinates, otherwise ^{tt42}$
^{tt67}$returns ^{tt41}$ when passed valid MultiPolygon coordinates, otherwise ^{tt42}$
^{tt70}$returns ^{tt41}$ when passed a valid Point, otherwise ^{tt42}$
^{tt73}$returns ^{tt41}$ when passed a valid MultiPoint, otherwise ^{tt42}$
^{tt76}$returns ^{tt41}$ when passed a valid LineString, otherwise ^{tt42}$
^{tt79}$returns ^{tt41}$ when passed a valid MultiLineString, otherwise ^{tt42}$
^{tt82}$returns ^{tt41}$ when passed a valid Polygon, otherwise ^{tt42}$
^{tt85}$returns ^{tt41}$ when passed a valid MultiPolygon, otherwise ^{tt42}$
^{tt88}$returns ^{tt41}$ when passed a valid GeometryCollection, otherwise ^{tt42}$
^{tt91}$returns ^{tt41}$ when passed a valid Feature, otherwise ^{tt42}$
^{tt94}$returns ^{tt41}$ when passed a valid Feature Collection, otherwise ^{tt42}$
^{tt97}$returns ^{tt41}$ when passed a valid CRS, otherwise ^{tt42}$
^{tt100}$returns ^{tt41}$ when passed a GeoJSON object that validly specifies a CRS, otherwise ^{tt42}$
^{tt103}$returns ^{tt41}$ when passed a valid Link, otherwise ^{tt42}$
^{tt106}$returns ^{tt41}$ when passed a valid Bbox, otherwise ^{tt42}$
^{tt109}$returns ^{tt41}$ when passed a GeoJSON object that validly specifies a Bbox, otherwise ^{tt42}$
^{tt112}$returns ^{tt41}$ when all parameters are identical Positions, otherwise ^{tt42}$
^{tt115}$returns ^{tt41}$ when one LinearRing contains another, otherwise ^{tt42}$

许可证

版权所有(c)2016 David Tucker

这个库是免费软件;您可以重新分发和/或修改它 根据由 自由软件基金会;许可证的2.1版,或 你的选择)任何更高版本。

这个图书馆的发行是希望它会有用,但是 没有任何保证;甚至没有 适销性或适合某一特定目的的适销性。看小GNU 一般公共许可证了解更多详细信息。

你应该收到GNU Lesser通用公共许可证的副本 如果没有,写信给自由软件基金会, 美国马萨诸塞州波士顿富兰克林街51号,5楼,邮编:02110-1301

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
javajaxb在嵌套节点中生成xmlns:xsi声明   java重定向到youtube以上传jsp上可用的视频   java提高了JVM和ANT的性能   java如何将返回的JSON数据放在HTML表单中   java如何发送XWWWFORMURLENCODE在重新授权   java为什么jvm XX:+EliminateAllocations失败   堆移除和重建方法?(爪哇)   Stanford NPL in Spark(Scala)应用程序运行到Java堆空间(Java.lang.OutOfMemoryError)   调试java中打开/关闭println的任何方式(详细模式)   java IntelliJ在鼠标悬停时显示JavaDocs工具提示   Olingo Odata Java中的自动扩展选项   json将postgres文本arry转换为java列表?   oop需要帮助推断Java代码   复选框的java添加操作侦听器AbstractTableModel   java如何从公共静态void main(String[]args)传递值   java从数据库中获取大值   java Processing 2.0电影从jar运行时无法打开电影文件   java如何在不使用应用程序的情况下刷新活动?   尝试将JSON解析为ListView时的Android:JSON parse:null对象引用