Local Projections in Qt

2784
6
Jump to solution
05-26-2016 06:58 AM
Marco_AlejandroBonilla
Occasional Contributor

Hi all,

I'm working with Dynamic Map and Tiled Map samples from AppStudio in Qt creator.

I was trying to use local services with custom projections (WGS84) but when I run the sample, the window appears blank.

We have tried this in Javascript API and it works fine.

Any suggestions??

cc jimy cuesta

0 Kudos
1 Solution

Accepted Solutions
LucasDanzinger
Esri Frequent Contributor

that is what I figured would happen. It is an issue reading the service as it uses wkt instead of wkid. It is a bug in the API. We are working on a fix and it should be available in one of the upcoming AppStudio releases

View solution in original post

0 Kudos
6 Replies
LucasDanzinger
Esri Frequent Contributor

If you add some code like the following, do you see an error emitted?

 ArcGISDynamicMapServiceLayer {    
    url: "http://sampleserver6.arcgisonline.com/arcgis/rest/services/Water_Network/MapServer"


    onStatusChanged: {
        if (status === Enums.LayerStatusErrored) {
            console.log("error:", error);
        }
    }
}

0 Kudos
Marco_AlejandroBonilla
Occasional Contributor

No, I don't get any error.

It displays fine with arcgis services.

0 Kudos
LucasDanzinger
Esri Frequent Contributor

Can you use that code but swap out the service URL with your device URL, and see if you get any errors?

0 Kudos
Marco_AlejandroBonilla
Occasional Contributor

This error is shown, what should I do??

"qml: error: Layer does not have a valid spatial reference."

0 Kudos
LucasDanzinger
Esri Frequent Contributor

that is what I figured would happen. It is an issue reading the service as it uses wkt instead of wkid. It is a bug in the API. We are working on a fix and it should be available in one of the upcoming AppStudio releases

0 Kudos
Marco_AlejandroBonilla
Occasional Contributor

Ok, so we'll be waiting for it!

Thank you very much for your response Lucas,

Regards

Marco

0 Kudos