diff --git a/cldf/atlas/L002/back.jpg b/cldf/atlas/L002/back.jpg new file mode 100644 index 0000000..1117c65 Binary files /dev/null and b/cldf/atlas/L002/back.jpg differ diff --git a/cldf/atlas/L002/epsg4326.tif b/cldf/atlas/L002/epsg4326.tif new file mode 100644 index 0000000..15c3d2f Binary files /dev/null and b/cldf/atlas/L002/epsg4326.tif differ diff --git a/cldf/atlas/L002/leaf.geojson b/cldf/atlas/L002/leaf.geojson new file mode 100644 index 0000000..e41c9d9 --- /dev/null +++ b/cldf/atlas/L002/leaf.geojson @@ -0,0 +1,93 @@ +{ + "type": "FeatureCollection", + "properties": { + "title": "Indonesia, Iran Jaya, Western" + }, + "id": "L002", + "features": [ + { + "bbox": [ + 130.53519312366967, + -5.067601369419861, + 139.38978756010528, + 1.350723788089291 + ], + "geometry": { + "coordinates": [ + [ + [ + 130.53519312366967, + -5.067601369419861 + ], + [ + 139.38978756010528, + -5.067601369419861 + ], + [ + 139.38978756010528, + 1.350723788089291 + ], + [ + 130.53519312366967, + 1.350723788089291 + ], + [ + 130.53519312366967, + -5.067601369419861 + ] + ] + ], + "type": "Polygon" + }, + "properties": { + "filename": "L002/epsg4326.tif", + "id": "bounds", + "title": "L002/epsg4326.tif", + "description": "Geographic bounding box of the scan of the Atlas leaf; i.e. area covered by the scanif overlaid on a map." + }, + "type": "Feature" + }, + { + "type": "Feature", + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + 137.030201, + -3.206333 + ], + [ + 135.646352, + -3.228271 + ], + [ + 135.624386, + -4.99245 + ], + [ + 130.594207, + -5.003394 + ], + [ + 130.583224, + 1.30726 + ], + [ + 137.085115, + 1.285293 + ], + [ + 137.030201, + -3.206333 + ] + ] + ] + }, + "properties": { + "id": "georeferenced", + "description": "Geo-referenced area mapped on leaf; i.e. area where map and Atlas leaf can be expected to match when overlaid." + } + } + ] +} \ No newline at end of file diff --git a/cldf/atlas/L002/legend.jpg b/cldf/atlas/L002/legend.jpg new file mode 100644 index 0000000..36e9417 Binary files /dev/null and b/cldf/atlas/L002/legend.jpg differ diff --git a/cldf/atlas/L002/original.jpg b/cldf/atlas/L002/original.jpg new file mode 100644 index 0000000..bb68bd6 Binary files /dev/null and b/cldf/atlas/L002/original.jpg differ diff --git a/cldf/atlas/L002/original.jpg.points b/cldf/atlas/L002/original.jpg.points new file mode 100644 index 0000000..98d4a9d --- /dev/null +++ b/cldf/atlas/L002/original.jpg.points @@ -0,0 +1,10 @@ +#CRS: GEOGCRS["WGS 84",ENSEMBLE["World Geodetic System 1984 ensemble",MEMBER["World Geodetic System 1984 (Transit)"],MEMBER["World Geodetic System 1984 (G730)"],MEMBER["World Geodetic System 1984 (G873)"],MEMBER["World Geodetic System 1984 (G1150)"],MEMBER["World Geodetic System 1984 (G1674)"],MEMBER["World Geodetic System 1984 (G1762)"],MEMBER["World Geodetic System 1984 (G2139)"],ELLIPSOID["WGS 84",6378137,298.257223563,LENGTHUNIT["metre",1]],ENSEMBLEACCURACY[2.0]],PRIMEM["Greenwich",0,ANGLEUNIT["degree",0.0174532925199433]],CS[ellipsoidal,2],AXIS["geodetic latitude (Lat)",north,ORDER[1],ANGLEUNIT["degree",0.0174532925199433]],AXIS["geodetic longitude (Lon)",east,ORDER[2],ANGLEUNIT["degree",0.0174532925199433]],USAGE[SCOPE["Horizontal component of 3D system."],AREA["World."],BBOX[-90,-180,90,180]],ID["EPSG",4326]] +mapX,mapY,sourceX,sourceY,enable,dX,dY,residual +130.89057205009675044,-0.81715801671586341,130.90003833587329041,-0.83735274070224908,1,-8.21038652514044998,-2.08059241514672522,8.46990623857040958 +130.9800815339023643,-1.42006097660190123,130.97019260649710759,-1.42569196479741933,1,-0.13320479509880556,1.71249317237993637,1.71766596953109985 +134.08101928321383411,-0.8706579380709385,134.08408557304954911,-0.86764663028980538,1,-1.11433443515352337,8.27112654090899468,8.34585379030199093 +136.87947670794085298,-1.78838735823876416,136.88706756751923876,-1.80675720750404789,1,-0.11918899367037739,-4.73725266804831335,4.73875182481030777 +133.58408732139650965,-4.28745099230563298,133.59300567868282883,-4.25896784885464896,1,-7.41588200007367959,4.59625936770225962,8.72472956682369549 +131.40293668153574913,-3.94793226062919578,131.40546796741298863,-3.92732947863298154,1,-7.27228209997917929,2.33528979298125705,7.63804067538789866 +132.12621446447073481,-2.70405908912370219,132.09425535171956767,-2.71238506464783313,1,9.9617104442299933,-4.88627965454406876,11.09555784253735666 +131.98629159323436966,-2.91188570669533986,131.94358311140248929,-2.91886183841565039,1,14.30356840488627768,-5.21104413623379514,15.2232404600018576 diff --git a/cldf/atlas/L002/web.jpg b/cldf/atlas/L002/web.jpg new file mode 100644 index 0000000..447b8b4 Binary files /dev/null and b/cldf/atlas/L002/web.jpg differ diff --git a/cldfbench_languageatlasofthepacificarea.py b/cldfbench_languageatlasofthepacificarea.py index 924d935..1c4edb1 100644 --- a/cldfbench_languageatlasofthepacificarea.py +++ b/cldfbench_languageatlasofthepacificarea.py @@ -148,6 +148,14 @@ def cmd_readme(self, args) -> str: def cmd_download(self, args): import requests + + types = collections.Counter() + for i, feature in enumerate(geopandas.read_file( + str(self.raw_dir / 'languagemap_040102.shp')).__geo_interface__['features']): + types.update([feature['geometry']['type']]) + for k, v in types.most_common(): + print(k, v) + return for item in load(self.raw_dir / 'atlas_leaves.json'): html = fromstring(urllib.request.urlopen(item['url']).read(), HTMLParser()) for link in html.xpath('//a'): diff --git a/raw/README.md b/raw/README.md index 867b4df..f4e6680 100644 --- a/raw/README.md +++ b/raw/README.md @@ -1 +1 @@ -Raw data downloaded 2024-05-14T12:47:04.744170 \ No newline at end of file +Raw data downloaded 2024-05-16T12:33:43.642281 \ No newline at end of file