Skip to content
/ lpfgaz Public

A python package for working with data in the Linked Places Format (LPF).

License

Notifications You must be signed in to change notification settings

isawnyu/lpfgaz

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lpfgaz

A python package for working with data in the Linked Places Format (LPF)

install and config

  • 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.

Roadmap

  • 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
    • 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

About

A python package for working with data in the Linked Places Format (LPF).

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages