Imrao commited on
Commit
efb27ec
·
verified ·
1 Parent(s): cb2cdc6

offset off

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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[:8]}"
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'],