POST
|
Thanks Lucas, you are correct it is in web Mercator. I believe this will get me what I need. Also wanted to mention attempting to programmatically zoom to an area that crosses 180 degrees using setViewpointGeometry using a projected map is proving to be a challenge as well. I think it is related to the project issue as well. I've decided just to use setViewpointCenter for now with a custom scale value. I really can't find a good way to pass in values to setViewpointGeometry as an Envelope that it likes (even normalized).
... View more
10-10-2018
12:25 PM
|
0
|
0
|
976
|
POST
|
Hi Lucas, To elaborate, As a simple test, I'm listening to the MapGraphicsView::viewpointChanged signal and when I pan/zoom on the map and the signal fires, my slot attached to it hits and then I get the extent of the map across the 180 degree longitude using the code I posted above with some qDebug statements to see the values. This is where it returned -180 to 180 instead of 178 to 183 (let's use that as an example value I zoomed to). It seems that either setViewpointGeometry or currentViewpoint.targetGeometry is normalizing the value internally, is that correct? I was wondering if there would be some way to get the value back without normalization since any time the map crosses the 180 mark in the display targetGeometry appears to return -180 to 180 (regardless if I'm zoomed in or out) which doesn't allow me to query for items within the mapview extent. In ArcGIS Engine, you could convert the -180/180 to 0 to 360 using a IGeographicCoordinateSystem2.LeftLongitude property which helped get around this particular scenario (I could then see a returned extent of 178 to 183 instead). I'm not sure I understand your suggestion. I was under the impression calling normalizeCentralMeridian is used to return a value that is outside the boundary of the spatial reference to a value inside the spatial reference (for WGS 84 this would be returning a value between -180/180) or am I mistaken?
... View more
10-08-2018
04:14 PM
|
1
|
2
|
976
|
POST
|
I'm performing IDL (international date line) testing on an application and am having an issue getting the map extent if the map view crosses over 180 degrees. If I zoom in around the 180 longitude and then use the code below to get the current display extent: Esri::ArcGIS::Runtime::ViewPoint mapViewPoint = m_mapView->currentViewPoint(Esri::ArcGISRuntime::ViewPointType::BoundingGeometry); Esri::ArcGIS::Runtime::Envelope *m_pZoomBox = new ESRI::ArcGISRuntime::Envelope(Esri::ArcGISRuntime::GeometryEngine::project(mapViewPoint.targetGeometry().extent(), Esri::ArcGISRuntime::SpatialReference::wgs84())); Checking the return envelope, results in the xMin being -180 and the xMax being 180 which doesn't help determine the boundary of the extent in view. It seems like there should be a way to convert it to a 0 to 360 reference so you can get the actual extent of the map. Is there a different call I should make to get the bounds across 180? I'm using ArcGIS Runtime 100.1. Thanks for any assistance!
... View more
10-05-2018
09:03 AM
|
0
|
5
|
1237
|
POST
|
Awesome, thanks for the sample! I had found an article you wrote which is extremely helpful as well: https://community.esri.com/community/developers/native-app-developers/arcgis-runtime-sdk-for-qt/blog/2016/12/19/qt-quick-how-to-write-a-cross-platform-mapping-application-with-a-qml-frontend-and-c-backend
... View more
07-18-2018
10:28 AM
|
1
|
0
|
1040
|
POST
|
Hi Lucas, Thanks for that information. I had read about the three different ways you could use the API's but it didn't occur to me that the QML imports would be different between them. Good to know how to tell the difference now. Since I'm really interested in the C++/QML mix, I'll start looking at exposing the necessary pieces I need. Thanks Wayne
... View more
07-18-2018
09:33 AM
|
0
|
2
|
1040
|
POST
|
I used the ESRI template to create a basic QML/C++ Test app to learn QML. I wanted to then experiment adding my own custom scale bar to the map (I'm using Runtime 100.1 with QT 5.8) and was attempting to follow the guidance in: https://community.esri.com/thread/201990-scale-bar. I created the scale bar; however, when I attempt to assign it from my main qml file when its running I receive the error: "Unable to assign ESRI::ArcGISRuntime::MapQuickView to QMLMapView" at the map:mapview line below. The main QML looks like: import QtQuick 2.6 import QtQuick.Controls 1.4 import Esri.Test 1.0 Test{ width:800 height:600 MapView{ id:mapview anchors.fill: parent objectName: "mapView" ScaleBar{ map:mapview } } } I've googled the error and looked over ESRI forums, but don't see any mention of this error. No code was changed from the sample on the C++ side or the scale bar itself. What am I missing?
... View more
07-17-2018
04:11 PM
|
0
|
6
|
1395
|
POST
|
I used ArcMap to generate a TPK file of a raster that I was hoping to perform Identify capabilities on to retrieve pixel values. After generating the TPK, I realized that it does not support Identify since it is basically a local tiled image layer. Is there an efficient way of loading raster data through Runtime for display and also have the ability to identify on as well? The raw raster is in an HDF5 file which (last I heard) is not supported in Runtime. Thanks Edit: Forgot to include this is for ArcGIS Runtime 100.0.
... View more
07-05-2017
08:49 AM
|
0
|
1
|
1080
|
POST
|
I was able to combine the examples for displaying callouts and identifying graphics to display a callout when I click a graphic on the screen with the idea of showing some of the attributes of the graphic. I'd like it to be formatted on multiple lines so I added a few newline characters on the items in the string I'm passing into the callout setDetail method. If the Callout is set for Auto Adjust Width, the Callout displayed is very wide, but the height is very small which some of the text runs past the bottom of it. I'm not sure if auto adjust is getting tripped up by the newline characters or something else is happening. If I turn Auto Adjust Width off I don't see any properties that allow me to set width/height manually on the Callout. Is there someway to manually adjust the width/height of callouts or get it to auto adjust correctly? Thanks
... View more
04-28-2017
03:17 PM
|
0
|
2
|
1475
|
POST
|
We developed an ArcGIS Engine app a few years ago using the .NET Framework (at the time it was intended for Windows only). Now we've been requested (as a short term solution) to try to run it via WINE on Linux until we can re-write it to be cross platform. Has anyone had success running ArcGIS Engine apps under WINE? Any limitations/issues we should we aware of? The software is currently at .NET Framework 4 and ArcGIS 10.2.2. Thanks
... View more
11-15-2016
08:07 AM
|
0
|
2
|
1578
|
POST
|
In 10.2, I noticed ESRI added new interfaces to support the new Track Manager capability in ArcMap, however I'm not finding documentation on how to use them programmatically in ArcObjects (i.e. no samples). I have a temporal layer created in ArcGIS Engine and would like to use the ITxActiveTrack interface to follow one of the tracks in it, however when I do something like: trackingEnvironment.DisplayManager.ManualUpdate = false; trackingEnvironment.DisplayManager.AutoRefresh = true; ITxActiveTrack activeTrack = trackingEnviroment.DisplayManager; activeTrack.setActiveTrack("myTrackName", _hookHelper.FocusMap, myLayer); activeTrack.Follow = true; nothing happens on the map even when I move my track out of view. The TrackingEnvironment appears to be setup correctly since my tracks do appear on the map and are getting updated on screen, it's just not following the track. Anyone from ESRI or anyone else using this capability that can help? Thanks!
... View more
04-21-2016
04:09 PM
|
0
|
0
|
2366
|
POST
|
It has to do with a new change at .NET 4/4.5 that ESRI dll's do not need. You can read more about it at the bottom of the following link (section called Using Embed Interop Types property on referenced assemblies): http://resources.arcgis.com/en/help/arcobjects-net/conceptualhelp/index.html#//000100000nzv000000
... View more
04-22-2015
11:10 AM
|
1
|
1
|
308
|
POST
|
Open the Properties window of the Assembly and make sure to set Embed Interop Type to false on each of the ESRI references of your project.
... View more
04-22-2015
10:32 AM
|
0
|
3
|
308
|
POST
|
Thanks for the information Chris. That is definitely concerning that you can corrupt a featureclass by not realizing someone else is editing it. Seems like the locking system needs to be corrected or even redesigned if it can't be fixed as is.
... View more
04-22-2015
10:16 AM
|
0
|
0
|
513
|
Title | Kudos | Posted |
---|---|---|
1 | 10-08-2018 04:14 PM | |
1 | 07-18-2018 10:28 AM | |
1 | 04-22-2015 11:10 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|