Skip to content

Commit

Permalink
Add JGD2011 support to formats supporting WGS 84 (#701)
Browse files Browse the repository at this point in the history
Resolves #700
  • Loading branch information
ciscorn authored Feb 1, 2025
1 parent 15be0e7 commit ae13509
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
15 changes: 10 additions & 5 deletions app/src/lib/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ const filetypeOptions: Record<string, { label: string; extensions: string[]; eps
label: 'GeoPackage',
extensions: ['gpkg'],
epsg: [
{ value: 4979, label: 'WGS 84 (EPSG:4979)' },
{ value: 4979, label: 'WGS 84 (EPSG:4979) (楕円体高)' },
{ value: 6697, label: 'JGD2011 + 標高 (EPSG:6697)' },
{ value: 3857, label: 'Web Mercator (EPSG:3857)' },
{ value: 6669, label: 'JGD2011 / 平面直角座標系 I (EPSG:6669)' },
{ value: 6670, label: 'JGD2011 / 平面直角座標系 II (EPSG:6670)' },
Expand Down Expand Up @@ -45,14 +46,17 @@ const filetypeOptions: Record<string, { label: string; extensions: string[]; eps
geojson: {
label: 'GeoJSON',
extensions: [],
epsg: [{ value: 4979, label: 'WGS 84 (EPSG:4979)' }]
epsg: [
{ value: 4979, label: 'WGS 84 (EPSG:4979) (楕円体高)' },
{ value: 6697, label: 'JGD2011 + 標高 (EPSG:6697)' }
]
},
cesiumtiles: {
label: '3D Tiles',
extensions: [''],
epsg: [
{ value: 4979, label: 'WGS 84 (EPSG:4979) (楕円体高)' },
{ value: 6697, label: '特殊: JGD2011 (EPSG:6697) (標高)' }
{ value: 6697, label: '特殊: JGD2011 + 標高 (EPSG:6697)' }
]
},
mvt: {
Expand All @@ -68,7 +72,7 @@ const filetypeOptions: Record<string, { label: string; extensions: string[]; eps
kml: {
label: 'KML',
extensions: ['kml'],
epsg: [{ value: 6697, label: 'JGD2011 (EPSG:6697)' }]
epsg: [{ value: 6697, label: 'JGD2011 + 標高 (EPSG:6697)' }]
},
gltf: {
label: 'glTF',
Expand All @@ -79,7 +83,8 @@ const filetypeOptions: Record<string, { label: string; extensions: string[]; eps
label: 'Shapefile',
extensions: [''],
epsg: [
{ value: 4979, label: 'WGS 84 (EPSG:4979)' },
{ value: 4979, label: 'WGS 84 (EPSG:4979) (楕円体高)' },
{ value: 6697, label: 'JGD2011 + 標高 (EPSG:6697)' },
{ value: 3857, label: 'Web Mercator (EPSG:3857)' },
{ value: 6669, label: 'JGD2011 / 平面直角座標系 I (EPSG:6669)' },
{ value: 6670, label: 'JGD2011 / 平面直角座標系 II (EPSG:6670)' },
Expand Down
2 changes: 1 addition & 1 deletion nusamai-projection/src/vshift.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use japan_geoid::{gsi::MemoryGrid, Geoid};

/// Convert from JGD 2011 Geograhpic 3D (EPSG:6697) to WGS84 Geograhpic 3D (EPSG:4979)
/// Convert from JGD2011 Geograhpic 3D (EPSG:6697) to WGS84 Geograhpic 3D (EPSG:4979)
pub struct Jgd2011ToWgs84 {
geoid: MemoryGrid<'static>,
}
Expand Down

0 comments on commit ae13509

Please sign in to comment.