A python package for working with data in the Linked Places Format (LPF)
- For functions involving the Geonames API, the environment variable
GEONAMES_USER
must be set to a string that is a valid GeoNames username. In the absence of this environment variable, the "demo" username is used, which almost always results in a "denied" response from the API.
- Support all LPF complex objects with corresponding python classes, each with intuitive properties for accessing data.
- LPFFeatureCollection (in progress)
- Read an LPF JSON file
- Validate LPF JSON on read
- Write an LPF JSON file
- Ensure valid on or before write (separate validation step?)
- Read an LP-TSV file
- Read an LPF JSON file
- LPFFeature (in progress)
- get properties:title
- get properties:@id
- get properties:ccodes
- lookup countries from ccodes (implemented with issue #1)
- validate ccodes (implemented with issue #1)
- get properties:fclasses
- lookup feature class names from fclasses (implemented with issue #2)
- validate fclasses (implemented with issue #2)
- are there other properties in the spec not represented in the example JSON? No.
- LPFWhen
- LPFTimeSpan
- LPFTimePeriod
- LPFName
- LPFType
- LPFGeometry
- LPFLink
- LPFRelation
- LPFDescription
- LPFDepiction
- LPFFeatureCollection (in progress)