Imrao commited on
Commit
cb2cdc6
·
verified ·
1 Parent(s): 3da83da
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -609,9 +609,8 @@ async def generate_i3s(request: GenerateRequest):
609
  enc_options = {
610
  'sceneType': 'Global',
611
  'sceneWkid': '3857',
612
- # Shift local ENU origin to the real-world 3857 position.
613
- # CGA axes: X=east, Y=up, Z=south → globalOffset = [3857_X, 0, -3857_Y]
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'],