Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Join View fails to deploy if source services have different spatial references #1368

Open
chris-fox opened this issue Jan 31, 2024 · 0 comments
Assignees
Milestone

Comments

@chris-fox
Copy link
Collaborator

Can be reproduced by deploying this solution item:

https://localdeployment.maps.arcgis.com/home/item.html?id=111b98baa09742fc97651ae53f44dbc5

The issue is the 2 source services have different spatial references. In the join service layer id 0 is a table and it has a single source pointing to the service with a spatial reference of 4326. Layer id 1 is a layer and is a multi-source service where the left side of the join is coming from the service with a spatial reference of 102100.

So what appears to be happening is we are pulling the spatial reference from the source of layer id 0. I believe we implemented this logic to account for how users can change the spatial reference on deployment and the need to keep views in sync with the source service spatial reference.

However, this is a unique case as the layer id 0 is a table and has no geometry so spatial reference of the source can be ignored. I believe we should update this logic to look at the spatial reference of the source service for the first layer (w/ geometry) in the service. So in this particular case we would take the spatial reference from the source service on the left side of the join for layer id 1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants