Skip to content

Commit

Permalink
start adding leaves
Browse files Browse the repository at this point in the history
  • Loading branch information
xrotwang committed May 16, 2024
1 parent 47f432e commit 2f88adf
Show file tree
Hide file tree
Showing 9 changed files with 112 additions and 1 deletion.
Binary file added cldf/atlas/L002/back.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added cldf/atlas/L002/epsg4326.tif
Binary file not shown.
93 changes: 93 additions & 0 deletions cldf/atlas/L002/leaf.geojson
Original file line number Diff line number Diff line change
@@ -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."
}
}
]
}
Binary file added cldf/atlas/L002/legend.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added cldf/atlas/L002/original.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions cldf/atlas/L002/original.jpg.points
Original file line number Diff line number Diff line change
@@ -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
Binary file added cldf/atlas/L002/web.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions cldfbench_languageatlasofthepacificarea.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'):
Expand Down
2 changes: 1 addition & 1 deletion raw/README.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Raw data downloaded 2024-05-14T12:47:04.744170
Raw data downloaded 2024-05-16T12:33:43.642281

0 comments on commit 2f88adf

Please sign in to comment.