GeoJSON工具包
gjtk的Python项目详细描述
gjtk是用于处理GeoJSON的库。它的目标是尽可能符合规范(希望很快standard)。
用法
importgjtk
模块
gjtk.extract
Method | Description |
---|---|
^{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
Method | Description |
---|---|
^{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
Method | Description |
---|---|
^{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
Method | Description |
---|---|
^{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