POST
|
Got it. With a little help from stackoverflow I found a solution. The problem was indeed that I have to use IObjectFactory to create the new geometry object. IObjectFactory objFactory = m_application as IObjectFactory;
//Use reflection to get ClsID of PointClass.
Type pointClassType = typeof(PointClass);
string typeClsID = pointClassType.GUID.ToString("B");
IPoint esriProcessSpacePoint = (IPoint)objFactory.Create(typeClsID);
esriProcessSpacePoint.X = x;
esriProcessSpacePoint.Y = y;
newObject.Shape = (IGeometry)esriProcessSpacePoint;
... View more
03-09-2018
08:00 AM
|
0
|
0
|
518
|
POST
|
Hello, i try to create a (point)-feature in an existing Layer via ArcGIS Automation. I can create the Feature but when I call feature.Store() I get an "HRESULT: 0x80010105 (RPC_E_SERVERFAULT)" error. If I just edit an existing feature that I got from a SearchCursor it works flawlessly. My application is a WinForms .Net 4.5 programm. I get a connection to a running ArcMap Instance via IAppRot->IAppRef->IApplication->IDocument. From the IDocument I get a reference to a specific Layer where I need to add a feature. After that it is very basic stuff: IFeatureClass featureClass = ((IFeatureLayer)i_Layer).FeatureClass;
IFeature newObject = featureClass.CreateFeature();
// Assign a geometry to the feature
newObject.Shape = geom;
newObject.Store(); Store allways fails with the RPC_E_SERVERFAULT Exception. I also tried to create the feature via IFeatureCursor->IFeatureBuffer but then it fails with the same error on featureCursor.InsertFeature(featureBuffer); Starting an Edit-Session for this operation has no effect. It just fails later when calling workspaceEdit.StopEditing(true); I tried with ArcGIS 10.5 an 10.3 but the results are the same. Other automation tasks like moving the map, setting layer-visibilities or even editing existing features work perfectly. I read the introduction on ArcGIS automation in the documentation and learned about application's process space and "IObjectFactory". Do I have to use that somehow to create the new Feature? How can I do that? Or is there something else that I am doing wrong? Any idea is apreciated!! Thanks, Stefan
... View more
03-07-2018
01:30 AM
|
0
|
1
|
671
|
POST
|
Hi, i have the same problem. Code runs since 9.3.1 and fails now. Did you find a solution for this? Error: "System.Runtime.InteropServices.COMException" HRESULT: 0x80010105 (RPC_E_SERVERFAULT) The code looks like this: Dim aoiFeatureSelection As IFeatureSelection = DirectCast(iFLayer, IFeatureSelection) aoiFeatureSelection.SelectFeatures(objQuery, esriSelectionResultEnum.esriSelectionResultNew, False) Nothing fancy. Bug in 10.4?? Greetings, Stefan
... View more
09-08-2016
06:10 AM
|
0
|
2
|
336
|
POST
|
That was my first reaction also. But apparently there are tools that create a valid network in a postgres database from downloaded open street map data. I think I will call the client next week or so and ask him about the results...
... View more
05-04-2016
04:53 AM
|
0
|
1
|
1826
|
POST
|
For reference: After a lot of digging I found a solution. The easiest option is to use ArcGIS Pro and use online geoprocessing from "http://logistics.arcgis.com/arcgis/services".You can use this service as an geoprocessing tool and calculate very nice service areas. The credit costs are acceptable, if you only want to analyse a handful of locations. I presented this solution to our client and he was happy. Then I told him to activate his ArcGIS Pro license and pointed him to an online help site that explains the necessary steps. Surprisingly there are nearly 30 steps necessary to get an ArcGIS Pro license up and running. The client was not happy anymore. His reaction: Ok, forget it. We will create our own network dataset and use pgRouting. Great.
... View more
05-04-2016
01:38 AM
|
0
|
0
|
1826
|
POST
|
Hello, one of our Clients has to create Isochrones for a set of Points (~30) in a City. It is a one-time-project and he has to do it only for one city. The Client has ArcGIS Desktop Standard and ArcGIS Server enterprise Standard. No Modules like Network analyst at the moment. What is the easiest way for him to create some Isochrones? Get a Test Installation of Network analyst? How can he get the road network for his city? Is there an option via ArcGIS Online? He doesn't use it at the moment, but could activate it. (Blasphemy warning) Or is there another easy option aside from Esri? Open Street Map or something? The goal is to minimize the effort, especially for creating a road network etc. Greetings, Stefan
... View more
04-07-2016
04:04 AM
|
0
|
6
|
7605
|
POST
|
Hello, the ST_EQUALS works in your example because the additional vertex is absolutely exact in a straight line with the corner points. Yet in a "real-world" example, where the lines are not along the coordinate axis and the extra vertex is a tiny bit out of the mathematical straigt line (for example due to rounding) this tool 'fails'. Try this: select SDE.ST_EQUALS( sde.st_geometry('POLYGON ((0 0, 2 0, 2.0001 1, 2 2, 0 2, 0 0))', 0), sde.st_geometry('POLYGON ((0 0, 2 0, 2 2, 0 2, 0 0))', 0)) FROM DUAL; Greetings, Stefan
... View more
01-20-2016
01:56 AM
|
0
|
0
|
1569
|
POST
|
Thanks, I will test this script. But I would rather have something that can be used within a SQL statement. Greetings, Stefan
... View more
01-20-2016
01:49 AM
|
0
|
0
|
1569
|
POST
|
Hi, sadly this is not for us poor "ArcGIS Standard" guys... Also I am searching for a solution that can be used within an SQL Statement. Otherwise I would have to make big changes to the already implemented workflow. Thanks anyway, Stefan
... View more
01-20-2016
01:46 AM
|
0
|
0
|
1569
|
POST
|
Hello, can you elaborate on this? I don't know how to use that in this case. Thanks, Stefan
... View more
01-20-2016
01:42 AM
|
0
|
0
|
1569
|
POST
|
Hello, I have a problem with comparing polygon objects in an (Oracle)SDE. I have to compare two polygon feature classes that contain the same data from different points in time. Featureclass "A" contains the "official" polygons from a local government and is delievered to us on a 3-month basis. Featureclass "B" contains the same set of polygons, but some of them may have been edited by our client. The total amount of polygons is always the same and they share one ID so that you can always find the "partner" objects in the two sets. The job is to find all the polygons that have geometric differences between the two sets. This could be done with ST_Equals or ST_Relate or ST_SymmetricDiff and I tried all of them. The Problem: The featureclass that was edited by my client has been processed in a workflow that includes some topology operations. During that topology geoprocessing ArcGIS inserts additional vertices in nearly every polygon to be able to conduct the operations. See the part "Note" at ArcGIS Help (10.2, 10.2.1, and 10.2.2) Those vertices don't change the geometry of the polygon because they are inserted in the middle of straight border lines. If you compare the sets "A" and "B" with ST_Equals or ST_Relate or ST_SymmetricDiff after one of them has been "treated" by the topology geoprocessing, there are thousands of "differences" although the polygons aren't really changed but only contain additional vertices. Is there a way to compare polygons while ignoring those additional vertices? One limitation: It needs to be done within an SQL statement on the SDE. Thanks for any Idea! Stefan
... View more
01-19-2016
02:06 AM
|
0
|
9
|
3932
|
POST
|
Thx. After working on sth. else for some days I found the time to test it. I had to comment out some parts involving renderers (MovableEditableRemovableGridItemRenderer) but eventually I was able to compile it. And of course: It works! It shows exactly the Icon that is specified. So its clear now, that my dev environment is not the problem. Thats annoying, because it means my programming is the problem. Nobody else to blame... I will start to check the differences between the two projects after the weekend. I'll report back when I find something.
... View more
07-10-2015
12:16 AM
|
0
|
0
|
331
|
POST
|
Oh boy. Your Widget works. It shows the picture from your assets folder. I even alterd your icon to make sure it uses the acutal png and not something embedded in the swf or the icon from the standard-assets folder. I don't get it. I found you included the sourcecode for the Widget in the zip file. (and on github obviously) But I couldn't find the uncompiled module for the configuration page. Is that intentional? Or did I just not see it? Can you provide the code for that?
... View more
07-02-2015
08:02 AM
|
0
|
2
|
331
|
POST
|
Yes, I admit I was confused by some of the steps. It says to include the "BuilderRescources" folder, but I don't have such a folder. Instead i Included the "bin-debug" folder from my FlexViewer Project. It contains the compiled FlexViewer as intended in the walkthrough: "Application Builder will bundle the compiled FlexViewer as part of its resources" But I am not sure that this can be the problem. The resulting deployment-ZIP file for my custom Widget is not affected by this. The walktrough states: "Finally, zip up the resources (assets, meta.xml, SampleModule.swf, SampleWidget.swf, and SampleWidget.xml) that define your custom widget." So thats all that should be needed. My understanding was that including the compiled FlexViewer into the ViewerBuilder Project is only needed, if you want to publish a custom Application-Builder: Deployment There are two options for deploying custom widgets: Bundled with Application Builder Custom Widget Package The only difference that I see is that I don't use the release output, but the debug Output. Thats because I dont have the option to "Keep bin-release-temp folder" (The checkbox is not there) and therefore the output of the builder project is only one ".air" file. Do you happen to have a custom widget, that you can send to me? With that I could try to import it in my FlexViewer and test if it shows the Icon. Perhaps my copy of FlexViewer ist broken...
... View more
07-02-2015
06:32 AM
|
0
|
4
|
331
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|