Spaces:
Sleeping
Sleeping
offset off
Browse files
app.py
CHANGED
|
@@ -605,12 +605,12 @@ async def generate_i3s(request: GenerateRequest):
|
|
| 605 |
output_dir = os.path.join(LAYERS_DIR, layer_id)
|
| 606 |
os.makedirs(output_dir, exist_ok=True)
|
| 607 |
|
| 608 |
-
slpk_name = f"SceneLayer_{layer_id[:
|
| 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'],
|
|
|
|
| 605 |
output_dir = os.path.join(LAYERS_DIR, layer_id)
|
| 606 |
os.makedirs(output_dir, exist_ok=True)
|
| 607 |
|
| 608 |
+
slpk_name = f"SceneLayer_{layer_id[:18]}"
|
| 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'],
|