pleiades_lpf is written by Tom Elliott for the Pleiades gazetteer of ancient places, a project and publication of the Institute for the Study of the Ancient World at New York University.
At present, still a long way to go on fleshing out the gazetteer model. Tests pass for what is implemented; I am using a JSON LPF file from the World Historical Gazetteer for testing file loading.
-
Geometry
- Stub the class (in gazetteer.py)
-
asdictfunction - other functionality and data (this is largely untouched as of yet)
-
Feature
- Stub the class (in gazetteer.py)
- Static attribute
type="Feature" -
asdictfunction -
propertiesattribute (dictionary)- Validation of the
propertiesattribute and its contents - methods for adding/getting parts of the
propertiesattribute (implement as needed)
- Validation of the
-
geometryattribute - tests
- augment
-
FeatureCollection
- Stub the class (in gazetteer.py)
- Static attribute
type="FeatureCollection" - Attribute
features:list - Attribute
context:str - Attribute validation?
-
asdictfunction - tests
- augment
-
Citation
- Note that the structure outlined below deviates from LPF v1
- Stub the class (in citations.py)
- attributes, including those that need to be
Identifier -
asdictfunction - tests
- augment
-
FeatureType
- Note that the structure outlined below deviates from LPF v1
- Stub the class (in gazetteer.py)
- attribute:
@id:Identifier - attribute:
citations:listofCitations - attribute:
label:str - attribute:
aliases:listofstr - attribute
When -
asdictfunction - tests
- augment
-
Identifier
-
identify and stub other classes following GeoJSON and LPF specifications.
- load
- wrap
jsonfunction from standard library - return
FeatureCollectioninstead ofdict
- wrap
- loads
- wrap
jsonfunction from standard library - return
FeatureCollectioninstead ofdict
- wrap
- dump
- wrap
jsonfunction from standard library - expect
FeatureCollectioninstead ofdict
- wrap
- dumps
- wrap
jsonfunction from standard library - expect
FeatureCollectioninstead ofdict
- wrap