POST
|
Hi everyone! ArcGIS ideology uses an overlay model for representing maps and objects on them. If I want to create some object allocated on the heap, I write: Graphic* obj = new Graphic(this); (and something inside) Next step, I put this object to overlay: m_graphicsOverlay->graphics()->append(graphic); If I have a pointer to the object, I can manually delete it, if I want! for example: delete obj; I did it and all my application has crashed! How can I delete an interesting item from overlay and also from the heap, I want to avoid memory leackege !
... View more
01-15-2018
06:15 AM
|
0
|
1
|
1282
|
POST
|
I created dynamical display by using arcgis pro sdk and I show the connections between nodes. For this I used an arrows (I'm use ArcGIS 100.2), the arrows connected with the centers of objects, but I want that arrows would be connected with the borders of objects! Is it possible to do that?
... View more
01-15-2018
05:09 AM
|
0
|
1
|
401
|
POST
|
Thank you, I add this lines to my cmake, I build everything!
... View more
01-15-2018
02:57 AM
|
0
|
3
|
1380
|
POST
|
Hi ESRI, I have tried to build an ArcGIS qt application with cmake command , I have successfully compiled the project and link it, but after I have received some messages that my computer couldn't find some ArcGIS qml libraries. How can I fix it? Cmake example and the errors below! Some code from main.cpp : QString arcGISRuntimeImportPath; QString arcGISToolkitImportPath; #if defined(LINUX_PLATFORM_REPLACEMENT) // on some linux platforms the string 'linux' is replaced with 1 // fix the replacement paths which were created arcGISRuntimeImportPath = "../For_the_map/qt100.1/sdk/linux/x64/qml"; arcGISToolkitImportPath = "../For_the_map/qt100.1/sdk/toolkit/Import"; #endif // Add the Runtime and Extras path view.engine()->addImportPath(arcGISRuntimeImportPath); // Add the Toolkit path view.engine()->addImportPath(arcGISToolkitImportPath); // Set the source view.setSource(QUrl("../For_the_map/Simple_Renderer/Simple_Renderer.qml")); There are the messages: file:///home/asus/Desktop/For_the_map/Simple_Renderer/Simple_Renderer.qml:20:1: module "Esri.ArcGISRuntime.Toolkit.Controls" is not installed import Esri.ArcGISRuntime.Toolkit.Controls 100.1 ^ file:///home/asus/Desktop/For_the_map/Simple_Renderer/Simple_Renderer.qml:21:1: module "Esri.ArcGISExtras" is not installed import Esri.ArcGISExtras 1.1 ^ file:///home/asus/Desktop/For_the_map/Simple_Renderer/Simple_Renderer.qml:20:1: module "Esri.ArcGISRuntime.Toolkit.Controls" is not installed import Esri.ArcGISRuntime.Toolkit.Controls 100.1 ^ file:///home/asus/Desktop/For_the_map/Simple_Renderer/Simple_Renderer.qml:21:1: module "Esri.ArcGISExtras" is not installed import Esri.ArcGISExtras 1.1
... View more
12-20-2017
05:24 AM
|
0
|
5
|
2006
|
POST
|
Thanks for the example, Lucas, could I ask you for a small prompt? In your article you have showed step by step rules for create custom symbol in arcgis pro, but you started it with following lines: Insert a new map and add some vector data to your map There are some problems, how can I add this vector data. Could you show this step. I founded styles in pro's catalog and in the contents, but how can I add this vector data which you talking about? I want to create an yellow arrow. It couldn't be done with this tables.
... View more
12-06-2017
02:33 AM
|
0
|
0
|
697
|
POST
|
Thank you Lucas! The main problem was in a signal. I fix it.
... View more
12-06-2017
01:42 AM
|
0
|
0
|
527
|
POST
|
There is a problem with that, once time Marco has answered me that I should add some vector data in my map, but where can I get that vectore data? Is it possible to achive them from arcgis pro 2.0, what type should I use? I want to create vtpk, and this is the first step for reach that. I saw this documentation Add layers and layer packages to a map—ArcGIS Pro | ArcGIS Desktop. (Print5) I tried to do it by using catalog pane and I add some layers (imaginary layers), but still the same problem takes place (Print6). Which type of layer I should choose to create vector tile index and vtpk later. Or where I can find some vector data? Could someone represent me some step by step example, please.
... View more
11-30-2017
01:37 AM
|
0
|
0
|
367
|
POST
|
Thanks for replying my question Marco! But I still have misundarstanding how should I do it, what did you mean as add some raster / imaginary source? Where I can get it for interesting area? I want to create vtpk, and this is the first step for reach that. I saw this documentation Add layers and layer packages to a map—ArcGIS Pro | ArcGIS Desktop. (Print5) I tried to do it by using catalog pane and I add some layers (imaginary layers), but still the same problem takes place (Print6). Which type of layer I should choose to create vector tile index and vtpk later. Or where I can find some vector data? Could you represent me some step by step example, please ? May be there is some easiest way. I want to extract some area for vtpk generator. Could it be from some basemap?
... View more
11-28-2017
05:02 AM
|
0
|
0
|
547
|
POST
|
Hello GeoNet community! I've downloaded and started to use arcgis pro 2.0 free trial. First of all I wants to practice how to create my own vtpk file. I have red documentation and saw video tutorial. My step by step issues during creating vtpk file are follows. 1) For creation vtpk file correct I have to generate vector tile index first. There are some lines from esri's manual: "Vector tiles can be created from any map or basemap in ArcGIS Pro, but there are some limitations and special considerations. The primary concern in making a map for vector tile creation is to build a valid and efficient map so that the resulting tiles draw quickly. " There are some lines about poligons and other as well, I haven't found step by step manual about "how to remove, add or work" with them for creation vtpk from one of the basemaps. When I set all needed fields and start creating vector tile index, then it shows me an error: "001852: Layer type is not supported for vector tile packages.—Help | ArcGIS Desktop Turn off the visibility of unsupported layers in the map's Contents pane or remove them from the map." In pro this represented by (Print3). I haven't found that in Contents pane.What is right way for creation some area and creating vector tile index? I have red this article as well and tried to do it like this,but it doesen't work! Vector Tiles Part 1 - Creation — Esri UK Also for creating procedure I have added tags for the map (Print2). And I have added tags into table for generating vetor tile index as well as shown in the article. Please could anyone tell me what i'm doing wrong, is it possible to create it with free trial licence?
... View more
11-28-2017
01:20 AM
|
0
|
2
|
1120
|
POST
|
Thank You Lucas! I tried this example, I expected to print an arrow, that would replace 2 points created by PolylineBuilder, but it didn't happen. It works only if I'm add this symbol to renderer and no other methods gives me the same result. What can be wrong? Code here: m_arrowSymbol - pointer to Symbol, exist as private field of the class. after, all as in your example: connect(m_symbolStyle, &SymbolStyle::fetchSymbolCompleted, this, [this](QUuid, Symbol* symbol) { m_arrowSymbol = symbol; }); m_polylineBuilder->addPoint(-10e5, 40e5); m_polylineBuilder->addPoint(20e5, 50e5); m_graphic = new Graphic(m_polylineBuilder->toGeometry(),m_arrowSymbol,this); m_graphicsOverlay->graphics()->append(m_graphic); But it show only 2 big red points. I want to create an arrow, without adding arrow symbol to all objects. Please look at this, I don't know why it doesn't work.
... View more
11-14-2017
12:35 AM
|
0
|
2
|
527
|
POST
|
Thanks for answering my question Lucas, you also added this great example how to use an arrow! Thank you! This lines realize connection between SymbolStyle and Point! // connect symbolstyle signal connect(m_symbolStyle, &SymbolStyle::fetchSymbolCompleted, this, [this](QUuid, Symbol* symbol) { m_simpleRenderer->setSymbol(symbol); }); But I want to put SymbolStyle object in Graphic object like this: lineGraphic = new Graphic(polylineBuilder.toGeometry(),sls,this); where sls is pointer to SymbolStyle object. Is It possible. I didn't found methods in this class, only signal (this technic also was used in the sample.)
... View more
11-10-2017
01:33 AM
|
0
|
5
|
634
|
POST
|
Hi ERSI ! I want to create arrow that would be connect 2 points on a map, and show a direction from one mark to another. I saw similar question from one person in this Community. But i don't understand how create correct direction for triangle. Right now i use something like this: (Was taken from Geometrics ersi example.) // create line geometry PolygonBuilder polylineBuilder(SpatialReference::wgs84()); // build the polyline polylineBuilder.addPoint(-110.829004, 44.462438); polylineBuilder.addPoint(-110.828140, 44.460458); // create a line symbol SimpleLineSymbol* sls = new SimpleLineSymbol(SimpleLineSymbolStyle::Solid, QColor("blue"), 2, this); // create a line graphic Graphic* lineGraphic = new Graphic(polylineBuilder.toGeometry(), this); // create a graphic overlay to display the line graphic GraphicsOverlay* lineGraphicOverlay = new GraphicsOverlay(this); // set the renderer of the graphic overlay to be the line symbol lineGraphicOverlay->setRenderer(new SimpleRenderer(sls, this)); // add the graphic to the overlay lineGraphicOverlay->graphics()->append(lineGraphic); // add the overlay to the mapview m_mapView->graphicsOverlays()->append(lineGraphicOverlay); This line connect 2 points which presents coordinates of head and tail of this arrow. So what's the question. I want to create arrow that starts from end point to start point, with correct angle of rotation for triangle object that presents direction, which would be connected to the line object. I have only 2 points (I mean coordinates in wgs), so somehow i have to calculate correct angle between them, for rotating of triangle. Also, when one of this 2 points would move, the arrow that belongs for one of this points should be changed. What's the better way to do that? I mean recalculate direction of triangle and line dynamically, with points movement.
... View more
10-25-2017
04:21 AM
|
1
|
4
|
1110
|
POST
|
Thanks for replying my question Luke! Your advice was very useful.
... View more
09-05-2017
03:15 AM
|
0
|
0
|
373
|
POST
|
Hi everyone! I have some trouble with displayng a marker with some legend. When i put a marker on the map, there is no problem to replace it during the program execution. But i want to connect this marker with a legend and update the position of my marker at the same time with the legend. I found a simple way to create a legend by using TextSymbol, but it blocked SimpleMarkerSymbol. Sample of code: ---------------------------------------------------------------------------------------------------------------------------------------------------------- SimpleMarkerSymbol* crossSymbol = new SimpleMarkerSymbol(SimpleMarkerSymbolStyle::Cross, QColor("red"), 12, this); Point point(-110.828140, 44.460458, SpatialReference::wgs84()); Graphic* graphic = new Graphic(point, crossSymbol, this); m_graphicsOverlay->graphics()->append(graphic); And display it: m_mapView->graphicsOverlays()->append(m_graphicsOverlay); In this code there's no any problems. As if i add TextSymbol. I know that both of this classes Inherited from the same parent, but can i put them together and then update coordinates in a way like this: Graphic* tmp= m_graphicsOverlay->graphics()->at( 'Some index '); tmp->setGeometry(point); (reinitialize coordinates). Or should i use some other way? Can anyone tell me.
... View more
09-04-2017
05:42 AM
|
0
|
2
|
817
|
Title | Kudos | Posted |
---|---|---|
1 | 10-25-2017 04:21 AM | |
1 | 09-01-2017 09:30 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:25 AM
|