# GeoReader
Georeader is a module used to read common spatial data formats such as Esri ShapeFiles, GeoPackage, Geography Markup Language, CSV,
GeoJSON, Web Feature Service, Esri Rest Service and Keyhole Markup Language. As well it can also hanlded compressed file type such as 7z, ZIP, KMZ files.
This module makes use of other packages to read the data such as GeoPandas, Fiona, GDAL, and FastKMl.
## Basic Usage
```python
>>> from georeader import GeoReader as gr
>>> georeader = gr("./cities_borders.gpkg")
# List layers.
>>> georeader.list_layers()
["Belfast", "Edinburgh", "London", ...]
# Get Layer Count
>>> georeader.get_layer_count()
1000
# Layer Functions
>>> layer = georeader.get_layer("Edinburgh")
>>> layer.GetName()
"Edinburgh"
>>> layer.get_schema()
["id", "district", ...]
>>> layer.get_feature_count()
1234
>>> type(layer.get_dataframe())
Geopandas.Dataframe
```
## Building Wheel file
```shell
> python .\setup.py bdist_wheel
```
## Installation
```shell
> pip install dist/georeader-*.*.*-py3-none-any.whl
```
There are Some issues installing Geopandas through git so will have to install manually.
Navigate to https://www.lfd.uci.edu/~gohlke/pythonlibs/ in browser and download
the latest version of Fiona, Gdal and Shapely and pip install.
tested Versions
```python
"GDAL>=3.3.3",
"Fiona>=1.8.2",
"Shapely>=1.8.0"
```
once you have done that pip install geopandas :
```shell
> pip install geopandas
```
and hopefully you should be able to import georeader module as shown above.
## Running the tests
## Author
## License
None
Raw data
{
"_id": null,
"home_page": "https://github.com/Improvement-Service/georeader",
"name": "georeader",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.7",
"maintainer_email": "",
"keywords": "geo development",
"author": "Nathan Atkinson",
"author_email": "N00dlnate@gmail.com",
"download_url": "",
"platform": null,
"description": "# GeoReader\nGeoreader is a module used to read common spatial data formats such as Esri ShapeFiles, GeoPackage, Geography Markup Language, CSV, \nGeoJSON, Web Feature Service, Esri Rest Service and Keyhole Markup Language. As well it can also hanlded compressed file type such as 7z, ZIP, KMZ files.\n\nThis module makes use of other packages to read the data such as GeoPandas, Fiona, GDAL, and FastKMl.\n\n\n## Basic Usage\n\n```python\n>>> from georeader import GeoReader as gr\n>>> georeader = gr(\"./cities_borders.gpkg\")\n\n# List layers.\n>>> georeader.list_layers()\n [\"Belfast\", \"Edinburgh\", \"London\", ...]\n\n# Get Layer Count\n>>> georeader.get_layer_count()\n 1000\n\n# Layer Functions \n>>> layer = georeader.get_layer(\"Edinburgh\")\n>>> layer.GetName()\n \"Edinburgh\"\n \n>>> layer.get_schema()\n [\"id\", \"district\", ...]\n \n>>> layer.get_feature_count()\n 1234\n \n>>> type(layer.get_dataframe())\n Geopandas.Dataframe\n\n```\n## Building Wheel file\n```shell\n> python .\\setup.py bdist_wheel\n\n```\n\n## Installation\n\n```shell\n> pip install dist/georeader-*.*.*-py3-none-any.whl\n```\nThere are Some issues installing Geopandas through git so will have to install manually.\nNavigate to https://www.lfd.uci.edu/~gohlke/pythonlibs/ in browser and download \nthe latest version of Fiona, Gdal and Shapely and pip install.\n\ntested Versions\n```python\n \"GDAL>=3.3.3\",\n \"Fiona>=1.8.2\",\n \"Shapely>=1.8.0\"\n```\nonce you have done that pip install geopandas :\n```shell\n> pip install geopandas\n```\nand hopefully you should be able to import georeader module as shown above.\n\n\n## Running the tests\n\n## Author\n\n## License\n\nNone\n\n\n\n\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Module for reading spatial data files and services",
"version": "0.1.10",
"project_urls": {
"Homepage": "https://github.com/Improvement-Service/georeader"
},
"split_keywords": [
"geo",
"development"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "0097a1f5a00db285e7ca06f1d4d9abed8883ba546ddf39919a8b6ce02eaf98e5",
"md5": "f7115cc32606daf38da5fbad039f0256",
"sha256": "42a31d51cb8d52997abf670fbb71e6e451cf017e3f027c953cf8c179f985a4fa"
},
"downloads": -1,
"filename": "georeader-0.1.10-py3-none-any.whl",
"has_sig": false,
"md5_digest": "f7115cc32606daf38da5fbad039f0256",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.7",
"size": 60458,
"upload_time": "2023-10-30T14:20:01",
"upload_time_iso_8601": "2023-10-30T14:20:01.396845Z",
"url": "https://files.pythonhosted.org/packages/00/97/a1f5a00db285e7ca06f1d4d9abed8883ba546ddf39919a8b6ce02eaf98e5/georeader-0.1.10-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-10-30 14:20:01",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "Improvement-Service",
"github_project": "georeader",
"github_not_found": true,
"lcname": "georeader"
}