@andrewannex/planet-proj4
v0.0.1
Published
Providing Planetary IAU CRSs to Proj4js.
Downloads
9
Maintainers
Readme
PlanetProj4js
A library providing IAU:2015 coordinate reference systems to proj4js.
Installation
npm install planet-proj4 proj4
Tests
npm run test
Build
npm run build
Generating the codes
import pyproj
bad_codes = []
for code in pyproj.database.get_codes(auth_name="IAU_2015", pj_type="CRS"):
crs = pyproj.CRS(f'IAU_2015:{code}')
try:
projtext = crs.to_proj4()
print('[')
print(f" 'IAU:2015:{code}',")
print(f" '+title={crs.name} {projtext }'")
print('],')
except pyproj.exceptions.CRSError as e:
bad_codes.append(code)
finally:
pass
#############################################
for c in bad_codes:
print(c)
pass
currently codes ending with "02" are not included