Spaces:
Sleeping
Sleeping
offset
Browse files
app.py
CHANGED
|
@@ -609,9 +609,8 @@ async def generate_i3s(request: GenerateRequest):
|
|
| 609 |
enc_options = {
|
| 610 |
'sceneType': 'Global',
|
| 611 |
'sceneWkid': '3857',
|
| 612 |
-
#
|
| 613 |
-
|
| 614 |
-
'globalOffset': [cx_3857, 0.0, -cy_3857],
|
| 615 |
'baseName': slpk_name,
|
| 616 |
'writePackage': False, # unzipped folder; fallback extracts .slpk if unsupported
|
| 617 |
'layerTextureEncoding': ['2'],
|
|
|
|
| 609 |
enc_options = {
|
| 610 |
'sceneType': 'Global',
|
| 611 |
'sceneWkid': '3857',
|
| 612 |
+
# globalOffset is in the output CRS (EPSG:3857): [x_easting, y_northing, z_height]
|
| 613 |
+
'globalOffset': [cx_3857, cy_3857, 0.0],
|
|
|
|
| 614 |
'baseName': slpk_name,
|
| 615 |
'writePackage': False, # unzipped folder; fallback extracts .slpk if unsupported
|
| 616 |
'layerTextureEncoding': ['2'],
|