|
POST
|
Hi Jesus, If you are using IDLE or PythonWin, you will want to use 'print'. I use PythonWin so I use both 'print' and 'arcpy.AddMessage'. That way I don't have to update any code when I run the script within ArcMap. Ex: print "Succeeded" arcpy.AddMessage("Succeeded")
... View more
05-16-2012
03:48 AM
|
0
|
0
|
3277
|
|
POST
|
Hi Jeremy, If you are running ArcSDE for SQL Server, you can try a python script I created. You can download it from here. I have not extensively tested it, so please let me know of any feedback.
... View more
05-11-2012
12:53 PM
|
0
|
0
|
944
|
|
POST
|
It looks like there may be a bug with "MAXOF" & "MINOF" properties. I tested this and always received a Runtime Error: RuntimeError: No CellSize and Extent set If you set the 'arcpy.env.cellSize' and 'arcpy.env.extent' to a raster, or to a constant (i.e. 10) the code should work. You may want to report this issue to Tech Support.
... View more
05-11-2012
11:21 AM
|
0
|
0
|
1207
|
|
POST
|
Hi Gerry, The Raster Calculator needs to be executed in Desktop or Model Builder. See here: The Raster Calculator tool is intended for use in the ArcGIS Desktop application only as a GP tool dialog box or in ModelBuilder. It is not intended for use in scripting and is not available in the ArcPy Spatial Analyst module. You will want to use the Spatial Analyst 'Math' tools to perform your Raster calculations (i.e. Times, Plus, etc).
... View more
05-11-2012
07:45 AM
|
0
|
0
|
1207
|
|
POST
|
Can you send a screen shot of your Raster Calculator dialog? Also, what are the properties of your raster datasets? Ex: ESRI GRID 32 bit floating point Also, what is the coordinate system of the raster datasets?
... View more
05-11-2012
06:32 AM
|
0
|
0
|
1425
|
|
POST
|
Can this date be imported into a File Geodatabase, or is the CSV consistently updated?
... View more
05-11-2012
06:23 AM
|
0
|
0
|
1414
|
|
POST
|
The Raster Calculator needs to be executed in Desktop or Model Builder. See here: The Raster Calculator tool is intended for use in the ArcGIS Desktop application only as a GP tool dialog box or in ModelBuilder. It is not intended for use in scripting and is not available in the ArcPy Spatial Analyst module. Are you attempting to run a script in PythonWin or IDLE?
... View more
05-11-2012
06:21 AM
|
0
|
0
|
1425
|
|
POST
|
Unfortunately not. Both datasets will need to be in a geodatabase. Are you working with shapefiles? Is there something preventing your from converting your data into a File Geodatabase?
... View more
05-11-2012
06:06 AM
|
0
|
0
|
1414
|
|
POST
|
Hi Clive, What is the error you are receiving when you attempt to execute the equation in the Raster Calculator?
... View more
05-11-2012
06:04 AM
|
0
|
0
|
1425
|
|
POST
|
Hi Bailey, Does your data exist within the same geodatabase? If so, you can use the CreateRelationshipClass_management function to create a relationship class between the two data types. This creates a permanent association between fields or features in the origin feature class/table and the destination feature class/table.
... View more
05-11-2012
05:57 AM
|
0
|
0
|
1414
|
|
POST
|
Hi Shweta, Can you attach the code? Be sure to place it in CODE tags.
... View more
05-11-2012
05:54 AM
|
0
|
0
|
1217
|
|
POST
|
Hi Alan, With ArcGIS 10.1 you can connect to an enterprise database that does not have an SDE geodatabase repository and create feature classes with a native spatial type. For example, you could connect to a SQL Server database and import/create feature classes with the GEOMETRY or GEOGRAPHY spatial type. However, you can only view this feature class. You cannot perform any edits, or have the feature class participate in any geodatabase functionality (such as replication, topology, geometric networks, relationship classes, network datasets, etc). Essentially, you are getting a 'view' only feature class w/o SDE.
... View more
05-11-2012
05:04 AM
|
0
|
0
|
5244
|
|
POST
|
Hi Richard, Database Servers is used only for a SQL Server Express instance. You can create a connection here to your SQL Server Express databases and perform administrative tasks such as creating users, administer database privileges, and creating databases. You can also create a connection to your SQL Server Express databases under 'Database Connections', however you cannot perform any administrative tasks. This is typically used for other Enterprise Databases such as Oracle, SQL Server (Standard or Enterprise), PostgreSQL, DB2, or Informix. If you have a connection to your SQL Server Express instance under both Database Servers and Database Connections, data loading will be the same. You are presented with the same loading options and performance. You will want to create a connection to your SQL Server Express instance under Database Connections if you plan to publish data from SDE to ArcGIS Server. A connection here creates an SDE connection file (.sde) that the 'ArcGISSOC' user will need Read privileges to.
... View more
05-11-2012
04:31 AM
|
0
|
0
|
2258
|
|
POST
|
From the error it looks like the ArcGISSOC user does not have 'View' privileges to the feature class and/or does not have have 'Read' privileges to the SDE connection file. Did you grant 'View' privileges to the ArcGISSOC user? Also, where is your SDE connection file? Are you creating the SDE connection under 'Database Connections'?
... View more
05-11-2012
03:23 AM
|
0
|
0
|
3947
|
|
POST
|
Hi Sabita, If the owner of the SDE feature class is a windows authenticated user you will need to grant 'View' privileges to the ArcGISSOC user. First, you will need to add the ArcGISSOC user to the SQL Server database. After the ArcGISSOC user is added to the database right-click on the feature classes that you will be publishing to ArcGIS Server > Privileges. Specify the ArcGISSOC user and under VIEW, select 'Grant'. Also, the ArcGISSOC user will need 'Read' privileges to the folder where the SDE connection file (.sde) is stored. The easiest way to ensure this is to copy the SDE connection to the same directory the MXD you are trying publish resides in.
... View more
05-09-2012
05:06 AM
|
0
|
0
|
3948
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 2 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
|