|
POST
|
Thanks Duncan I need to revisit the timings on a Get Count on a selection from a 3.5 million row ArcSDE for Oracle feature class but I think it is in the range 8-15 mins so that is one of the ArcGIS limits that I am looking for a way around. - Graeme
... View more
02-26-2012
11:54 AM
|
0
|
0
|
1063
|
|
IDEA
|
-->
I use in_memory workspaces to speed up some Python script tools that get published as Geoprocessing Services significantly.
The tools open MXDs and perform, among other things, an ExportToPDF.
In the MXD there is a layer that references a dataset stored on disk.
At runtime a new dataset gets created with the same schema as that above, so that it can replace it as the data source but, given a choice, I would like that new dataset to ONLY be written to the in_memory workspace.
My testing suggests that using in_memory workspaces like this is not supported by either Layer.replaceDataSource or Layer.findAndReplaceWorkspacePath.
There appears to be no ArcPy way to replace the data source of a layer with a feature class stored in the in_memory workspace so that it can be displayed in a map that gets exported to PDF before the in_memory workspace is deleted.
It looks like this would possible using ArcObjects and an InMemoryWorkspaceFactory but I need an ArcPy solution.
If there is no way to do this using ArcPy at ArcGIS 10.0 (and nothing coming at 10.1) then what I will do is to propose as an ArcGIS Idea that Layer.replaceDataSource be enhanced to support a workspace_type=INMEMORY_WORKSPACE option.
I have also posted this to the ArcGIS Discussion Forums and at Stack Exchange GIS but have had no replies there so far.
... View more
02-25-2012
08:07 PM
|
27
|
4
|
2127
|
|
POST
|
Hi Paul There is no guarantee that a model will just work when exported to Python script - see http://blogs.esri.com/dev/blogs/geoprocessing/archive/2011/06/24/exportmodeltopy.aspx If you need help debugging why your exported model gives that error perhaps post some code. - Graeme
... View more
02-23-2012
07:44 PM
|
0
|
0
|
1066
|
|
POST
|
This question may or may not be better posed to the Python forum rather than this Geoprocessing forum - but I'll try here first. I have a 3.5 million polygon layer (cadastre) stored in Oracle via ArcSDE. I use a polygon feature chosen by an end user from a second layer to copy out the cadastral polygons that intersect it (via Copy Features). I can get this to work fine for most polygons to get the few seconds to few minutes response needed by using the polygon the user chooses to set the geoprocessing extent (arcpy.env.extent) prior to executing Copy Features. However, for a few polygon features that the user might choose (think petroleum or gas pipeline corridor), the number of polygons that would be copied out can number up to about 200,000. These can be copied in about 15 mins, but rather than get all of these back so that I can write them into a very bloated PDF report, I would like to save time and pages by having the option to set a maximum number of features that can be copied out i.e. be able to set a MaxRecordCount = 500 that would stop the Copy Features once 500 had been copied. Is there a way to tell Copy Features to only copy up to a maximum number of features? Alternatively, is there a fast way to get a count of how many features in an ArcSDE layer are within the current geoprocessing extent?
... View more
02-23-2012
03:26 PM
|
0
|
5
|
1461
|
|
POST
|
I've enjoyed using in_memory workspaces to speed up some Python script tools that get published as Geoprocessing Services. The tools open MXDs and perform, among other things, an ExportToPDF. In the MXD there is a layer that references a dataset stored on disk. At runtime a new dataset gets created with the same schema as that above but, given a choice, I would like that new dataset to ONLY be written to the in_memory workspace. My testing suggests that using in_memory workspaces like this is not supported by either Layer.replaceDataSource or Layer.findAndReplaceWorkspacePath. Is there a way to replace the data souce of a layer with a feature class stored in the in_memory workspace so that it can be displayed in a map that gets exported to PDF before the in_memory workspace is deleted? Note: After no responses here in first 12 hours or so I have also posted this to Stack Exchange GIS
... View more
02-14-2012
12:52 AM
|
0
|
1
|
638
|
|
POST
|
I just read this: "HTML pop-ups are a useful way to view multiple attachments for a feature at the same time. They work not only in ArcGIS Desktop but also in web applications, ArcGIS Explorer, or ArcReader." at: http://www.esri.com/news/arcuser/0311/more-ways-to-organize-information.html I've not tested but maybe that could work for you? Although re-reading the article makes me think not - perhaps time for an ArcGIS Idea ...
... View more
11-27-2011
08:03 PM
|
0
|
0
|
531
|