|
POST
|
Did you try to release the Geoprocessor object and call garbage collection afterwards? This should be done after calling a single geoprocessing tool to avoid strange affects regarding memory issues.
... View more
04-13-2011
06:18 AM
|
0
|
0
|
2017
|
|
POST
|
I guess "esri" is a prefix to avoid ambiguousities with other namespaces "System", like the .NET-namespace "System" ("System.Text", ...). But this is a pure guess, I am not sure if it is the correct explanation.
... View more
02-07-2011
12:39 AM
|
0
|
0
|
2053
|
|
POST
|
Hi, is it possible to create a MapService programmatically in .NET by using the local path of the map document (the mxd file)? Right now, I have a desktop extension importing some shape files so sde, creating layers by an xml configuration, and saving the document to a local path. Lets call this machine A. (the mxd is saved at C:\maps\mymap.mxd). Now this map should be used to create a map service on ArcGIS Server "B". The following code works fine, if the path to the mxd is an UNC path: var serverConfig = (IServerObjectConfiguration3)serverAdmin.CreateConfiguration();
var pProps = serverConfig.Properties;
pProps.SetProperty("FilePath", @"\\fileserver\maps\mymap.mxd"); But if I have no fileserver? (I know this case is rarely seen, but in my project it makes sense). This does not work (because the server B does not have access to the local file on A): pProps.SetProperty("FilePath", @"C:\maps\mymap.mxd"); Is there a way to easily copy the mxd to the server with ArcObjects? How can I achieve this programmatically? Or do I have to somehow develop a "file copy" mechanism myself? Best regards, Stefan
... View more
01-05-2011
11:12 PM
|
0
|
0
|
1406
|
|
POST
|
The Erase tool needs an ArcInfo license. May be you are using an editor or viewer license?
... View more
09-27-2010
01:50 AM
|
0
|
0
|
1087
|
|
POST
|
I don't think .net 4 is supported yet. Neither do I. Are the any known official statements from ESRI? What are you trying to do with WPF? I've displayed wpf forms in ArcDesktop - what are you trying to do beyond that? The only issue I've found is performance as the WPF forms can take a little while to load initially. Andy I am just curious if there are any barriers using WPF in ArcGIS Desktop. Currently, I have no experience in programming with WPF, just WindowsForms. Best regards, Stefan
... View more
08-26-2010
01:20 AM
|
0
|
0
|
1100
|
|
POST
|
Hi Geoff, thanks for your help. Our customer needs an extension, which is able to copy nautical data from their custom system to a SDE. The current data formats are shape and S-57. The extension should be able to create layers in ArcMap automatically. No problem for shape files, but how can S-57 layers be created with C#? The data should be read only. In my mind, two solutions may be found: (a) create a layer directly with a S-57 file as data source or (b) convert the S-57 to geodatabase, sde, and then create a layer from the gdb-featureclass(es) btw: the created layers and the mxd file are used for creating a MapService in ArcGIS server afterwards I hope you can give me any hints. Best regards, Stefan
... View more
08-26-2010
01:15 AM
|
0
|
0
|
1531
|
|
POST
|
Hi, is the S-57 data format supported by ArcGIS 9.3.1/10? I am especially interested in adding a S-57 dataset to the map by automation, for example creating a C# extension for ArcMap. Best regards, Stefan
... View more
07-01-2010
02:56 AM
|
0
|
6
|
1766
|
|
POST
|
Hi, just let me add some things to Alexanders good posting. First, you describe three problems in one thread. For the sake of simplicity, open one thread per problem. 1) The normal approach is to create a feature layer and set the feature class as data source of the layer. By setting a definition query, you can filter out some features based on a SQL query. Here are some steps to write the desired code: Create an FeatureLayer object using the new keyword, cast to IFeatureLayer interface. Open the feature class from your SDE workspace and set it to the FeatureClass property of the created IFeatureLayer object. Cast the IFeatureLayer object to IFeatureLayerDefinition and set the desired Definition Query by using the DefinitionExpression property. You can then add the IFeatureLayer object to the FocusMap. 3) Do you want to access the geometry of the feature class? The geometry of a feature class (a point, a line, a polygon, ...) can be retrieved by the Shape property of the IFeature class. When you open a feature class from an Oracle SDE workspace, the Shape could be stored in the geodatabase using the SDO_Geometry format. In ArcObjects, you are normally not interested of the exact format type. Second note: When you read the Shape property, you get an object of type IGeometry. You would normally cast it to the corresponding geometry class, eg IPoint, IPolyLine, IPolygon ... I hope this helps. Best regards, Stefan
... View more
06-17-2010
10:32 AM
|
0
|
0
|
1510
|
|
POST
|
I am developing ArcMap extensions quite frequently, but it was never a problem to create an instance in C# with the new keyword. May be you are developing an ArcGIS engine application? In this case, I would try to check out a license before instantiating the geoprocessor object. http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#//00010000043p000000 The Geoprocessor is not listed, so using the Activator class is not the right way. Best regards, Stefan
... View more
06-16-2010
11:19 AM
|
0
|
0
|
3065
|
|
POST
|
Shame on me, it works now. I actually entered the user "sde" in the sde connection file.... my fault.
... View more
06-16-2010
04:46 AM
|
0
|
0
|
1022
|
|
POST
|
My approach was to install the 32 bit Versions of Postgres 8.3 and ArcSDE 9.3.1 on the 64 bit machine, I don't know if thats running me into big problems. One thing I found out by testing is that all tables are created in the schema "sde" instead of the user-schemas. Can I assume that this a specific error arising of Windows Server 2008 R2? Setting up another operating system is a solution, but this is not in my hands. Hope the admins will have mercy with me 😉 Best regards, Stefan
... View more
06-15-2010
10:53 PM
|
0
|
0
|
1022
|
|
POST
|
Hi, I know that this combination is not officially supported by ESRI, but I want to get ArcSDE 9.3.1 running on a machine with Windows Server 2008 R2 (64bit) and a Postgres database. Has anyone tried this combination yet? A more generel question: If a combination of SDE, operating system and DBMS is not officially supported by ESRI, does this mean that there is not a chance to get it running? Best regards, Stefan
... View more
06-15-2010
11:54 AM
|
0
|
4
|
1640
|
|
POST
|
Hi, instead of using an IVariantArray, you can simply use the following code:
in_features = "C:\temp\roads.shp"
out_path = "C:\temp"
out_name = "aaa.shp"
GP.FeatureclassToFeatureclass_conversion(in_features, out_path, out_name)
This would be my normal approach using C#, there should be no big difference with VB.NET Best regards, Stefan
... View more
06-11-2010
02:22 AM
|
0
|
0
|
1485
|
|
POST
|
Can anyone give me a quick hint on how table names are fully qualified using a PostgreSQL database? I am not sure if it is <dbname>.<owner>.<tablename> or <schema>.<owner>.<tablename> I want to use it in a configurable python script, eg CopyFeatures "C:\local\Shape_1_1.shp" "Database Connections\pg.sde\<?>.<?>.Test_1_1" # 0 0 0 I am using SDE 9.3.1 Best regards, Stefan
... View more
06-11-2010
01:05 AM
|
0
|
2
|
5803
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 08-08-2017 04:46 AM | |
| 1 | 08-08-2017 07:35 AM | |
| 1 | 08-04-2014 06:11 AM | |
| 1 | 08-04-2014 10:18 PM | |
| 1 | 06-02-2016 05:14 AM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:22 AM
|