https://github.com/cldf/cldfgeojson
Science Score: 13.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
○.zenodo.json file
-
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (9.9%) to scientific vocabulary
Repository
Basic Info
- Host: GitHub
- Owner: cldf
- License: apache-2.0
- Language: Mako
- Default Branch: main
- Size: 6.92 MB
Statistics
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
- Releases: 1
Metadata Files
README.md
cldfgeojson
cldfgeojson provides tools to work with geographic data structures encoded as GeoJSON
in the context of CLDF datasets.
Install
shell
pip install cldfgeojson
Creating CLDF datasets with speaker area data in GeoJSON
The functionality in cldfgeojson.create helps adding speaker area
information when creating CLDF datasets (e.g. with cldfbench).
Working around Antimeridian problems
Tools like shapely allow doing geometry with shapes derived from GeoJSON, e.g. computing
intersections or centroids. But shapely considers coordinates to be in the cartesian plane rather
than on the surface of the earth. While this works generally well enough close to the equator, it
fails for geometries crossing the antimeridian. To prepare GeoJSON objects for investigation with
shapely, we provide a function that "moves" objects on a - somewhat linguistically informed -
pacific-centered cartesian plane: longitudes less than 26°W are adapted by adding 360°, basically
moving the interval of valid longitudes from -180°..180° to -26°..334°. While this just moves the
antimeridian problems to 26°W, it's still useful because most spatial data about languages does not
cross 26°W - which cannot be said for 180°E because this longitude is crosssed by the speaker area
of the Austronesian family.
```python
from cldfgeojson.geojson import pacificcentered from shapely.geometry import shape p1 = shape({"type": "Point", "coordinates": [179, 0]}) p2 = shape({"type": "Point", "coordinates": [-179, 0]}) p1.distance(p2) 358.0 p1 = shape(pacificcentered({"type": "Point", "coordinates": [179, 0]})) p2 = shape(pacific_centered({"type": "Point", "coordinates": [-179, 0]})) p1.distance(p2) 2.0 ```
Manipulating geo-referenced images in GeoTIFF format
The cldfgeojson.geotiff module provides functionality related to
images in GeoTIFF format.
Commandline interface
cldfgeojson also provides cldfbench sub-commands:
geojson.validategeojson.glottolog_distancegeojson.multipolygon_spreadgeojson.comparegeojson.geojsongeojson.webmercatorgeojson.overlay
leaflet.draw
This package contains the leaflet.draw plugin in the form of data:// URLs in
a mako template. leaflet.draw is
distributed under a MIT license:
Copyright 2012-2017 Jon West, Jacob Toye, and Leaflet
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
Owner
- Name: Cross-Linguistic Data Formats
- Login: cldf
- Kind: organization
- Website: https://cldf.clld.org
- Repositories: 15
- Profile: https://github.com/cldf
GitHub Events
Total
- Issues event: 2
- Push event: 21
- Create event: 5
Last Year
- Issues event: 2
- Push event: 21
- Create event: 5
Issues and Pull Requests
Last synced: 10 months ago
All Time
- Total issues: 1
- Total pull requests: 0
- Average time to close issues: 3 months
- Average time to close pull requests: N/A
- Total issue authors: 1
- Total pull request authors: 0
- Average comments per issue: 0.0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 1
- Pull requests: 0
- Average time to close issues: 3 months
- Average time to close pull requests: N/A
- Issue authors: 1
- Pull request authors: 0
- Average comments per issue: 0.0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- xrotwang (2)
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 1
-
Total downloads:
- pypi 80 last-month
- Total dependent packages: 0
- Total dependent repositories: 0
- Total versions: 12
- Total maintainers: 2
pypi.org: cldfgeojson
Functionality to access and curate GeoJSON in CLDF datasets
- Homepage: https://github.com/cldf/cldfgeojson
- Documentation: https://cldfgeojson.readthedocs.io/
- License: Apache 2.0
-
Latest release: 1.5.1
published about 1 year ago