POST
|
Hi @PieterBekaert75 , Thanks for the feedback. You can alternatively override ANDROID_ABIS in your project file after the ArcGIS Runtime SDK project includes are brought in. ARCGIS_RUNTIME_VERSION = 100.10
include($$PWD/arcgisruntime.pri)
# override ArcGIS Runtime values and remove x86
ANDROID_ABIS = arm64-v8a armeabi-v7a We want to keep ANDROID_ABIS including all the architectures supported by the Runtime so it works for the most users by default. If we remove x86 from the list, all users would need to add it back to support x86 Android emulator. Sincerely, Jared
... View more
03-23-2021
12:16 PM
|
0
|
0
|
760
|
POST
|
Hello @PieterBekaert75 , Why is above line present in the pri? These are the architectures we ship for Android. For more about this, see our documentation, https://developers.arcgis.com/qt/reference/system-requirements/#deploying-apps-to-android. The x86 is the offender, because x86_64 is missing. We actually don't ship with an x86_64 architecture for Android. We ship with x86 to support the emulator. You also already stumbled across the workaround for this, just updating the .pri to exclude x86 from ANDROID_ABIS. I hope you find this helpful. Let me know if you have any additional questions. Sincerely, Jared
... View more
03-23-2021
11:32 AM
|
0
|
1
|
768
|
POST
|
Hello @EricAtkinson1 , Could you possibly zip up a reproducible project?(preferably simplified to the the function in question MapView.setViewpointGeometryAndPadding and the minimum supporting code to reproduce the problem). Also could you possibly try the latest version of the SDK to see if this is still a problem at the current release? You can also utilize the sample data above that I used if providing your data is not an option.
... View more
03-22-2021
08:07 PM
|
0
|
1
|
545
|
POST
|
Hello @EricAtkinson1 , I apologize for not responding sooner. I just checked the code with 100.8 and it successfully changes the extent of the mapview to that of the selected features. Might I suggest checking the extent of your feature? The code you are using is correct, my guess is that the features extent is not what you are expecting which is why there is no perceived zoom animation.
... View more
03-01-2021
12:25 PM
|
0
|
5
|
1394
|
POST
|
Hello @EricAtkinson1 , I am unable to find a mouse property for the MapView type but I think we can do this another way. The map view has an onMouseClicked signal handler for when you click on the map view. Within that you can do the following: MapView {
id: mapView
onMouseClicked: {
const clickedPoint = mapView.screenToLocation(mouse.x, mouse.y);
const stopPoint = ArcGISRuntimeEnvironment.createObject("Stop", {geometry: clickedPoint});
}
} You can also reference our "Route around barriers" sample, https://github.com/Esri/arcgis-runtime-samples-qt/blob/be0fc9486d53d8a87379065bf14095d518ea3ba7/ArcGISRuntimeSDKQt_QMLSamples/Routing/RouteAroundBarriers/RouteAroundBarriers.qml#L171-L205. This sample demonstrates a similar workflow where it does solve the route every-time there is a click to add a stop to the map(for two or more stops). It does a few more really cool things like adding in barriers in which it will take those into account and optimize for the best route given those barriers and also can find the best sequence which will reorder stops to optimize the route. I hope you find this helpful! - Jared
... View more
03-01-2021
09:01 AM
|
1
|
0
|
818
|
POST
|
Hey @EricAtkinson1 , Just to let you know that you can click on the insert code button so that it doesn't break it down into block by block. Will make for more readable code on geonet. Take a look at the picture below. I don't see anything inherently wrong with your workflow to select a feature and zoom to it. I took your general workflow and tested it on some sample data and it works like it should. Which version of ArcGISRuntime are you targeting? Here is my code blow: import QtQuick 2.6
import QtQuick.Controls 2.2
import Esri.ArcGISRuntime 100.10
ApplicationWindow {
id: appWindow
width: 800
height: 600
title: "SelectAFeature"
property FeatureLayer alaskaNationalParks: null
// add a mapView component
MapView {
id: mapView
anchors.fill: parent
// set focus to enable keyboard navigation
focus: true
// add a map to the mapview
Map {
id: map
initUrl: "https://arcgis.com/home/item.html?id=dcc7466a91294c0ab8f7a094430ab437"
onLoadStatusChanged: {
if (loadStatus !== Enums.LoadStatusLoaded)
return;
// get the Alaska National Parks feature layer
map.operationalLayers.forEach(fl =>
{
if (fl.name.indexOf("- Alaska National Parks") !== -1) {
alaskaNationalParks = fl;
print("FL set");
}
});
}
}
onMouseClicked: {
alaskaNationalParks.clearSelection()
identifyLayer(alaskaNationalParks, mouse.x, mouse.y, 15, false);
}
onIdentifyLayerStatusChanged: {
if (error)
print(error.message);
if (identifyLayerStatus === Enums.TaskStatusCompleted) {
if (identifyLayerResult.geoElements.length > 0) {
//Retrieve Feature
var feature = identifyLayerResult.geoElements[0];
//select feature
alaskaNationalParks.selectFeature(feature);
mapView.setViewpointGeometryAndPadding(feature.geometry, 30);
}
}
}
}
}
... View more
02-01-2021
10:47 AM
|
0
|
0
|
1444
|
POST
|
Hello @EricAtkinson1 , I don't see anything wrong with your line of code so that's good news. If I run the "List related features" QML sample with 100.9/100.10 it works perfectly fine for me and it also set's the viewpoint to the selected features geometry when clicked. Could you provide a bit more context? Which version of ArcGIS Runtime are you using? Maybe provide the .qml file or a larger section of the code so I can take a closer look at the rest of your workflow. Sincerely, Jared
... View more
01-28-2021
08:49 AM
|
0
|
2
|
1457
|
POST
|
Hi john marker, So the Geodatabase part is a bit more involved. They are most typically used in an offline scenario using either the Preplanned workflow or the On-demand workflow, Work offline—ArcGIS Runtime SDK for Qt | ArcGIS for Developers. But once you decide on which workflow works for you, then you would access a GeodatabaseFeatureTable from the Geodatabase and there you can make edits to that feature table and sync it back. Here is the API documentation for all members of GeodatabaseFeatureTable, List of All Members for GeodatabaseFeatureTable | ArcGIS for Developers. Also here is a sample demonstrating the Preplanned workflow, Download preplanned map | ArcGIS for Developers. In regards to your question about the code snippet, yes you are correct. I can definitely relate to the "new to ArcGIS" or GIS in general as my background was not in GIS. Lots of new concepts to learn and how to apply them correctly. The documentation has come a long way since I started here and it is a great resource for learning. Also if you didn't get to see the Plenary during UC this week, I would encourage you to go watch it online, I think it's on youtube. It helps paint a great picture of what ArcGIS is and where it's going and how it all works together. Best Regards, Jared
... View more
07-16-2020
04:02 PM
|
0
|
1
|
2347
|
POST
|
Hi Alex Averill, Unfortunately there is no out of the box way to accomplish what you are looking to do. There are only two ways I can see you accomplishing this. One would be to intercept mouse drag/key events and to prevent panning manually once you've go beyond the extent of your dataset. The other way would be to connect to MapView.viewpointChanged and whenever the user strays outside of the "locked" box you could move them back inside the bounds like it is bouncing back. If you have support, you could also officially log an enhancement request with them to possibly include this behavior out of the box with a future release. Best Regards, Jared
... View more
07-16-2020
03:19 PM
|
0
|
1
|
810
|
POST
|
Are you looking to remove all map navigation from the user or only allow map navigation within the "Locked" extent? -Jared
... View more
07-15-2020
03:19 PM
|
0
|
3
|
810
|
POST
|
Hi Alex Averill, Are you looking to do this in an offline or online scenario? Best Regards, Jared
... View more
07-15-2020
02:57 PM
|
0
|
5
|
810
|
POST
|
Hi john marker, What you are asking is definitely possible with the ArcGIS Runtime for Qt. 1) Create and render clicks as points You are going to want to connect to the MapQuickView::mouseClicked(QMouseEvent& mouseEvent) signal which contains the screen coordinates of the mouse click. From there you will want to call MapQuickView::screenToLocation(double x, double y) which returns a Point in the coordinates of the GeoView. Then you can symbolize and add as a graphic to a graphics overlay which will render the clicked point on the map. 2) Create and render polyline from clicked point You are going to want to use the class PolylineBuilder which is a helper class for building immutable polyline geometries. You will simply call PolylineBuilder::addPoint(Point&) which will connect the previous point to the newly added point creating a new segment. Then you call PolylineBuilder::toPolyline which is used to display and symbolize the polyline. It will look something like the following: connect(m_mapView, &MapQuickView::mouseClicked, this, [this](QMouseEvent &mouseEvent)
{
// get click location, create point, symbolize, display as grpahic
const Point clickedPoint = m_mapView->screenToLocation(mouseEvent.x(), mouseEvent.y());
const Geometry pointGeom = GeometryEngine::normalizeCentralMeridian(clickedPoint);
SimpleMarkerSymbol* pointMarkerSymbol = new SimpleMarkerSymbol(SimpleMarkerSymbolStyle::Circle, QColor("red"), 10, this);
m_graphicOverlay->graphics()->append(new Graphic(pointGeom, pointMarkerSymbol));
// add point to polyline builder, create polyline from builder, symbolize, display polyline graphic
m_polylineBuilder->addPoint(pointGeom);
const Polyline singleLine = m_polylineBuilder->toPolyline();
SimpleLineSymbol* lineSymbol = new SimpleLineSymbol(SimpleLineSymbolStyle::Dash, QColor("blue"), 3, this);
m_graphicOverlay->graphics()->append(new Graphic(singleLine, lineSymbol));
}); Best Regards, Jared
... View more
07-15-2020
02:33 PM
|
1
|
1
|
2347
|
POST
|
A bug, BUG-000105580, was logged for this in June 2017 which can be found here - The IMoveTextFeedback.Start(...) method throws an Automation Exception when initialized. It is currently in the product plan to be fixed but no date specified just yet.
... View more
11-16-2018
05:54 AM
|
2
|
1
|
528
|
POST
|
ArcObjects does not currently support the Java 9 JDK. Currently there is no information on a plan to support this for a future release of ArcObjects as well. One major issue that would arise is that Java 9 is only 64-bit where ArcObjects is exclusively 32-bit.
... View more
10-24-2017
11:03 AM
|
0
|
0
|
212
|
POST
|
This would be how you verify the field type to be a text(string). Related samples are at the bottom. http://desktop.arcgis.com/en/arcobjects/latest/net/webframe.htm#IField_Type.htm Best of luck, Jared
... View more
11-09-2016
08:33 AM
|
0
|
0
|
378
|
Title | Kudos | Posted |
---|---|---|
1 | 02-06-2023 03:43 PM | |
1 | 06-10-2021 12:30 PM | |
1 | 06-02-2021 08:41 AM | |
1 | 05-28-2021 11:47 AM | |
1 | 03-01-2021 09:01 AM |
Online Status |
Offline
|
Date Last Visited |
06-09-2023
09:34 PM
|