|
POST
|
Hi Luke! Your answer was very quick - amazing 🙂 Thanks for pointing me to the copyAndPaste error. But unfortunately the behaviour does not change (Static and Dynamic) Yes, i took the logic from the ExtrudeGraphicsExample(QML)... There are a couple of known issues for 3D, especially related to Graphics, RedneringMode and so on. Do you have another hint? Is there another example? Thx
... View more
06-02-2017
06:20 AM
|
0
|
1
|
2156
|
|
POST
|
I like to create a cube on a graphicsOverlay in a sceneView (3D) - but without success. I just can see the plane area drapped on the surface. I don´t use QML but widget based approach. What i did: Create a scene, sceneView connect them and so... d->m_graphicsLayer->setSceneProperties(Esri::ArcGISRuntime::LayerSceneProperties(Esri::ArcGISRuntime::SurfacePlacement::Draped));
const Esri::ArcGISRuntime::SpatialReference &sr = d->m_mapImpl->getEsriSpatialReference();
// create 4 point for rectangle
const Esri::ArcGISRuntime::Viewpoint &vp =
d->m_mapGeoView->currentViewpoint(Esri::ArcGISRuntime::ViewpointType::CenterAndScale);
const Esri::ArcGISRuntime::Point &mapCenter = static_cast<Esri::ArcGISRuntime::Point>(vp.targetGeometry());
...
SituationMap::PositionCont posContTrans = ...;
Esri::ArcGISRuntime::PolygonBuilder builder(sr, this);
int z = 1000;
builder.addPoint(Esri::ArcGISRuntime::Point(posContTrans[0].x(), posContTrans[0].y(), z, sr));
builder.addPoint(Esri::ArcGISRuntime::Point(posContTrans[1].x(), posContTrans[1].y(), z, sr));
builder.addPoint(Esri::ArcGISRuntime::Point(posContTrans[2].x(), posContTrans[2].y(), z, sr));
builder.addPoint(Esri::ArcGISRuntime::Point(posContTrans[3].x(), posContTrans[3].y(), z, sr));
qCritical() << " posContTrans=" << posContTrans[0];
qCritical() << " posContTrans=" << posContTrans[1];
qCritical() << " posContTrans=" << posContTrans[2];
qCritical() << " posContTrans=" << posContTrans[3];
Esri::ArcGISRuntime::SimpleFillSymbol* sls =
new Esri::ArcGISRuntime::SimpleFillSymbol(Esri::ArcGISRuntime::SimpleFillSymbolStyle::Solid, Qt::red, this);
Esri::ArcGISRuntime::SimpleRenderer *renderer = new Esri::ArcGISRuntime::SimpleRenderer(sls, this);
Esri::ArcGISRuntime::RendererSceneProperties props = renderer->sceneProperties();
props.setExtrusionMode(Esri::ArcGISRuntime::ExtrusionMode::BaseHeight);
props.setExtrusionExpression(QLatin1String("height"));
renderer->setSceneProperties(props);
d->m_graphicsLayer->setRenderer(renderer);
Esri::ArcGISRuntime::Graphic *graphic = new Esri::ArcGISRuntime::Graphic( Esri::ArcGISRuntime::Polygon(builder.toGeometry())Create , this);
QVariantMap att = graphic->attributes()->attributesMap();
att[QLatin1String("height")] = 1000000;
d->m_graphicsLayer->graphics()->append(graphic); I tried the RenderingMode::Static and also Dynamic.. No height is visible. What is missing? Can someone help me? Thx Norbert
... View more
06-02-2017
05:39 AM
|
0
|
11
|
2923
|
|
POST
|
Hi Luke! Thanks for your time 🙂 In a similar case (during at the early adapter) forum Luke L. said to me: "Lucas Danzinger, 23.11.2016: "Norbert- I can reproduce this and it definitely appears to be a bug. Since you have already logged this through the beta community, I'll go ahead and export this as a bug into our system, and there is no need for you to contact support about this specific one." In at least two similar cases (NOT during at the early adapter) Lule L. pleased me to explicit log a bug at the official support. What do you recommend for this case? It´s a critical bug for us. It is more than desirable to monitor this. Maybe it´s helpful to log this as a customer bug (more severity?), to be able to monitor, escalate etc. What do you think? Maybe wait until you can tried to reproduce the bug with your latest version? Thx
... View more
03-29-2017
03:47 AM
|
0
|
2
|
2222
|
|
POST
|
Hi Luke! It would be very kind if you keep me up-to-date. This bug is very important for us! Thx
... View more
03-28-2017
08:19 AM
|
0
|
4
|
2222
|
|
POST
|
Hi Luke! Description: I create two PictureMarker as dummy object: - one in green and a size of 20; - one in red and a size of 10; I add an attribute to distinguish them. I create an advanced symbol: 10032500001406030000 // 25 140603 The problem is related to the identifyGraphicsOverlays method which is overloaded: // First overload: // Identify the topmost graphics in all the graphics overlays at the specified screen coordinates. TaskWatcher identifyGraphicsOverlays(double screenX, double screenY, double tolerance, bool returnPopupsOnly); // Second overload: Identify which graphics in all the graphics overlays appear at the specified screen coordinates. TaskWatcher identifyGraphicsOverlays(double screenX, double screenY, double tolerance, bool returnPopupsOnly, int maximumResultsPerOverlay); Behaviour: For the first overload: (topmost) The the two PictureMarker can be picked/identified as well as advanced symbol. (They can be recognized the the attribute For the second overload: (more than one result per GraphicsOverlay) The two PictureMarker can be picked/identified but not the advanced symbol This is true for RenderingMode::Dynamic. Using RenderingMode::Static, the advanced symbol could never be identified/picked.... My Conclusion: The second overload does not return the advanced symbol Do i miss something?
... View more
03-28-2017
05:07 AM
|
1
|
6
|
2222
|
|
POST
|
Hi Luke! Thanks for the quick answer! We are using the pure C++, no Quick/QML. And yes, i know the two similar named signals/slots. If i use another sidc (like a point symbol) than it works. (Since ~1,5 years) example - will try to build...
... View more
03-28-2017
03:20 AM
|
0
|
7
|
2223
|
|
POST
|
I create a GraphicsOverlay and put a advanced symbol on it. This is done using a DictionaryRenderer (MIl2525D) The task "identifyGraphicsOverlays" is done on a sidc "10032500001406030000" // SymbolSet/Entity = 25 140603 (line with arrow) The slot "identifyGraphicsOverlaysCompleted" is called but with an empty result list 😞 Conclusion: Many (maybe all) multipoint sidcs can´t be identified/picked.
... View more
03-28-2017
02:13 AM
|
0
|
9
|
2899
|
|
POST
|
Hi! Nobody can check? May i please Kirsten Strandjord or Michael Greene That would be very kind of you. Thanks
... View more
03-23-2017
02:31 AM
|
0
|
0
|
649
|
|
POST
|
Hi Michael! Your were able to go one step forward - fine. Take care
... View more
03-17-2017
12:25 AM
|
0
|
0
|
1763
|
|
POST
|
Hi Luke, thanks for your information and tip (toJson) I logged a bug: Esri Support Case Number 01903553. BUG-000103765 : The z and m value of Esri::ArcGISRuntime::Point provides incorrect result. thx
... View more
03-16-2017
02:22 AM
|
0
|
1
|
795
|
|
POST
|
Hi Luke, I add the overlay around line 120 OR around line 330. I know that they have to be added just once. That is not the Point. I would like to show an possible crash if someone choses the "wrong" order (like my colleague did) My Motivation is to help YOU/ESRI in this case... I already logged a bug at the support, but unfortunately it was not possible to reproduce the issue... Note: During the beta phase (earlyAdapterForum) is encountered problems with moving of layers in the model. For that use case the described crash could be relevant (annoyingly the earlyAdapterForum is closed...) So finally, if you have time and like to avoid a Crash resulting on a simple re-ordering of the graphicalOverlays then try it out. thx
... View more
03-16-2017
01:14 AM
|
0
|
1
|
649
|
|
POST
|
The initial goal is to show a problem of a symbol of the AdvancedSymbology. Therefore i create a map and add 2 graphicalOverlays. A DictionaryRenderer is assigned to the second graphicalOverlay. While i was building the sample i moved two statements, leading to a reproducable crash (Windows and Linux) approach: add the 2 graphicalOverlays to the model immediately after they are created. approach: add the 2 graphicalOverlays to the model after the graphics are added the the graphicalOverlays. This happens using the RenderingMode::Dynamic, not with Static. I added a complete example (Winzip can process tgz files) Compile, Link, Run and press "Symbol Failure" -> coredump (look at define LETS_CRASH) Can someone please verify? Thank you very much
... View more
03-15-2017
08:44 AM
|
0
|
3
|
1087
|
|
POST
|
Hi Kirsten! Sorry for the delay, i was busy on the SDK... But now, i was able to spent some minutes on your problem: That is the code i used: d->m_graphicsLayer->setSceneProperties(Esri::ArcGISRuntime::LayerSceneProperties(Esri::ArcGISRuntime::SurfacePlacement::Absolute)); const Esri::ArcGISRuntime::SpatialReference &sr = d->m_mapImpl->getEsriSpatialReference(); const Esri::ArcGISRuntime::Viewpoint &vp = d->m_mapGeoView->currentViewpoint(Esri::ArcGISRuntime::ViewpointType::CenterAndScale); const Esri::ArcGISRuntime::Point &mapCenter = static_cast<Esri::ArcGISRuntime::Point>(vp.targetGeometry()); Esri::ArcGISRuntime::Point myLocation = Esri::ArcGISRuntime::Point(mapCenter.x(), mapCenter.y(), 10000, sr); Esri::ArcGISRuntime::Point skyLocation = Esri::ArcGISRuntime::Point(mapCenter.x(), mapCenter.y(), 99999, sr); qCritical() << " myLocation=" << myLocation << " z=" << myLocation.z();; qCritical() << " skyLocation=" << skyLocation << " z=" << skyLocation.z(); Esri::ArcGISRuntime::PolygonBuilder polylineBuilder(sr, this); polylineBuilder.addPoint(myLocation); polylineBuilder.addPoint(skyLocation); Esri::ArcGISRuntime::SimpleLineSymbol* sls = new Esri::ArcGISRuntime::SimpleLineSymbol(Esri::ArcGISRuntime::SimpleLineSymbolStyle::Solid, Qt::red, 5, this); Esri::ArcGISRuntime::Graphic *lineGraphic = new Esri::ArcGISRuntime::Graphic(polylineBuilder.toGeometry(), this); //#define USE_RENDERER #ifdef USE_RENDERER qCritical() << " USE RENDERER"; d->m_graphicsLayer->setRenderer(new Esri::ArcGISRuntime::SimpleRenderer(sls, this)); #else qCritical() << " USE no RENDERER"; lineGraphic->setSymbol(sls); #endif // USE_RENDERER d->m_graphicsLayer->graphics()->append(lineGraphic); Independent os using the renderer or not (see #define) did not have any 'mssing' parts... Maybe i use uncritical values to adress your problem? Be aware: I use the RenderingMode::Dynamic and no elevation yet...
... View more
03-15-2017
06:09 AM
|
0
|
0
|
1379
|
|
POST
|
I create two point and put them to QDebug/qCritical. But i get unexpected results: const Viewpoint &vp = mapGeoView->currentViewpoint(ViewpointType::CenterAndScale); const Point &mapCenter = static_cast<Point>(vp.targetGeometry()); Point myLocation = mapCenter; Point skyLocation = Esri::ArcGISRuntime::Point(mapCenter.x(), mapCenter.y(), 99999, sr); qCritical() << " myLocation =" << myLocation << " z=" << myLocation.z(); qCritical() << " skyLocation=" << skyLocation << " z=" << skyLocation.z(); Output: myLocation= 8.89179 53.0743 5.64578e-316 3.95253e-322 z= 0 myLocation = 8.89179 53.0743 5.64578e-316 3.95253e-322 z= 0 skyLocation= 8.89179 53.0743 5.74185e-316 3.95253e-322 z= 99999 The 1st and 2nd are clear. The 3rd should be the z-value, right? But why 5.64578e-31? The 4th is most likely the m-value (3.95253e-322) right? Thx
... View more
03-15-2017
05:54 AM
|
0
|
3
|
925
|
|
POST
|
Hi Michael! I don´t have experience with UniqueValueRenderer - sorry. But did you have a look here: https://developers.arcgis.com/qt/latest/cpp/sample-code/sample-qt-uniquevaluerenderer.htm Any maybe you should try out the examples of the gitHub... For your problem the should be helpful... But maybe you have already done this... good luck 🙂
... View more
03-09-2017
11:21 AM
|
0
|
1
|
1763
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 10-05-2023 05:17 AM | |
| 1 | 03-14-2023 06:54 AM | |
| 1 | 02-24-2023 03:58 AM | |
| 1 | 06-29-2022 06:12 AM | |
| 1 | 03-12-2021 01:31 AM |
| Online Status |
Offline
|
| Date Last Visited |
04-29-2024
11:30 AM
|