POST
|
Hi Lucas, Thanks again for the help. I still have not been able to get the lines to render properly. Just to reiterate, the lines do not pass through the terrain. That is, they physically are defined to start and end in locations where the line will not pass through any terrain (3D elevation map). However, the lines have segments that do not render depending on the viewing angle. Do you have any other advice to figure out the issues I'm seeing? Thanks!
... View more
03-16-2017
01:36 PM
|
0
|
1
|
639
|
POST
|
The lines should not be going through the elevation surface. The lines point to the sky and should not be passing through the surface. When you move the view around, the lines appear and disappear. You can see this in the picture I posted above.
... View more
03-15-2017
01:14 PM
|
0
|
0
|
639
|
POST
|
Yes, I do have elevation. I need the elevation mapped. I also need lines that point to the sky that don't disappear at different viewing angle. I think it might have to do with the way things are rendered. Here is a code snippet: void addLineOfSightToMapFunc(Point myLocation, Point skyLocation,Esri::ArcGISRuntime::SceneGraphicsView* m_sceneView, QColor lineColor,mn::GraphicsOverlay* lineGraphicOverlay, MapRay *thisF ) { // create a graphics overlay for the lines lineGraphicOverlay->setRenderingMode(mn::GraphicsRenderingMode::Dynamic); lineGraphicOverlay->setSceneProperties(mn::LayerSceneProperties(mn::SurfacePlacement::Absolute)); // add the overlay to the mapview m_sceneView->graphicsOverlays()->append(lineGraphicOverlay); // create line geometry mn::PolygonBuilder polylineBuilder(m_sceneView->spatialReference()); // build the polyline polylineBuilder.addPoint(myLocation); polylineBuilder.addPoint(skyLocation); // tells renderer what type of symbol to use. mn::SimpleLineSymbol* sls = new mn::SimpleLineSymbol(mn::SimpleLineSymbolStyle::Solid, lineColor, 5, thisF); // creates graphic from the polylineBuilder mn::Graphic* lineGraphic = new mn::Graphic(polylineBuilder.toGeometry(), thisF); // set the renderer of the graphic overlay to be the line symbol lineGraphicOverlay->setRenderer(new mn::SimpleRenderer(sls, thisF)); // add the graphic to the overlay lineGraphicOverlay->graphics()->append(lineGraphic); }
... View more
03-07-2017
09:43 AM
|
0
|
1
|
639
|
POST
|
Hi Norbert. Thanks for the info. However, I don't want my lines to be draped. I want them pointing to the sky.
... View more
03-07-2017
09:32 AM
|
0
|
1
|
639
|
POST
|
Hi Norbert, Thanks for the additional info and the response. I set the RenderingMode to Dynamic and I am having the same issues. When I set the mode to Static, the lines do not appear point to the sky, but are draped over the terrain. I have attached a picture of the rendering issue. The left picture shows that (more often than not) segments of the lines do not render (green circles added to show where lines are not being draw correctly). Could this possibly by a clipping plane issue?
... View more
03-06-2017
01:11 PM
|
0
|
3
|
1222
|
POST
|
I am writing an application with ArcGIS Qt SDK and currently I have just been bringing in data through reading files stored on my computer. I have C++ classes that are populated with this data, but I am not currently storing this data in any form of database. I have a Hyper Virtual Machine that is hosting SQL Server 2012 Express. I am open to using other database storage, but I am fairly new to using ArcGIS with Qt and the C++ languages. Is there a source for good documentation on how to store my C++ classes within a database using ArcGIS for Qt? That is, are there resources specifically for geodatabases and ArcGIS Qt? Here is the link that I found containing some information (Supported geodatabase formats—ArcGIS Runtime SDK for Qt | ArcGIS for Developers), but I am looking for more documentation. Thanks for the help!
... View more
03-03-2017
10:05 AM
|
0
|
0
|
840
|
POST
|
Hey Lucas, do you have any updates on the rendering order problem I have been having? Have you ever encountered this before with drawing lines in a scene?
... View more
03-02-2017
08:26 AM
|
0
|
8
|
1222
|
POST
|
Thanks for the response. I have changed the scene properties to set in the way mentioned in that line. However, it does not fix the rendering order problem.
... View more
02-24-2017
10:36 AM
|
0
|
0
|
1222
|
POST
|
Thanks Lucas for the response. I will give the UniqueValueRenderer a try. I have set the layer scene properties to absolute. I am attempting to draw the lines from a location near the surface of the terrain to a point in the sky. At no point is the line obstructed by terrain, but portions of the line render behind the terrain image and the portion that renders incorrectly changes as I change the camera angle. Here is the way in which I set the scene properties: lineGraphicOverlay->sceneProperties().setSurfacePlacement(SurfacePlacement::Absolute);
... View more
02-24-2017
08:41 AM
|
0
|
11
|
1222
|
POST
|
I am interested in drawing several lines using the SimpleLineSymbol. I have run into two problems. First, in the graphics scene (3D) the lines appear and disappear behind the 3D terrain when viewed from different camera angles. Even though there is no terrain obstructing the line (no terrain between camera and graphic) the lines still appear to render in incorrect order (behind terrain). Is there a setting I need to set for this to work (e.g. a depth test). My second problem is that I want each one the lines to be a different color. Does that mean I will need a new GraphicsOverlay for each line? For example, this is how I am currently setting my renderer. SimpleLineSymbol* sls = new SimpleLineSymbol(SimpleLineSymbolStyle::Solid, lineColor, 3, thisF);
lineGraphicOverlay->setRenderer(new mn::SimpleRenderer(sls, thisF));
This makes each line the same color. Is there a way to set each line as a different color while only having one GraphicsOverlay?
Thanks for the help!
... View more
02-23-2017
10:53 AM
|
1
|
17
|
2936
|
POST
|
Hi Luke, Thanks for the input. I was hoping to set the background color of the scene. I don't like the appearance of the starry sky. Is there any work around for setting the scene background to a custom color?
... View more
02-07-2017
08:16 AM
|
0
|
1
|
784
|
POST
|
I create a topographic scene in my main window constructor like so: ui->setupUi(this); // Create a scene using the topographic BaseMap mn::Scene* scene = new mn::Scene(mn::Basemap::topographic(this), this); // create a new elevation source from Terrain3D rest service mn::ArcGISTiledElevationSource* elevationSource = new mn::ArcGISTiledElevationSource( QUrl("http://elevation3d.arcgis.com/arcgis/rest/services/WorldElevation3D/Terrain3D/ImageServer"), this); // add the elevation source to the scene to display elevation scene->baseSurface()->elevationSources()->append(elevationSource); // Create a scene view, and pass in the scene m_sceneView = new mn::SceneGraphicsView(scene, this); ui->map->addWidget(m_sceneView); The scene currently has a starry night background. I would like the background to just be a solid color. This seems like a simple change, but I am having the hardest time finding the code for it. Any ideas? Thanks!
... View more
02-04-2017
02:17 PM
|
1
|
4
|
1783
|
POST
|
This worked! Thank you for the help! I am so grateful.
... View more
01-25-2017
11:47 AM
|
0
|
0
|
4657
|
POST
|
Hi, I tried taking the libeay32.dll and the ssleay32.dll to my C:\Qt\Qt5.7.1\5.7\msvc2015_64\bin folder and it didn't work. I looked at the kit that I am using (Desktop Qt 5.7.1 MSVC2015_64bit) is using the Compiler Microsoft Visual C++ Compiler 14.0 (amd64) . Does your setup look similar?
... View more
01-25-2017
10:53 AM
|
0
|
2
|
4657
|
POST
|
I am running Qt 5.7.1 (MSVC 2015, 32 bit) with Qt Creator 4.2.0. I have a problem with QSslSocket. I am getting the following errors: qt.network.ssl: QSslSocket: cannot call unresolved function SSLv23_client_methodqt.network.ssl: QSslSocket: cannot call unresolved function SSL_CTX_new qt.network.ssl: QSslSocket: cannot call unresolved function SSL_library_init qt.network.ssl: QSslSocket: cannot call unresolved function ERR_get_error qt.network.ssl: QSslSocket: cannot call unresolved function ERR_get_error I have gone to the following location openssl github and downloaded the zip file. I have moved the "libeay32.dll" and "ssleay32.dll" files to my release directory, and I am still getting these errors. Is there anyone who has gotten the QSslSocket working that can give me steps to get the socket working or has any suggestions? Thanks for any help in advance!
... View more
01-25-2017
09:45 AM
|
1
|
6
|
9989
|
Title | Kudos | Posted |
---|---|---|
1 | 01-25-2017 09:45 AM | |
1 | 02-04-2017 02:17 PM | |
1 | 02-23-2017 10:53 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|