POST
|
Its a bit late, but it works with ArcObjects.Net 10.4.1 and helped me a lot, so thanks 😉
... View more
02-14-2017
10:05 AM
|
0
|
0
|
222
|
POST
|
Hi, I'm trying to create a mpk-File from within an ArcMapAddIn. Like this: Geoprocessor geoprocessor = new Geoprocessor();
geoprocessor.OverwriteOutput = true;
geoprocessor.ToolExecuted += new EventHandler<ESRI.ArcGIS.Geoprocessor.ToolExecutedEventArgs>(geoprocessor_ToolExecuted);
geoprocessor.ProgressChanged += new EventHandler<ESRI.ArcGIS.Geoprocessor.ProgressChangedEventArgs>(geoprocessor_ProgressChanged);
ESRI.ArcGIS.DataManagementTools.PackageMap packageMap = new ESRI.ArcGIS.DataManagementTools.PackageMap();
.
.
.
IGeoProcessorResult2 result = null;
try
{
result = geoprocessor.ExecuteAsync(packageMap) as IGeoProcessorResult2;
}
catch(COMException ex)
{
MessageBox.Show(ex.Message + "\r\n" + ex.ErrorCode); String str = ""; for(int i = 0; i < geoprocessor.MessageCount; i++) { str = str + "\r\n"+ geoprocessor.GetMessage(i); } MessageBox.Show(str); return;
} The ToolExecuted-Event is fired, but the ProgressChangedEvent is never fired. Any Idee, what I'm doing wrong? Thanks in advance, Daniel
... View more
07-06-2016
04:53 AM
|
0
|
0
|
1330
|
POST
|
The Raspberry Pi is an arm based platform. This would require an armv6-/armv7-build of the library...
... View more
06-01-2016
08:59 AM
|
0
|
1
|
441
|
POST
|
Hi, I just tried to use arcpy from PyCharm and ran into the following problem. After importing arcpy typing "arcpy." causes the following Error Traceback (most recent call last): ---------------------------------------- File "C:\Python27\ArcGIS10.2\lib\SocketServer.py", line 295, in _handle_request_noblock Exception happened during processing of request from ('127.0.0.1', 8902) self.process_request(request, client_address) ---------------------------------------- File "C:\Python27\ArcGIS10.2\lib\SocketServer.py", line 321, in process_request self.finish_request(request, client_address) File "C:\Python27\ArcGIS10.2\lib\SocketServer.py", line 334, in finish_request self.RequestHandlerClass(request, client_address, self) File "C:\Python27\ArcGIS10.2\lib\SocketServer.py", line 651, in __init__ self.finish() File "C:\Python27\ArcGIS10.2\lib\SocketServer.py", line 710, in finish self.wfile.close() File "C:\Python27\ArcGIS10.2\lib\socket.py", line 279, in close self.flush() File "C:\Python27\ArcGIS10.2\lib\socket.py", line 303, in flush self._sock.sendall(view[write_offset:write_offset+buffer_size]) error: [Errno 10053] I can use arcpy but there is no auto complete 😞 kr, Daniel
... View more
05-12-2016
10:32 AM
|
0
|
1
|
2314
|
POST
|
Hi, had the same problem trying to get infos about symbology. Only solution was to query the SQLite-Database (.geodatabase) using QtSql-API and grab the JSON describing the renderer. Most information is stored in the columns ItemInfo and AdvancedDrawingInfo of table GDB_ServiceItems. Daniel
... View more
05-03-2016
09:32 AM
|
0
|
1
|
274
|
POST
|
Hi Luke, Found some time to make a minimal example using only files from the sdk samples. Maybe this will leads to new insights 🙂 kr, Daniel
... View more
05-03-2016
09:20 AM
|
0
|
0
|
550
|
POST
|
Query "1=1" returns no results, which means (set != 0), but (set->count() == 0). Which is only correct for the "empty" mpk-File before adding the shapefile dynamically.
... View more
04-25-2016
10:24 AM
|
0
|
0
|
550
|
POST
|
Used the code below, but again only the empty layer in the mpk-File is queried not the one loaded from the shapefile. If queried for the field "id" set->count() is 0. A query for a field which is only defined in the shapefile restults in (set == NULL). EsriRuntimeQt::Query query; query.setWhere("id >= 0"); query.setDynamicLayerInfo(layerInfo); m_queryTask = new EsriRuntimeQt::QueryTask(m_dynamicLocalServiceLayer2->url()+"/0",this); EsriRuntimeQt::FeatureSet* set = m_queryTask->executeAndWait(query); if ( set ) { qDebug()<<set->count(); }
... View more
04-25-2016
06:28 AM
|
0
|
3
|
550
|
POST
|
Just tried a QueryTask with tha data of the shapefile in an mpk-File and it works, so I'll be missing something!? Queried the shapefile using gdal-api for now (bit ugly) but it seams to work...
... View more
04-22-2016
07:40 AM
|
0
|
0
|
550
|
POST
|
As long as only my own code is involved this will work, but trying to plot some statistics with for example qcustomplot will lead to the same problem...
... View more
04-22-2016
07:38 AM
|
0
|
1
|
255
|
POST
|
Hi, just found that at least symbols from QList<double> are exported to EsriRuntimeQt.dll/EsriRuntimeQtd.dll. As soon as for example "ResolutionList.h" is included, a class with e.g. a QList<double> member will lead to linker errors because of multiple defined symbols. I 've attached a minimal example. Had to force to ignore multiple defined symbols with QMAKE_LFLAGS += /FORCE:MULTIPLE to link properly, which is not what one wants to do! Seams that something went wrong compiling the windows binaries... kind regards, Daniel
... View more
04-19-2016
07:28 AM
|
0
|
3
|
2528
|
POST
|
In order to add the shapefile to the local service, I created an mpk-File "blank.mpk" with ArcMap which includes only an empty Polyline-Shapefile. As shown in the examples, I added the shapefile to the associated ArcGisDynamicMapServiceLayer (after modifying the dynamic workspaces) like this EsriRuntimeQt::SimpleRenderer* simpleRenderer; simpleRenderer = new EsriRuntimeQt::SimpleRenderer(EsriRuntimeQt::SimpleLineSymbol(QColor(0, 100, 250), 3.0), this); EsriRuntimeQt::DrawingInfo* drawingInfo = new EsriRuntimeQt::DrawingInfo(simpleRenderer, 20, this); layerInfo->setDrawingInfo(drawingInfo); // Create the table data source EsriRuntimeQt::TableDataSource* dataSource = new EsriRuntimeQt::TableDataSource(this);
dataSource->setWorkspaceId(m_workspaceId);
dataSource->setDataSourceName(m_dataSourceFileName); // Set the data source EsriRuntimeQt::LayerDataSource* layerDataSource = new EsriRuntimeQt::LayerDataSource(this);
layerDataSource->setDataSource(dataSource);
layerInfo->setLayerSource(layerDataSource);
layerInfo->setDefinitionExpression(m_queryString);
m_dynamicLocalServiceLayer2->refresh();
After this the Polylines from the shapefile are drawn, but the url shows the old attributes of the "blank.mpk"! A query on that empty package will always return zero results...
... View more
04-19-2016
05:11 AM
|
0
|
0
|
550
|
POST
|
Hi, I created an ArcGisDynamicMapServiceLayer on a local map service and opened a shapefile. Is it possible to query the attributes of this layer? I set a DefinitionExpression through DynamicLayerInfo but how can I access the attributes of the visible features? Using a QueryTask always results in 0 features, I used the blocking and non blocking methods. Are querys on local services not allowed? kind regards, Daniel
... View more
04-18-2016
10:31 AM
|
0
|
8
|
4707
|
POST
|
Hi Luke, works perfect. Thanks a lot! As long as the performance is acceptabe, the length of the workflow is no concern. Do you know when native support for shapefiles will be available? -Daniel
... View more
04-15-2016
09:25 AM
|
0
|
0
|
192
|
POST
|
The layer consists of polylines which should be first shown completely. The number of polylines to show should then be limited by querying the associated attribute table. You can think of a slider which is used to restrict the maximum allowed value of one attribute resulting in a subset of "valid" features. May be this is only achieved with the ArcObjects SDK directly?
... View more
04-13-2016
11:05 AM
|
0
|
4
|
587
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|