|
POST
|
I have some featureclasses in an sde database that were created by users no longer in the organization. These have been determined as no longer useful. The problem is only the creator of the data has select and insert/update/delete. I am trying to use the sde account to delete the featureclass but it has insufficient privileges. On feature classes I create, if I assign delete privilege to sde, sde can delete the feature class (other users granted delete can only delete rows!) However, I cannot grant myself (sde) privileges to delete these feature classes. I would like to pyScript this up help with data management so geoproc tools are nice. Any one know how to delete the old stuff? Do I need to use SQL and start messing with the SDE tables?
... View more
09-22-2014
09:46 AM
|
0
|
8
|
2602
|
|
POST
|
I like this solution but checking the number of paramters from arcpy would be good too since it might be invoked incorrectly from command line without the arguments, the absence of args could be either user error or toolbox...
... View more
08-06-2014
12:04 PM
|
0
|
0
|
4122
|
|
POST
|
Thanks James, This solution is pretty elegant but I gave the answer to Shaun because although satisfies the initial requirements doesn't account for the possibility that the script could be called by other esri applications such as ArcCatalog, etc. It is possible to trap for each one but then esri can come out with new applications such pro...
... View more
08-06-2014
12:00 PM
|
0
|
1
|
4122
|
|
POST
|
I have some scripts I want to run both command line (schedule task) and in the desktop toolbox. I use argparse for command line arguments but toolbox uses arcpy.getParameters... Is there a best practice to have the same script be run in multiple ways? I specifically don't want two scripts since the toolbox one is used to make sure the output of the scheduled one will be correct.
... View more
08-05-2014
07:32 AM
|
2
|
9
|
10562
|
|
POST
|
I have a few extensions (3 and growing) that implement IExtensionConfig. The extensions are for doing different sorts of task in ArcMap, so they rely on different data loaded, enable different custom tools etc. I only want one extension enable at the time. So I added logic in IExtensionConfig.state set to check the state of the other extension when a user turns the extension on and display a message an disable the extension. That is fine but the extension window is not refreshed. If I close and reopen it, it appears correctly. This is similar to this thread but it is not add-ins and that thread didn't have an answer. http://forums.arcgis.com/threads/52088-AcrMap-Application-Extension-AddIn-and-IExtensionConfig How to I get the window to refresh?
... View more
06-20-2014
07:28 AM
|
0
|
0
|
839
|
|
POST
|
I will be praying that it uses ArcObjects and not some new set of Objects. But if not, it won't be the first or second or third time ESRI said "Let's make our client developers do it all again". I suggest voicing you concern to esri. Personally I think getting away from COM is a very good thing but esri can provide a similar API in .net with most of the same objects.
... View more
06-06-2014
04:36 AM
|
0
|
0
|
1604
|
|
POST
|
ArcGIS professional is a new application esri is releasing with 10.3 (the last I heard.) It is a 64 bit application, multi-threading that using esri's custom graphic engine (no GDI+.) It is brand new, .NET based (no COM) application with no ArcObjects. Story is python scripts written for desktop will work (unlikely since desktop is python 2.7 and pro is 3.4) GUI customization is going to be through WPF. On the face of it, it looks like a replacement for desktop and it may eventually be that. I suspect so many new things at once will compromise stability. I also suspect it will not have the full suite of functionality desktop currently has. Looks like you can do some cool new things, how useful, I am not sure. I wouldn't get too excited or too upset just yet. Our organization has a lot of investment in customization in ArcObjects (and also in AML.) The switch wouldn't be easy... As far as 64bit, 32bit and Any CPU, you can compile for 'Any CPU' for dlls (not exes) The calling exe needs to be 32 bit on the client and 64bit on the server. For example, if ArcMap calls a dll compile as Any CPU, it will load it in 32bit because ArcMap is already started in 32bit. Server should load in as 64bit. You can also set up different configurations in the visual studio (release32, release64) and compile the same code base twice... Not as nice but it should work. If you have a build server, you can automate all that.
... View more
06-05-2014
11:35 AM
|
0
|
0
|
1604
|
|
POST
|
Looking to use management AddAttachment tool in ArcPy. Want to add a bunch of attachments without writting a csv file. Basically reading files from disk, creating the row and adding the attachments. Bulk process with 100s thousands of files, don't want to write a csv file on disk with all the entries. Want to create the tableview in memory and populate it with values and use it in the addattachment. Any one knows if it can be done
... View more
03-18-2014
01:01 PM
|
0
|
2
|
2323
|
|
POST
|
0.07 acres off sound like a rounding error. I don't think it is the same problem. Shape.Area is usually almost meaningless. It is the cartesian area calculated in the coordinates of the dataset as if the the world was flat. If your dataset's spatial reference is not defined to start with, the shape.area is of unknown units, so potentially doubly meaningless. Just think, what does the shape.area mean if the polygons are in geographic coordinates (latitude/longitude)? It means pretty much nothing at all. If your dataset is projected with non-angular units (metres, feet, etc.) then it represents the area within the tolerance of the distortion factor (scale factor) of the projection system if your projection system is appropriate for the data and area measurements. In that case you may end up with 0.07 discrepancies due to projection distortion.
... View more
03-06-2014
04:41 AM
|
0
|
0
|
478
|
|
POST
|
This is an interesting problem but you actually have two questions, it seems to me. 1. how to determine if the high point between two point is smooth or sharp(?) Which really depends on how you distinguish either in terms of your wave diffraction equation. Seems like a directional slope change problem, 2nd polynomial or running slope tool twice. 2. how to do this in ArcObjects. You really can't tackle this until you'v answered question 1.
... View more
02-26-2014
10:56 AM
|
0
|
0
|
489
|
|
POST
|
A file gdb will almost always outperform an entreprise gdb. The model is much, much simpler, you are just writing to a file on your hard drive. As long as on-access scanner isn't killing the performance it will be much faster. For the code side, I would consider not using an edit session or at least not use an edit operation if you can get away with it. The option to turn off the undo/redo doesn't always work (Note that the supression of undo/redo logging is not supported for remote database workspaces.) I would consider using an insert cursor and calling flush every so many records (100? something to experiment with.) CreateFeature for sure will create an objectId for each call when it is called so, right there sql statements are being generated one at the time... I suggest you look at the following link and avoid creating the features one by one. There are more direct ways of doing this. If you need to process the data, you can do that in the fgdb and then load. http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#//0001000003rp000000 From the database side, a lot can be done tweak the performance. The trick is to know what is holding you up. Do you have versioning? How big is the user temp space? What is going on with the roll back log? Do you have replication? These are some of the many things you need to master to get performance out of your database. A good orace DBA can be invaluable in figuring out performance on the Oracle side. You can also consider using spatial SQL to insert the features directly through the SQL geodatabase API http://resources.arcgis.com/en/help/main/10.1/index.html#//006z00000008000000 I have also dabbled in exporting recordsets into XML and importing them as a new featureclass in Oracle, maybe that can work for you. Variable size sample sets, some good metrics and some experimentation, I think you will find an efficient way of doing this.
... View more
02-12-2014
12:10 PM
|
0
|
0
|
1064
|
|
POST
|
In the debugging options, you can try removing the "Require source files to exactly match the original version" I have found that in some cases vs recognizes the code as different even when it is not.
... View more
02-12-2014
10:33 AM
|
0
|
0
|
621
|
|
POST
|
I have never user VS2012 but I certainly have encountered this. Make sure you have don't have some other version of the code kicking around. In debug, you should be able to open the "modules" window. This shows all the dlls loaded by ArcMap, including your own and the path to the dll. Make sure you have the right one.
... View more
02-12-2014
10:08 AM
|
0
|
0
|
621
|
|
POST
|
ArcGIS engine is 32 bit only. http://support.esri.com/en/knowledgebase/techarticles/detail/40729 It says 10.1 but the article is referenced in 10.2 documentation also http://resources.arcgis.com/en/help/system-requirements/10.2/index.html#//015100000068000000
... View more
02-11-2014
11:15 AM
|
0
|
0
|
713
|
|
POST
|
even if the data link is broken you can still access many properties of the featureclass if you need. The IDataLayer interface of FeatureLayer has DataSourceName which will be a featureclassName object which has the name and path of the featureclass among other things.
... View more
02-11-2014
09:21 AM
|
0
|
0
|
549
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 12-02-2024 10:26 AM | |
| 1 | 07-05-2024 08:45 AM | |
| 1 | 10-05-2022 02:19 PM | |
| 6 | 03-27-2017 01:16 PM | |
| 1 | 05-05-2016 05:46 AM |
| Online Status |
Offline
|
| Date Last Visited |
03-28-2025
07:37 AM
|