geojson2kml


Namegeojson2kml JSON
Version 0.2.0 PyPI version JSON
download
home_page
SummaryConvert GeoJSON to KML file
upload_time2023-04-06 23:28:06
maintainer
docs_urlNone
author
requires_python>=3.8
license
keywords geojson kml
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # geojson-to-kml

Convert GeoJSON to KML file

```shell
python -m geojson2kml "examples/example1.geojson" --outdir examples
```


### Display

The name of the feature will be taken from the `name` attribute if set, otherwise it will use the `id` of the feature. The attributes set in properites will be displayed as a table. 

```geojson
{
    "type": "Feature",
    "id": 1,
    "name": "ABBOTT NEIGHBORHOOD PARK",
    "geometry": {
        "type": "Point",
        "coordinates": [
            -80.870885,
            35.215151
        ]
    },
    "properties": {
        "name": "ABBOTT NEIGHBORHOOD PARK",
        "address": "1300  SPRUCE ST"
    }
}
```


### Folders

You can group features by folder by speciying `--folder-attribute` and the name of the property attribute that should be used to group by. 


### Styling

You can configure the styling of objects by adding these as properties on the feature:

| Property            | Default                                                    |
| ------------------- | ---------------------------------------------------------- |
| iconstyle.icon.href | https://maps.google.com/mapfiles/kml/paddle/red-circle.png |
| iconstyle.color     | FFFFFFFF                                                   |
| iconstyle.scale     | 1.0                                                        |
| labelstyle.scale    | 1.0                                                        |
| linestyle.color     | FFFFFFFF                                                   |
| linestyle.width     | 5                                                          |
| polystyle.color     | FFFFFFFF                                                   |

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "geojson2kml",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": "",
    "keywords": "geojson,KML",
    "author": "",
    "author_email": "Alex Guinman <alex@guinman.id.au>",
    "download_url": "https://files.pythonhosted.org/packages/f4/87/c4d2a28f40a4477cf89003ea81797a591303d79af6dd0c7b0f30eec8d94e/geojson2kml-0.2.0.tar.gz",
    "platform": null,
    "description": "# geojson-to-kml\n\nConvert GeoJSON to KML file\n\n```shell\npython -m geojson2kml \"examples/example1.geojson\" --outdir examples\n```\n\n\n### Display\n\nThe name of the feature will be taken from the `name` attribute if set, otherwise it will use the `id` of the feature. The attributes set in properites will be displayed as a table. \n\n```geojson\n{\n    \"type\": \"Feature\",\n    \"id\": 1,\n    \"name\": \"ABBOTT NEIGHBORHOOD PARK\",\n    \"geometry\": {\n        \"type\": \"Point\",\n        \"coordinates\": [\n            -80.870885,\n            35.215151\n        ]\n    },\n    \"properties\": {\n        \"name\": \"ABBOTT NEIGHBORHOOD PARK\",\n        \"address\": \"1300  SPRUCE ST\"\n    }\n}\n```\n\n\n### Folders\n\nYou can group features by folder by speciying `--folder-attribute` and the name of the property attribute that should be used to group by. \n\n\n### Styling\n\nYou can configure the styling of objects by adding these as properties on the feature:\n\n| Property            | Default                                                    |\n| ------------------- | ---------------------------------------------------------- |\n| iconstyle.icon.href | https://maps.google.com/mapfiles/kml/paddle/red-circle.png |\n| iconstyle.color     | FFFFFFFF                                                   |\n| iconstyle.scale     | 1.0                                                        |\n| labelstyle.scale    | 1.0                                                        |\n| linestyle.color     | FFFFFFFF                                                   |\n| linestyle.width     | 5                                                          |\n| polystyle.color     | FFFFFFFF                                                   |\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "Convert GeoJSON to KML file",
    "version": "0.2.0",
    "split_keywords": [
        "geojson",
        "kml"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "9aa7a1d9873aab886ede75c1733a89a38c5c6e440c1c536a2dedb644eba24103",
                "md5": "9c5965c4186f4c9738b94e2e9b71b343",
                "sha256": "81e49bf652e6a15c9994ce2563e500e4065a54435f4bbab1a4da0ed57aeba96c"
            },
            "downloads": -1,
            "filename": "geojson2kml-0.2.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "9c5965c4186f4c9738b94e2e9b71b343",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 5792,
            "upload_time": "2023-04-06T23:28:03",
            "upload_time_iso_8601": "2023-04-06T23:28:03.701631Z",
            "url": "https://files.pythonhosted.org/packages/9a/a7/a1d9873aab886ede75c1733a89a38c5c6e440c1c536a2dedb644eba24103/geojson2kml-0.2.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f487c4d2a28f40a4477cf89003ea81797a591303d79af6dd0c7b0f30eec8d94e",
                "md5": "5ce960918f6743662ff0bfc3953b4c3d",
                "sha256": "13694b09257df17e7cb31b5f44a48445e92cb70ab9952e7d947c916d542359b9"
            },
            "downloads": -1,
            "filename": "geojson2kml-0.2.0.tar.gz",
            "has_sig": false,
            "md5_digest": "5ce960918f6743662ff0bfc3953b4c3d",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 7951,
            "upload_time": "2023-04-06T23:28:06",
            "upload_time_iso_8601": "2023-04-06T23:28:06.059466Z",
            "url": "https://files.pythonhosted.org/packages/f4/87/c4d2a28f40a4477cf89003ea81797a591303d79af6dd0c7b0f30eec8d94e/geojson2kml-0.2.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-04-06 23:28:06",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "lcname": "geojson2kml"
}
        
Elapsed time: 0.07997s