|
POST
|
Hi Andrew, I would recommend using a Mosaic Dataset rather than a raster catalog. A Mosaic Dataset will save you an enormous amount of disk space, and it performs much faster. Also, users will be able to change the symbology to Classified regardless if the source imagery has an attribute table or not.
... View more
08-31-2012
05:58 AM
|
0
|
0
|
1670
|
|
POST
|
Hi Andrew, If you are using your script within a toolbox you can do this using the Tool Validation tab. You would set a parameter (i.e. Input) under the Parameters tab of the script's Properties. The Data Type for this parameter would be 'String'. You can then update the initializeParameters function with the following: def initializeParameters(self): arcpy.env.workspace = r"C:\temp\python\test.gdb" list = [] lstFCs = arcpy.ListFeatureClasses("*") for fc in lstFCs: list.append(fc) stringFilter = self.params[0].filter stringFilter.list = list return You will want to change the 'arcpy.env.workspace' to your desired workspace. You will also need to update 'arcpy.ListFeatureClasses' if you are working with another data type (i.e. rasters, tables).
... View more
08-31-2012
05:33 AM
|
0
|
0
|
950
|
|
POST
|
1. what does the * do? -This is a wildcard. Specifying this tell the function to list all tables within your geodatabase. 2. what does the get message () do? -This reports any errors/warnings that may occur when you try to execute a command. For example, if the 'arcpy.mapping.ExportReport' function failed, it would output the error messages. More information can be found here.
... View more
08-31-2012
04:15 AM
|
0
|
0
|
1721
|
|
POST
|
Hi Sean, Try the following: import arcpy, os
from arcpy import env
env.overwriteOutput = 1
env.workspace = r"C:\Workspace\CaseTypeTables.gdb"
lstTables = arcpy.ListTables("*")
for table in lstTables:
cttable = arcpy.mapping.TableView(table)
try:
arcpy.mapping.ExportReport(cttable, r"C:\Workspace\working\LAS_case-type_report.rlf", r"C:\Workspace\working\successPDFreport.pdf" + os.sep + table + "_PDFreport.pdf")
except:
arcpy.GetMessages()
... View more
08-30-2012
08:42 AM
|
0
|
0
|
1721
|
|
POST
|
Hi Richard, Instead of copying/pasting the date into the field, use python's time.strftime() function within the field calculator. This will update all the rows for that field with the specified date. Be sure you have 'Python' checked at the top of the field calculator. Ex: [ATTACH=CONFIG]17375[/ATTACH]
... View more
08-30-2012
08:10 AM
|
0
|
0
|
937
|
|
POST
|
Are you trying to enter a value in the combo box, search through all the attribute tables within all the layers of your MXD, and then select the layer that contains the value within it's attribute table?
... View more
08-27-2012
12:39 PM
|
0
|
0
|
566
|
|
POST
|
Hi Johanna, Python looks in the directories that are part of the module search path. These directories are listed in the sys.path variable from the sys module. To list where the Python looks for modules, print out the value of the sys.path variable. For example: import sys
print sys.path If the previous path of this module is located there, this could be the reason you are receiving this error. You can remove the path by using sys.path.remove.
... View more
08-24-2012
03:50 AM
|
0
|
0
|
1256
|
|
POST
|
Thanks JSkinn3. So, if I set the pooled service maximum connections to 1 (one) it will use only one connection to database? If it is correct, so me and my colleague have read access to the database, right? The case is: I have this sql geodatabase that is consumed by the web map service, can we (me and one user) access it to read (and one of us write)? Thanks in advance Yes, that is correct. If you are still receiving a max connections error, check the 'dbo.sde_process_information' table within SQL Server Management Studio to see if there are any orphaned connections. At 10.1, there is new functionality that allows you to see which users are connected to the geodatabase directly from the catalog window.
... View more
08-23-2012
10:27 AM
|
0
|
0
|
2591
|
|
POST
|
SOC connections can consume as many connections that the service's max instance is set to. You can check this by right-clicking on the service > Service Properties > Pooling tab. If the max is set to 2, and two users are using the service concurrently, then this will spawn two SOC connections within the geodatabase. See my post above for a more in depth explanation.
... View more
08-23-2012
07:52 AM
|
0
|
0
|
4998
|
|
POST
|
I would also recommend saving to a path outside of where you are using the 'os.walk' function. Once the new MXD is saved, the script will try and update the paths of that MXD, and even though paths do not need to be updated, it will error due to a lock on the MXD from the current script.
... View more
08-23-2012
07:38 AM
|
0
|
0
|
731
|
|
POST
|
You can replicate between SQL Server and SQL Server Express. I believe the problem is with the data. As a test, try the following: 1. Create a new feature class in SQL Server 2. Register the feature class as versioned 3. Add Global IDs 4. Enable Attachments 5. Add the feature class to ArcMap and create the replica to the SQL Server Express database using the Create Replica wizard [INDENT]a. Be sure to select Advanced and select Full Model b. Specify 'All records' for the attachments table [/INDENT] 6. Complete the wizard Is the attachments table replicated successfully?
... View more
08-23-2012
07:22 AM
|
0
|
0
|
2856
|
|
POST
|
Try replicating to a personal geodatabase using Full Model. You should not be receiving that error when you choose 'Full Model'.
... View more
08-23-2012
06:30 AM
|
0
|
0
|
2856
|
|
POST
|
Hi Stephanie, Could you post the script you are using?
... View more
08-23-2012
05:00 AM
|
0
|
0
|
1507
|
|
POST
|
Hi Abby, It would be best for you to report the bug to Tech Support. They will confirm whether it's a bug, and provide any workarounds.
... View more
08-15-2012
08:19 AM
|
0
|
0
|
2564
|
|
POST
|
Hi Richard, It looks like you are specifying the full path of the new raster in the second parameter of the Create Raster function. This parameter will only require the name of the new raster. Try the following instead: arcpy.CreateRasterDataset_management(LCOutDir, "SmallTree_mosaic1", 1, "8_BIT_UNSIGNED", CoordSys, 1, "", "PYRAMIDS 0", "", "NONE", "")
... View more
08-15-2012
07:37 AM
|
0
|
0
|
1266
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 3 weeks ago | |
| 4 | 05-07-2020 05:14 PM | |
| 1 | 03-25-2026 04:16 AM | |
| 1 | 03-16-2026 01:00 PM | |
| 1 | 12-22-2025 10:39 AM |
| Online Status |
Offline
|
| Date Last Visited |
yesterday
|