Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
OGC
3DGeoVolumesAPI
Commits
b51aaae0
Commit
b51aaae0
authored
Oct 04, 2022
by
JOE XMG
Browse files
Update Stuttgart Sample Tileset
parent
167a73df
Changes
3
Hide whitespace changes
Inline
Side-by-side
3DGeoVolumes/collections/Stuttgart/Stuttgart.json
View file @
b51aaae0
...
...
@@ -41,56 +41,91 @@
}
],
"children"
:
[
{
"id"
:
"Stuttgart_LOD2_Stadtmitte"
,
"title"
:
"Stuttgart 3D Models LOD2 Stadtmitte Demo"
,
"description"
:
"All Supported 3D Containers for the city of Stuttgart 3D Models LOD2 Stadtmitte"
,
"collectiontype"
:
"3d-container"
,
"extent"
:
{
"spatial"
:
{
"bbox"
:
[
[
9.161434
,
48.771841
,
-10
,
9.183426
,
48.786318
,
550
]
],
"crs"
:
"http://www.opengis.net/def/crs/OGC/0/CRS84h"
}
},
"links"
:
[
{
"rel"
:
"collections"
,
"href"
:
"host_url/collections/"
,
"type"
:
"application/json"
},
{
"title"
:
"Stuttgart LOD2 Stadtmitte - Collections"
,
"rel"
:
"self"
,
"href"
:
"host_url/collections/Stuttgart/Stuttgart_LOD2_Stadtmitte"
,
"type"
:
"application/json"
},
{
"title"
:
"Stuttgart LOD2 Stadtmitte : 3D Tiles"
,
"rel"
:
"items"
,
"href"
:
"http://193.196.37.89:8092/AssetsHFT/3DTile_Stuttgart_City_LoD2_InnenStadt_ClampToGround/tileset.json"
,
"type"
:
"application/json+3dtiles"
}
],
"children"
:
[
{
"id"
:
"HFTBuilding2_3DModel"
,
"title"
:
"HFT Building 2 - 3D Model"
,
"description"
:
"3D Building Model of the HFT Stuttgart created by SketchUp and converted with CityEngine and FME."
,
"collectiontype"
:
"3d-container"
,
"extent"
:
{
"spatial"
:
{
"bbox"
:
[
[
9.1729205436
,
48.7794377214
,
-10
,
9.1738475153
,
48.7802408522
,
550
]
],
"content"
:
[
{
"title"
:
"Stuttgart LOD2 Stadtmitte - Collections"
,
"rel"
:
"original"
,
"href"
:
"host_url/collections/Stuttgart/Stuttgart_LOD2_Stadtmitte"
,
"type"
:
"application/json"
},
{
"title"
:
"Stuttgart LOD2 Stadtmitte : 3D Tiles"
,
"rel"
:
"original"
,
"href"
:
"http://193.196.37.89:8092/AssetsHFT/3DTile_Stuttgart_City_LoD2_InnenStadt_ClampToGround/tileset.json"
,
"type"
:
"application/json+3dtiles"
}
]
"crs"
:
"http://www.opengis.net/def/crs/OGC/0/CRS84h"
}
},
"links"
:
[
{
"rel"
:
"collections"
,
"href"
:
"https://steinbeis-3dps.eu/3DGeoVolumes/collections/"
,
"type"
:
"application/json"
},
{
"title"
:
"Stuttgart Collections"
,
"rel"
:
"self"
,
"href"
:
"https://steinbeis-3dps.eu/3DGeoVolumes/collections/Stuttgart"
,
"type"
:
"application/json"
},
{
"title"
:
"HFT Building 2 - 3D Model: i3s"
,
"rel"
:
"items"
,
"href"
:
"https://steinbeis-3dps.eu/3DGeoVolumes/collections/Stuttgart/HFTBuilding2_3DModel/i3s"
,
"type"
:
"application/json+i3s"
},
{
"title"
:
"HFT Building 2 - 3D Model: 3D Tiles"
,
"rel"
:
"items"
,
"href"
:
"https://steinbeis-3dps.eu/3DGeoVolumes/collections/Stuttgart/HFTBuilding2_3DModel/3dtiles"
,
"type"
:
"application/json+3dtiles"
},
{
"title"
:
"HFT Building 2 - 3D Model: USDZ"
,
"rel"
:
"items"
,
"href"
:
"https://steinbeis-3dps.eu/3DGeoVolumes/collections/Stuttgart/HFTBuilding2_3DModel/usdz"
,
"type"
:
"application/usdz"
},
{
"title"
:
"HFT Building 2 - 3D Model: gltf"
,
"rel"
:
"items"
,
"href"
:
"https://steinbeis-3dps.eu/3DGeoVolumes/collections/Stuttgart/HFTBuilding2_3DModel/gltf"
,
"type"
:
"application/gltf"
}
],
"children"
:
[],
"content"
:
[
{
"title"
:
"HFT Building 2 - 3D Model: i3s"
,
"rel"
:
"items"
,
"href"
:
"https://steinbeis-3dps.eu/3DGeoVolumes/collections/Stuttgart/HFTBuilding2_3DModel/i3s"
,
"type"
:
"application/json+i3s"
},
{
"title"
:
"HFT Building 2 - 3D Model: 3D Tiles"
,
"rel"
:
"original"
,
"href"
:
"https://steinbeis-3dps.eu/3DGeoVolumes/collections/Stuttgart/HFTBuilding2_3DModel/3dtiles"
,
"type"
:
"application/json+3dtiles"
},
{
"title"
:
"HFT Building 2 - 3D Model: USDZ"
,
"rel"
:
"original"
,
"href"
:
"https://steinbeis-3dps.eu/3DGeoVolumes/collections/Stuttgart/HFTBuilding2_3DModel/usdz"
,
"type"
:
"application/usdz"
},
{
"title"
:
"HFT Building 2 - 3D Model: gltf"
,
"rel"
:
"original"
,
"href"
:
"https://steinbeis-3dps.eu/3DGeoVolumes/collections/Stuttgart/HFTBuilding2_3DModel/gltf"
,
"type"
:
"application/gltf"
}
]
}
],
"content"
:
[
{
...
...
3DGeoVolumes/collections/collections.json
View file @
b51aaae0
...
...
@@ -105,14 +105,21 @@
],
"children"
:
[
{
"id"
:
"
Stuttgart_LOD2_Stadtmitte
"
,
"title"
:
"
Stuttgart 3D Models LOD2 Stadtmitte Demo
"
,
"description"
:
"
All Supported 3D Containers for the city of Stuttgart 3D Models LOD2 Stadtmitte
"
,
"id"
:
"
HFTBuilding2_3DModel
"
,
"title"
:
"
HFT Building 2 - 3D Model
"
,
"description"
:
"
3D Building Model of the HFT Stuttgart created by SketchUp and converted with CityEngine and FME.
"
,
"collectiontype"
:
"3d-container"
,
"extent"
:
{
"spatial"
:
{
"bbox"
:
[
[
9.161434
,
48.771841
,
-10
,
9.183426
,
48.786318
,
550
]
[
9.1729205436
,
48.7794377214
,
-10
,
9.1738475153
,
48.7802408522
,
550
]
],
"crs"
:
"http://www.opengis.net/def/crs/OGC/0/CRS84h"
}
...
...
@@ -120,37 +127,65 @@
"links"
:
[
{
"rel"
:
"collections"
,
"href"
:
"h
ost_url
/collections/"
,
"href"
:
"h
ttps://steinbeis-3dps.eu/3DGeoVolumes
/collections/"
,
"type"
:
"application/json"
},
{
"title"
:
"Stuttgart
LOD2 Stadtmitte -
Collections"
,
"title"
:
"Stuttgart Collections"
,
"rel"
:
"self"
,
"href"
:
"h
ost_url/collections/Stuttgart/Stuttgart_LOD2_Stadtmitte
"
,
"href"
:
"h
ttps://steinbeis-3dps.eu/3DGeoVolumes/collections/Stuttgart
"
,
"type"
:
"application/json"
},
{
"title"
:
"
Stuttgart LOD2 Stadtmitte : 3D Tile
s"
,
"title"
:
"
HFT Building 2 - 3D Model: i3
s"
,
"rel"
:
"items"
,
"href"
:
"http://193.196.37.89:8092/AssetsHFT/3DTile_Stuttgart_City_LoD2_InnenStadt_ClampToGround/tileset.json"
,
"href"
:
"https://steinbeis-3dps.eu/3DGeoVolumes/collections/Stuttgart/HFTBuilding2_3DModel/i3s"
,
"type"
:
"application/json+i3s"
},
{
"title"
:
"HFT Building 2 - 3D Model: 3D Tiles"
,
"rel"
:
"items"
,
"href"
:
"https://steinbeis-3dps.eu/3DGeoVolumes/collections/Stuttgart/HFTBuilding2_3DModel/3dtiles"
,
"type"
:
"application/json+3dtiles"
},
{
"title"
:
"HFT Building 2 - 3D Model: USDZ"
,
"rel"
:
"items"
,
"href"
:
"https://steinbeis-3dps.eu/3DGeoVolumes/collections/Stuttgart/HFTBuilding2_3DModel/usdz"
,
"type"
:
"application/usdz"
},
{
"title"
:
"HFT Building 2 - 3D Model: gltf"
,
"rel"
:
"items"
,
"href"
:
"https://steinbeis-3dps.eu/3DGeoVolumes/collections/Stuttgart/HFTBuilding2_3DModel/gltf"
,
"type"
:
"application/gltf"
}
],
"children"
:
[
],
"children"
:
[],
"content"
:
[
{
"title"
:
"
Stuttgart LOD2 Stadtmitte - Collection
s"
,
"rel"
:
"
original
"
,
"href"
:
"h
ost_url/collections/Stuttgart/Stuttgart_LOD2_Stadtmitte
"
,
"type"
:
"application/json"
"title"
:
"
HFT Building 2 - 3D Model: i3
s"
,
"rel"
:
"
items
"
,
"href"
:
"h
ttps://steinbeis-3dps.eu/3DGeoVolumes/collections/Stuttgart/HFTBuilding2_3DModel/i3s
"
,
"type"
:
"application/json
+i3s
"
},
{
"title"
:
"
Stuttgart LOD2 Stadtmitte
: 3D Tiles"
,
"title"
:
"
HFT Building 2 - 3D Model
: 3D Tiles"
,
"rel"
:
"original"
,
"href"
:
"http://
193.196.37.89:8092/AssetsHFT/3DTile_Stuttgart_City_LoD2_InnenStadt_ClampToGround/tileset.json
"
,
"href"
:
"http
s
://
steinbeis-3dps.eu/3DGeoVolumes/collections/Stuttgart/HFTBuilding2_3DModel/3dtiles
"
,
"type"
:
"application/json+3dtiles"
},
{
"title"
:
"HFT Building 2 - 3D Model: USDZ"
,
"rel"
:
"original"
,
"href"
:
"https://steinbeis-3dps.eu/3DGeoVolumes/collections/Stuttgart/HFTBuilding2_3DModel/usdz"
,
"type"
:
"application/usdz"
},
{
"title"
:
"HFT Building 2 - 3D Model: gltf"
,
"rel"
:
"original"
,
"href"
:
"https://steinbeis-3dps.eu/3DGeoVolumes/collections/Stuttgart/HFTBuilding2_3DModel/gltf"
,
"type"
:
"application/gltf"
}
]
}
...
...
server.js
View file @
b51aaae0
...
...
@@ -147,22 +147,19 @@
var
collection_json
=
require
(
`./3DGeoVolumes/collections/
${
req
.
params
.
collectionsId
}
/
${
req
.
params
.
collectionsId
}
.json`
)
res
.
json
(
collection_json
);
}
catch
(
error
)
{
res
.
send
(
"
internal error at /3DGeoVolumes/collections/:collectionsId
"
)
console
.
log
(
error
)
res
.
send
(
"
internal error
"
)
}
})
// request 3D Tiles
app
.
get
(
'
/collections/:collectionsId/3dtiles
'
,
function
(
req
,
res
)
{
try
{
if
(
req
.
params
.
collectionsId
==
"
Stuttgart_LOD2_Stadtmitte
"
)
{
res
.
redirect
(
"
http://193.196.37.89:8092/AssetsHFT/3DTile_Stuttgart_City_LoD2_InnenStadt_ClampToGround/tileset.json
"
)
}
else
{
var
collections_3dtiles_json
=
require
(
`./3DGeoVolumes/collections/
${
req
.
params
.
collectionsId
}
/3dtiles/tileset.json`
)
var
collections_3dtiles_output
=
replace_server_url
(
collections_3dtiles_json
)
res
.
json
(
collections_3dtiles_output
);
}
}
catch
(
error
)
{
console
.
log
(
error
)
res
.
send
(
"
internal error
at /3DGeoVolumes/collections/:collectionsId/3dtiles
"
)
res
.
send
(
"
internal error
"
)
}
})
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment