7,642 reputation
723
bio website tydlevidle.cz
location Prague, Czech Republic
age 28
visits member for 2 years, 9 months
seen 38 mins ago
stats profile views 358

1d
comment ArcObjects: Custom GP tools: GPCompositeDataType and DataType
Seems like a bug. You can always check what type the resulting IGPValue is by querying for implemented interfaces, such as IDEFeatureClass or IDEWorkspace3 . Will that do the trick?
Apr
16
comment Write table blob field to file
Ensure that "Embed interop types" is turned off for all Esri references. Second, try IMemoryBlobStream instead of IBlobStream (this really shouldn't make a difference though).
Apr
11
comment Cannot input new data into FeatureDataForm
Is editing enabled on the feature service you are referring to? (see resources.arcgis.com/en/help/main/10.1/index.html#//…)
Apr
11
comment ArcGIS Add-In Project to Standard Library Project
The project is flagged with a particular identifier recognized by Esri, along with including a MSBuild task in the build process. Both are saved in the .csproj file but are not accessible through any UI. You can edit the .csproj file (which is in fact a MSBuild file) manually, but do so only if you have a certain level of understanding of MSBuild and how VS interacts with it.
Apr
3
comment ESRI CreateGeometryFromWkbVariant creates CCW polygon
How does the polygon geometry look in the original WKB/WKT? It may be the case that the behaviour was wrong at 9.3.1 and is correct (fixed) at 10+. Anyway, you can probably call ITopologicalOperator.Simplify (or IPolygon4.SimplifyEx for more control) to simplify the geometry.
Apr
3
comment The underlying connection was closed: The connection was closed unexpectedly, WCF and ESRI Objects
Sorry, but that is not sufficient info. Can you paste the complete contract interface and the types it references? From what you describe it's not actually clear whether PolygonN and Geometry are ESRI COM types, ESRI SOAP WebServices library types, or whether they are defined elsewhere (or by you).
Apr
3
comment The underlying connection was closed: The connection was closed unexpectedly, WCF and ESRI Objects
That said, it is most likely a serialization issue. You could turn on WCF tracing to see what exactly fails.
Apr
3
comment The underlying connection was closed: The connection was closed unexpectedly, WCF and ESRI Objects
Could you provide more details? How does your WCF service contract look like? Are you referencing ESRI COM objects or interfaces in a WCF operation/data contract? If that's the case, you will need to define your own non-COM classes representing the data contract and convert between these and ESRI COM objects, so that at no point are ESRI COM objects exposed in the public contract.
Mar
29
comment Object does not exist in the namespace “http://schemas.esri.com/arcgis/client/2009”
Does the project reference the ESRI.ArcGIS.Client.Toolkit.dll assembly?
Mar
12
comment ArcGIS 10.1 - c# custom geoprocessing function tool - how to populate a polyline output parameter?
That is weird, if GPLine did not implement IGPLine2, then the line IGPLine2 outValue = new GPLineClass(); would not compile at all..
Mar
8
comment What is the correct way to handle assembly resolution in .NET ArcGIS add-ins?
LoadFrom context should be fine, but isn't ArcGIS using Load context instead? I'm not sure, I'll have to check.
Mar
8
comment What is the correct way to handle assembly resolution in .NET ArcGIS add-ins?
What a great topic! I personally do not like the add-in deployment model at all exactly for these reasons. I am curious what the practice and experience in the real world is. My opinion is that ArcGIS is essentially loading add-in assemblies in the wrong context (see blogs.msdn.com/b/suzcook/archive/2003/05/29/57143.aspx for further discussion).
Feb
28
comment Convert between ESRI Geometry and WKT
Thank you, look useful. I actually ended up writing my own WKT parser. Cannot open source it, though.
Feb
19
comment Recommendations on an MVVM framework for ArcGIS Desktop add-ins and/or ArcGIS WPF Runtime
Caliburn.Micro is great, it has all the features you need while being pretty lightweight. It is more suitable for scenarios where you have the whole WPF app under full control (as opposed to ArcGIS add-ins), which means you can take advantage of all its capabilities, including dependency injection etc a bit better. It also leans slightly towards viewmodel-first approach (while I prefer view-first), but I still believe there is no reason to look for other framework. That's my two cents anyway.
Feb
11
comment Is IPolygon2.QueryExteriorRingsEx Method not working in ArcGIS version 10.1 SP1?
The underlying matter is that the original signature (which would be HRESULT QueryExteriorRingsEx(long numExteriorRingsRequested, IRing** exteriorRings); in C++) is ambiguous from the .NET type library importer perspective: exteriorRings can mean either a ring pointer or a ring array pointer. The issue will manifest itself in every .NET programming language.
Feb
4
comment IGeometryBridge.GetPoints throws NotImplementedException. Am I doing something wrong?
new GeometryEnvironment() is exactly the same as new GeometryEnvironmentClass(). GeometryEnvironment (which is an interface) is decorated with the CoClass attribute: CoClass(typeof(GeometryEnvironmentClass)), so that the compiler knows which class you are instantating. This is how the .NET COM type library importer converts types (for better compatibility with legacy languages and environments).
Feb
3
comment IGeometryBridge.GetPoints throws NotImplementedException. Am I doing something wrong?
I have found the best way to reduce COM interop overhead during vertex-heavy operations is to use the WKS structure related methods, like QueryWKSPoints, SetWKSPoints, InsertWKSPoints etc. Depends on your scenario, but the performance gain should be greater.
Feb
1
comment How do I change the targeted .NET 4.0 Framework to version 3.5 in an existing VS 2010 EXPRESS project?
I advise not to do this, because this will not modify references to .NET Framework core assemblies to .3.5.
Jan
31
comment Slow performance when selecting features
Is the attribute over which you are querying indexed?
Jan
16
comment How to create a routing application with ArcGIS Server?
How does Tracking Analyst help with routing?