Select to view content in your preferred language

Issue with Scene View Support for Vector Tiles in ArcGIS .NET WPF SDK

665
8
Jump to solution
02-28-2025 12:07 AM
Labels (3)
GunnarGisleberg
Occasional Contributor

Hi

I am testing scene view support for vector tiles from a server using the ArcGIS .NET WPF SDK.

Observations:

  • When using one vector tile server, the map data is visualized correctly.
  • With another server, only the latitude/longitude grid is displayed—no map data appears.

Scene View Setup:

  • The visualization is configured using Esri.ArcGISRuntime.Mapping.Camera.
  • The camera viewpoint is set at a height of 200 meters with a 30-degree pitch.
  • The purpose is to create a 2.5D map tracking display of a vehicle's position.

Testing Two Vector Tile Servers:

  • Both servers work fine in a 2D map display.
  • In Scene View, one server fails to display the map data, showing only the lat/lon grid.

How I Create the Vector Tile Layer:

 
ArcGISVectorTiledLayer vectorLayer = new ArcGISVectorTiledLayer(vectorTileUrl); myScene.OperationalLayers.Add(vectorLayer);

Troubleshooting:

  • Using the ArcGIS test URL, everything works correctly:
  • When using a local test vector tile server, no map data is visible. Only lat/lon grid

Question:

How can I investigate why the local vector tile server data does appear the map data in Scene View?

I have attached a screen dump of a test program :

- the upper part is 2D map view of the vector data, 

- the lower part is 2.5D display of the same vector data lacking map information

Regards

Gunnar Gisleberg

Locus Solutions AS

An Enghouse Company

0 Kudos
1 Solution

Accepted Solutions
GunnarGisleberg
Occasional Contributor

Thank you for a quick response. 

View solution in original post

0 Kudos
8 Replies
KoushikHajra
Esri Contributor

Hello @GunnarGisleberg,

Thank you for reaching out with your query. Let me make sure that I understand your problem here. If you use a vector tiled layer from a server that is hosted locally, it is not rendering any data only in the context of the scene. 

Without really taking a look at the data and some debugging I cannot tell with is going on that's preventing the data from getting rendered. What you can do is you could look at the network requests through fidder/charles to see if you are able to see anything that is causing the problem. If I had to guess anything, it seems like something related to spatial reference. What is the spatial reference of the layer that you have hosted locally?

I'd like to hear back on what you find and then go from there. Please let us know what you find.

Regards,

Koushik

 

0 Kudos
GunnarGisleberg
Occasional Contributor

Thank you! I shall compare the spatial references from the vector tile servers

0 Kudos
dotMorten_esri
Esri Notable Contributor

Please look at the output window when debugging and look for draw or load errors. You can also look at the layer's LoadStatus or the SceneView's LayerViewStateChanged event.

My guess is it's some sort of tilingscheme not supported with the current data / spatial reference.

GunnarGisleberg
Occasional Contributor

Thank you- I shall investigate the proposed actions.

0 Kudos
GunnarGisleberg
Occasional Contributor

Thanks for the advise - 

This message appears during load:

Spatial reference invalid or incompatible: The Spatial Reference is invalid or incompatible with the Scene's

The scene has {SpatialReference[Wkid=4326]}, 

The vectortile layer has {SpatialReference[Wkid=25833]}

Is it possible to create a scene with spatialReference compatible with the vectory layer SpatialReference?

0 Kudos
GunnarGisleberg
Occasional Contributor

I have tried to create Scene instances using a specific spatialReference without success:

- chatgpt suggestion is to use a constructor with spaticalreference as argument- it does exist: Scene myScene = new Scene(SpatialReferences.WebMercator);

I have tried a couple of suggestions but always ends up with 4326 as the Scene reference 

Is it possible to open a scene from a vector layer where SpatialReference = 25833 ?

0 Kudos
dotMorten_esri
Esri Notable Contributor

Your vector data must be in WebMercator for it to work with the 3D scene. 25833 isn't currently compatible.
The scene itself is always 4326.

0 Kudos
GunnarGisleberg
Occasional Contributor

Thank you for a quick response. 

0 Kudos