Select to view content in your preferred language

Best way to publish a web scene

336
4
Jump to solution
11-06-2024 01:54 AM
JV_
by
Occasional Contributor

Hello,

 

I am trying to publish a web scene that includes both a voxel layer and a 3D point layer. I successfully published a similar web scene in the past, but it has been some time, and I don’t remember how I resolved an earlier issue.

 

I need to share the web scene on ArcGIS Online with others, but I am encountering an error: "X layer needs to match the scene spatial reference" , which applies to all the layers I've included. I’ve already created a new local scene and ensured that all features have the same spatial reference, but I am still facing this error.

JV__0-1730886613417.png

Could you please provide guidance on the best approach for creating and sharing a web scene? I would appreciate detailed steps or tips so that I can document this for future reference.

 

Thank you for your help!

 

Best regards,

 

0 Kudos
1 Solution

Accepted Solutions
JohannaIntac
Esri Contributor

Hi @JV_ ,

Thank you for sharing the ppkx. 

When I opened the ppkx I noticed that the Scene itself has a different Coordinate System than the voxel, that's why it was not rendering. The Scene is taking the Coordinate System of the 2D Layers. You can change the coordinate system of the Scene in Pro and then Share it as a Web Scene. Here are the steps I did to publish it as a web scene with the correct coordinate system.

  1. In Pro, Right click Scene in the Contents Pane and go to Properties
  2. Go to the the Coordinate Systems and choose the Coordinate System of the Points and Voxel Layer. In this case the Modified_European Datum 1950 UTM Zone 31N_1ArcGISPro_NyGbvpTIn4.png
  3. Click on Apply and Ok
  4. Delete the Topographic (2D Layers) and World Elevation (Ground) layers. These layers are in a different coordinate system and will throw an error when Sharing the Scene as a Web Scene. Something like the image below: ArcGISPro_XmmxBjyTvE.png
  5. Go to Share tab and Click on  Web SceneArcGISPro_0gtYOcPo4w.png
  6. Fill in the necessary details like the Name
  7. Click on Analyze to review potential problems.
  8. Click on Share.

Here is a sample of the published web scene using the attached ppkx.

chrome_qOKHcBk6Dj.png

 

Let me know if the steps above helps.

 

Regards,

Johanna

View solution in original post

0 Kudos
4 Replies
dani
by Esri Contributor
Esri Contributor

Hi,

Are you able to share your app code or the layers which you're using? That could help us troubleshoot.

Thanks,

Dani

 

0 Kudos
JV_
by
Occasional Contributor

Hello,

I have created a package with synthetic data; is that okay?

 

I believe my problem arises from working with my own personalized coordinate system. Even when I manage to reproject all features to WGS84, it still doesn't work in ArcGIS Online. When I load it into AGOL, the voxel doesn't align with the points, like this:

JV__0-1730970249903.png

 

and the symbology of the points doesn't show up either.

 

I just want to learn how to do all the process, from the beginning correctly because I'm going to do it very often.

0 Kudos
JohannaIntac
Esri Contributor

Hi @JV_ ,

Thank you for sharing the ppkx. 

When I opened the ppkx I noticed that the Scene itself has a different Coordinate System than the voxel, that's why it was not rendering. The Scene is taking the Coordinate System of the 2D Layers. You can change the coordinate system of the Scene in Pro and then Share it as a Web Scene. Here are the steps I did to publish it as a web scene with the correct coordinate system.

  1. In Pro, Right click Scene in the Contents Pane and go to Properties
  2. Go to the the Coordinate Systems and choose the Coordinate System of the Points and Voxel Layer. In this case the Modified_European Datum 1950 UTM Zone 31N_1ArcGISPro_NyGbvpTIn4.png
  3. Click on Apply and Ok
  4. Delete the Topographic (2D Layers) and World Elevation (Ground) layers. These layers are in a different coordinate system and will throw an error when Sharing the Scene as a Web Scene. Something like the image below: ArcGISPro_XmmxBjyTvE.png
  5. Go to Share tab and Click on  Web SceneArcGISPro_0gtYOcPo4w.png
  6. Fill in the necessary details like the Name
  7. Click on Analyze to review potential problems.
  8. Click on Share.

Here is a sample of the published web scene using the attached ppkx.

chrome_qOKHcBk6Dj.png

 

Let me know if the steps above helps.

 

Regards,

Johanna

0 Kudos
JV_
by
Occasional Contributor

Thank you Johanna, 

I opened a support case and had a call with support yesterday, which was very helpful.

To keep track for future reference, here are the steps I followed to set up a fully functional Web Scene:

  1. I reprojected all features and rasters to WGS84 and set the vertical datum to "None." Otherwise, I wouldn't have access to base maps.
  2. To display raster surfaces, I set the elevation layer to "ground." Unfortunately, it's not possible to show multiple surfaces (e.g., water table, bedrock, topography) simultaneously, so each surface must be toggled on and off in the Web Scene as needed.
  3. The points in the Web Scene initially displayed incorrect elevations, so I manually adjusted them in ArcGIS Online.
  4. When importing features into the scene, remember to add each 3D feature layer individually. Simply opening the Web Scene does not display the correct symbology for 3D points.

Well, I think that covers everything! This is mostly for my own reference for next time. 😄

Thank you for your help!