POST
|
Yes, with the Local Server it works . I did not know that I have to download it manually, cause it was included in the 10.2.3. Now it works. Thank you
... View more
10-09-2018
07:20 AM
|
0
|
0
|
422
|
POST
|
By the way, if I load a tif image with the corresponding values set. Than it will be displayed at the correct postion. But if I have no information in the tif image, than it will not be displayed. I think that he even do not read any value from the tfw file. I only have the Esri Arcgis Runtime for Qt.
... View more
10-08-2018
02:36 AM
|
0
|
2
|
422
|
POST
|
Hi Luke, after a long time, I'm coming back to this problem... Cause we need this soon... So I made a project which is in the old 10.2.3 SDK and is able to load more tif files and the corresponding tfw files. So here is the code again: https://de.files.fm/u/zyq5w6td Do I have somewho the functionality to set the desired option later on manually. So that, if no information is available in the tif File, I just tell him to use this spatial reference if no one is set. With kind regards Torben
... View more
10-08-2018
02:29 AM
|
0
|
3
|
422
|
POST
|
Hi Lucas, sorry for my late reply... Here is the example project: https://files.fm/u/p57zgqfb#_ There are two images loaded and displayed correctly.
... View more
03-24-2017
06:32 AM
|
0
|
7
|
670
|
POST
|
Hi Luke, thank you very much . It is helpful, and works as expected . Torben
... View more
03-13-2017
08:01 AM
|
1
|
0
|
401
|
POST
|
Hi all , I am trying to load two tpk - files. When I am ONLINE I have absolutly no problems everthing works fine . But when I am, from the beginning of the start of my application, OFFLINE I can't see anything. So I started by replacing the following line: mp_basemap = Esri::ArcGISRuntime::Basemap::imagery( this );
With the following line: mp_basemap = new Esri::ArcGISRuntime::Basemap( this ); Now I can see the first OFFLINE tpk file. But the region is somewho selected to exactly this image. I cannot zoom further out or go to another place. Everthing is just inside this region... How I can I remove this region? This is my code: mp_basemap = new Esri::ArcGISRuntime::Basemap( this );
TileCache * tileCache = new TileCache( "<path>\\Test.tpk", this); ArcGISTiledLayer* tiledLayer = new ArcGISTiledLayer( tileCache, this ); mp_basemap->baseLayers()->append( tiledLayer );
TileCache * tileCache2 = new TileCache( "<path>\\Test2.tpk", this); ArcGISTiledLayer* tiledLayer2 = new ArcGISTiledLayer( tileCache2, this ); mp_basemap->baseLayers()->append( tiledLayer2 ); So the second tpk file is not shown. This is the case when the second tpk file is far away from the first. If the second tpk file is close too the first tpk file, it will be shown, but the selected region is just from the first loaded layer. It does not seem to extent it. With kind regards Torben
... View more
03-13-2017
04:10 AM
|
0
|
2
|
1124
|
POST
|
Hi Lucas, my current problem is that with the Runtime 10.2.3 I was able to load these images and display them at the correct position. Is this not possible with the Version 100? Can I define it somewho in the code. Maybe that he should ever use one SpatialReference if there is no one defined? Our customers will not have access to such a big tool (AcrGIS for Desktop). But they should be able to load their images correctly.
... View more
03-13-2017
12:55 AM
|
0
|
9
|
670
|
POST
|
Hi Luke, it is good to hear that you can't load the image too. With the SDK 10.2.3 I was able to load and display the image correctly. Does this change to the current release? The way to use ArcMap is no option for us. With kind regards Torben
... View more
03-09-2017
11:46 PM
|
0
|
0
|
670
|
POST
|
Hi Luke I tried to upload the data here, but it is not shown... I tried to send it to you, but I don't have the rights to do that... So here it is... https://files.fm/u/9ya8m6xd
... View more
03-09-2017
05:10 AM
|
0
|
2
|
670
|
POST
|
Hi Luke, I'm not sure what I should share with you? So I have just an Image (tif) and the corresponding tfw file. The tfw file I have already posted. Do you want the image? The problem is that when I open the tif, without setting the map, it will display all loaded tifs at the same position. So they are all overlapped at the same position. It seems that in this case even the tfw file is not loaded... Because of this I think I have to use the following line: Map* map = new Esri::ArcGISRuntime::Map( Esri::ArcGISRuntime::SpatialReference::wgs84(), this ); Else all loaded tif are overlapping... But then I don't see anything...
... View more
03-09-2017
04:25 AM
|
0
|
5
|
1165
|
POST
|
Hey, so runinng the old version (10.2.3) it was ok to load it with a setting of SpatialReference 4326. Which is in my opinion the same as wgs84? I changed my code to your above statement. connect(rasterLayer, &RasterLayer::doneLoading, this, [this, rasterLayer](Error loadError) { if (loadError.isEmpty()) { m_mapView->setViewpointGeometry(rasterLayer->fullExtent()); std::cout << "Set map view: " << rasterLayer->fullExtent().xMin() << ", " << rasterLayer->fullExtent().yMin() << " -> " << rasterLayer->fullExtent().xMax() << ", " << rasterLayer->fullExtent().yMax() << std::endl; } });
But he gives me the following output: Set map view: -nan(ind), -nan(ind) -> -nan(ind), -nan(ind)
... View more
03-09-2017
03:22 AM
|
0
|
7
|
1165
|
POST
|
Hi, ah ok that is good to know, that there is no spatial reference! So my problem is than if I set the SpatialReference to load wgs84 and then load the given tif. To see the image we need to set the viewpoint correctly. What is done I hope... But I can't see anything... m_mapView = new MapGraphicsView(this); m_map = new Esri::ArcGISRuntime::Map( Esri::ArcGISRuntime::SpatialReference::wgs84(), this ); QString dataPath = "<Path>\\map000.tif"; Esri::ArcGISRuntime::Raster * raster = new Esri::ArcGISRuntime::Raster( dataPath, this ); Esri::ArcGISRuntime::RasterLayer* rasterLayer = new Esri::ArcGISRuntime::RasterLayer( raster, this ); mp_basemap = new Esri::ArcGISRuntime::Basemap( rasterLayer, this ); m_map->setBasemap( mp_basemap ); m_mapView->setMap( m_map ); Esri::ArcGISRuntime::Envelope envelope( 5.520, 52.270, 5.530, 52.280, Esri::ArcGISRuntime::SpatialReference::wgs84() ); m_mapView->setViewpointGeometry( envelope ); And the map000.tfw file has the following format: 1,07020139694214E-05 0 0 -6,54231601356988E-06 5,52524901390075 52,2788632621671 With kind regards Torben
... View more
03-09-2017
12:59 AM
|
0
|
9
|
1165
|
Title | Kudos | Posted |
---|---|---|
1 | 03-13-2017 08:01 AM |
Online Status |
Offline
|
Date Last Visited |
03-13-2024
06:46 AM
|