POST
|
Thanks Chris. I have checked that the field set as the Primary Key is unique through the dataset. I did manage to resolve this. The issue was in the underlying SQL view using the .STBuffer function. The solution was simply to remove the .STBuffer function from the SQL view and added it to the layer query when setting the layer's data source. I guess using SQL Geometry functions in SQL views results in ArcMap performance issues.
... View more
11-13-2023
05:01 PM
|
0
|
0
|
154
|
POST
|
Hi I have come across an unusual behavior in arcmap and kind of hit a real roadblock. I have a Polygon layer(A) in an mxd that has been configured from a view in SQL-Server. The aim is to programmatically add a definition query, extract the geometry and use the selectByLocation tool to query features from another layer. When configuring A, I selected an integer field(Pkey) as the object id field, select Finish , Apply, save and close the mxd. I then reopen my mxd and apply a definition query to filter out a ERef(field from screenshot). Now this is where I noticed the issue. After applying the definition query and hit zoom to layer I can see the feature on the map but not in the attribute table. As a result, when I use the select by location tool in my python script or even run it manually, it returns no results. I have tried a couple of things like selecting a combination of different fields as the pkey and that did seem to work for a while until this started to happen again. Some pointers on the way forward would be appreciated. Regards Nigel
... View more
11-06-2023
07:05 PM
|
0
|
2
|
261
|
POST
|
Hey Bakker, Thanks so very much this is exactly what I was looking for. Regards, Nigel
... View more
01-30-2018
03:41 AM
|
0
|
0
|
526
|
POST
|
Hi, I wish to move a polygon from an existing location to any location that user clicks on the map in arcobjects. Kind of what the editor tool does that allows you to drag a polygon from one location to another. I just need to know if there is any class/function that allows me to move polygons to a new centroid. Regards, Nigel
... View more
01-28-2018
11:00 PM
|
0
|
2
|
674
|
POST
|
I have a form that runs some geo processing tools in a sequence when it displays. However when i click the close button the form gets disposed but the geo processing tools still execute. Is there any way of cancelling the task after Execute(process,null) is called o the geoprocessor? If yes could someone post some code for the same?
... View more
02-28-2017
10:45 PM
|
0
|
1
|
991
|
POST
|
Hi Nirdesh, I wish to achieve this programmtically. Like GxFilterShapefiles is used to filter Shapfiles. GxFilterPointFeatureClasses is sued for point Featureclasses and so on. Regards, Nigel
... View more
08-02-2016
02:47 AM
|
0
|
0
|
338
|
POST
|
Is there a way of making the user select a .sde file using a IGxDialog ?
... View more
08-01-2016
10:34 PM
|
0
|
3
|
1452
|
POST
|
Thanks Sean. This really did the Job for me. Regards, Nigel.
... View more
03-20-2016
10:16 PM
|
0
|
0
|
460
|
POST
|
I wish to identify any polygon within a featureclass that have an angle less than 10 Deg similar to the data reviewer's polyline data check tool called "Cutbacks check" Regards, Nigel.
... View more
03-17-2016
12:04 AM
|
0
|
2
|
2776
|
POST
|
Got it. I had to use a IGpValueTableObject in the snap_environment parameter.
... View more
02-14-2016
09:38 PM
|
0
|
0
|
394
|
POST
|
Hi, I wish to execute the snap geoprocessing tool from the editing tools toolbox, However I am having trouble passing in the parameters for the snap_environment parameter. Here is my code: Geoprocessor pGp = new Geoprocessor(); Snap pSnapTool = new Snap(); pSnapTool.in_features = pInputFeaturClass.AliasName; IArray snap_environment = new ArrayClass(); IVariantArray snap_paramters = new VarArrayClass(); IVariantArray parameters = new VarArrayClass(); parameters.Add(pWorskpace.PathName + "\\" + pSourceFeaturClass.AliasName); parameters.Add("EDGE"); parameters.Add("50 Meters"); snap_environment.Add(parameters ); pSnapTool.snap_environment = snap_environment; pGp.Execute(pSnapTool, null); Can anyone provide the correct syntax? Regards, Nigel
... View more
02-12-2016
03:04 AM
|
0
|
1
|
1957
|
POST
|
Thanks Freddie. I needed to pass the featureclass alias name as the input and not the featureclass object. Thanks so much for your efforts as always. Regards, Nigel.
... View more
12-09-2015
08:23 PM
|
0
|
0
|
387
|
POST
|
I tried what was given in the link you provided. But the gpresults are null... I don't know why? How do I export the result to a feature layer? Regards, Nigel.
... View more
12-09-2015
07:13 AM
|
0
|
2
|
387
|
POST
|
Hi, I have featureclass and a table who's data i wish to join. I am using the AddJoin class to perform this operation. However after the join i get a layer like "GPL0" in the TOC with the results. Why hasn't the join got applied to the featureclass? If I run the AddJoin tool manualy from the toolbox in ArcMap the result appears in the featureclass table. But the same does not display when I try to achieve it programatically. Is it possible to rename or export GPL0? Here is my snippet. ITable pDerivedTable = OuputFGBLocation.OpenTable(tablename);
//ITableView pJoinTableView = new TableViewClass();
//pJoinTableView.Table = pDerivedTable;
//GDM Layer
ITable pGDMFClassTable = pGDMFclass as ITable;
//ITableView pGDMTableView = new TableViewClass();
//pGDMTableView.Table = pGDMFClassTable;
AddJoin pAddJoin = new AddJoin();
pAddJoin.in_layer_or_view = pGDMFClassTable;
pAddJoin.in_field = pGDMFClassTable.Fields.get_Field(pGDMFClassTable.Fields.FindField(AddInObjects.GDMID_FIELD_NAME));
pAddJoin.join_table = pDerivedTable;
pAddJoin.join_field = pDerivedTable.Fields.get_Field(pDerivedTable.Fields.FindField("ORIGGDMID"));
pAddJoin.join_type = "KEEP_COMMON";
pGp.Execute(pAddJoin,null);
Regards, Nigel.
... View more
12-08-2015
09:14 PM
|
0
|
4
|
2947
|
POST
|
The Only way the tool works successfully is to create a connection in the catalog window and run the toll while that connection is in the "CONNECTED" State. Thanks everyone for your help. Regards, Nigel.
... View more
12-08-2015
09:06 PM
|
0
|
0
|
383
|
Title | Kudos | Posted |
---|---|---|
1 | 05-08-2015 04:09 AM | |
2 | 05-08-2015 09:57 AM | |
1 | 05-08-2015 11:04 AM | |
1 | 05-28-2015 10:51 AM | |
2 | 05-07-2015 10:59 AM |
Online Status |
Offline
|
Date Last Visited |
11-14-2023
01:06 AM
|