diff options
author | CoprDistGit <infra@openeuler.org> | 2023-05-10 03:54:00 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-05-10 03:54:00 +0000 |
commit | 8bb68e8c67dccb1ce9cf730972fd4401aac96b94 (patch) | |
tree | 395581a294c438ad12b699933a020b27f57012cd | |
parent | f920799d6315abcc18f5518c0875f96759cad875 (diff) |
automatic import of python-topojsonopeneuler20.03
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-topojson.spec | 289 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 291 insertions, 0 deletions
@@ -0,0 +1 @@ +/topojson-1.5.tar.gz diff --git a/python-topojson.spec b/python-topojson.spec new file mode 100644 index 0000000..478dd30 --- /dev/null +++ b/python-topojson.spec @@ -0,0 +1,289 @@ +%global _empty_manifest_terminate_build 0 +Name: python-topojson +Version: 1.5 +Release: 1 +Summary: topojson - a powerful library to encode geographic data as topology in Python!🌍 +License: None +URL: https://pypi.org/project/topojson/ +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/0c/c0/364277ced802f2ee79a776ffd13d1c18d1ada9d78837b01e9b242cd92004/topojson-1.5.tar.gz +BuildArch: noarch + +Requires: python3-numpy +Requires: python3-shapely +Requires: python3-shapely +Requires: python3-geojson +Requires: python3-simplification +Requires: python3-pyshp +Requires: python3-fiona +Requires: python3-geopandas +Requires: python3-altair +Requires: python3-ipywidgets + +%description +# topojson + +[](https://pypi.org/project/topojson) +[](https://opensource.org/licenses/BSD-3-Clause) +[](https://github.com/mattijn/topojson/actions?query=workflow%3Atest) +[](https://anaconda.org/conda-forge/topojson) + + +# Encode spatial data as topology in Python! + +Topojson is a library that is capable of creating a topojson encoded format of merely any spatial object in Python. + +With topojson it is possible to reduce the size of your spatial data. Mostly by orders of magnitude. It is able to do so through: + +- Eliminating redundancy through computation of a topology +- Fixed-precision integer encoding of coordinates and +- Simplification and quantization of arcs + +See [Topojson Documentation Site](https://mattijn.github.io/topojson) for all info how to use this package. + +## Usage + +The package can be used in multiple different ways, with the main purpose to create a TopoJSON topology. + +See the Python [Topojson Documentation Site](https://mattijn.github.io/topojson) for all info or [this Notebook](https://nbviewer.jupyter.org/github/mattijn/topojson/blob/master/notebooks/topojson.ipynb) with some examples, such as the following: + +<p align="center"> +<a href="https://nbviewer.jupyter.org/github/mattijn/topojson/blob/master/notebooks/topojson.ipynb" target="_blank" rel="noopener noreferrer"><img src="docs/images/africa_simplify.png" alt="click to open notebook" width="600px"></a> +</p> + +_Click on the image to go the Notebook Viewer with code-snippets how these images are created or visit the [Topojson Documentation Site](https://mattijn.github.io/topojson)._ + +## Installation + +Installation can be done through PyPI by the following command: + +``` +python -m pip install topojson +``` + +And through conda using the following command: + +``` +conda install topojson -c conda-forge +``` + +This package `topojson` has the following hard dependencies: + +- `numpy` +- `shapely` + +Further, optional soft dependencies are: + +- `altair` - enlarge the experience by visualizing your TopoJSON output +- `simplification` - more and quicker simplification options +- `geojson` - parse string input with GeoJSON data +- `geopandas` - parse your TopoJSON output directly into a GeoDataFrame +- `ipywidgets` + (lab)extension - make your life complete with the interactive experience + +## Get in touch + +For now, just use the Github issues. That can be: + +- usage questions +- bug reports +- feature suggestions +- or anything related + +Finally, see the Python [Topojson Documentation Site](https://mattijn.github.io/topojson) for all info how to use this package. + + +%package -n python3-topojson +Summary: topojson - a powerful library to encode geographic data as topology in Python!🌍 +Provides: python-topojson +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-topojson +# topojson + +[](https://pypi.org/project/topojson) +[](https://opensource.org/licenses/BSD-3-Clause) +[](https://github.com/mattijn/topojson/actions?query=workflow%3Atest) +[](https://anaconda.org/conda-forge/topojson) + + +# Encode spatial data as topology in Python! + +Topojson is a library that is capable of creating a topojson encoded format of merely any spatial object in Python. + +With topojson it is possible to reduce the size of your spatial data. Mostly by orders of magnitude. It is able to do so through: + +- Eliminating redundancy through computation of a topology +- Fixed-precision integer encoding of coordinates and +- Simplification and quantization of arcs + +See [Topojson Documentation Site](https://mattijn.github.io/topojson) for all info how to use this package. + +## Usage + +The package can be used in multiple different ways, with the main purpose to create a TopoJSON topology. + +See the Python [Topojson Documentation Site](https://mattijn.github.io/topojson) for all info or [this Notebook](https://nbviewer.jupyter.org/github/mattijn/topojson/blob/master/notebooks/topojson.ipynb) with some examples, such as the following: + +<p align="center"> +<a href="https://nbviewer.jupyter.org/github/mattijn/topojson/blob/master/notebooks/topojson.ipynb" target="_blank" rel="noopener noreferrer"><img src="docs/images/africa_simplify.png" alt="click to open notebook" width="600px"></a> +</p> + +_Click on the image to go the Notebook Viewer with code-snippets how these images are created or visit the [Topojson Documentation Site](https://mattijn.github.io/topojson)._ + +## Installation + +Installation can be done through PyPI by the following command: + +``` +python -m pip install topojson +``` + +And through conda using the following command: + +``` +conda install topojson -c conda-forge +``` + +This package `topojson` has the following hard dependencies: + +- `numpy` +- `shapely` + +Further, optional soft dependencies are: + +- `altair` - enlarge the experience by visualizing your TopoJSON output +- `simplification` - more and quicker simplification options +- `geojson` - parse string input with GeoJSON data +- `geopandas` - parse your TopoJSON output directly into a GeoDataFrame +- `ipywidgets` + (lab)extension - make your life complete with the interactive experience + +## Get in touch + +For now, just use the Github issues. That can be: + +- usage questions +- bug reports +- feature suggestions +- or anything related + +Finally, see the Python [Topojson Documentation Site](https://mattijn.github.io/topojson) for all info how to use this package. + + +%package help +Summary: Development documents and examples for topojson +Provides: python3-topojson-doc +%description help +# topojson + +[](https://pypi.org/project/topojson) +[](https://opensource.org/licenses/BSD-3-Clause) +[](https://github.com/mattijn/topojson/actions?query=workflow%3Atest) +[](https://anaconda.org/conda-forge/topojson) + + +# Encode spatial data as topology in Python! + +Topojson is a library that is capable of creating a topojson encoded format of merely any spatial object in Python. + +With topojson it is possible to reduce the size of your spatial data. Mostly by orders of magnitude. It is able to do so through: + +- Eliminating redundancy through computation of a topology +- Fixed-precision integer encoding of coordinates and +- Simplification and quantization of arcs + +See [Topojson Documentation Site](https://mattijn.github.io/topojson) for all info how to use this package. + +## Usage + +The package can be used in multiple different ways, with the main purpose to create a TopoJSON topology. + +See the Python [Topojson Documentation Site](https://mattijn.github.io/topojson) for all info or [this Notebook](https://nbviewer.jupyter.org/github/mattijn/topojson/blob/master/notebooks/topojson.ipynb) with some examples, such as the following: + +<p align="center"> +<a href="https://nbviewer.jupyter.org/github/mattijn/topojson/blob/master/notebooks/topojson.ipynb" target="_blank" rel="noopener noreferrer"><img src="docs/images/africa_simplify.png" alt="click to open notebook" width="600px"></a> +</p> + +_Click on the image to go the Notebook Viewer with code-snippets how these images are created or visit the [Topojson Documentation Site](https://mattijn.github.io/topojson)._ + +## Installation + +Installation can be done through PyPI by the following command: + +``` +python -m pip install topojson +``` + +And through conda using the following command: + +``` +conda install topojson -c conda-forge +``` + +This package `topojson` has the following hard dependencies: + +- `numpy` +- `shapely` + +Further, optional soft dependencies are: + +- `altair` - enlarge the experience by visualizing your TopoJSON output +- `simplification` - more and quicker simplification options +- `geojson` - parse string input with GeoJSON data +- `geopandas` - parse your TopoJSON output directly into a GeoDataFrame +- `ipywidgets` + (lab)extension - make your life complete with the interactive experience + +## Get in touch + +For now, just use the Github issues. That can be: + +- usage questions +- bug reports +- feature suggestions +- or anything related + +Finally, see the Python [Topojson Documentation Site](https://mattijn.github.io/topojson) for all info how to use this package. + + +%prep +%autosetup -n topojson-1.5 + +%build +%py3_build + +%install +%py3_install +install -d -m755 %{buildroot}/%{_pkgdocdir} +if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi +if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi +if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi +if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi +pushd %{buildroot} +if [ -d usr/lib ]; then + find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/lib64 ]; then + find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/bin ]; then + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/sbin ]; then + find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst +fi +touch doclist.lst +if [ -d usr/share/man ]; then + find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst +fi +popd +mv %{buildroot}/filelist.lst . +mv %{buildroot}/doclist.lst . + +%files -n python3-topojson -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Wed May 10 2023 Python_Bot <Python_Bot@openeuler.org> - 1.5-1 +- Package Spec generated @@ -0,0 +1 @@ +6c3765caa48826ca9f3ebd8e38e2206f topojson-1.5.tar.gz |