|
POST
|
Hello everyone, I am currently developing a Web Editing Application that creates polygons, and I need to add a specific functionality to it. When I create a new feature the ID is a sequential number that gets incremented calling an Oracle Sequencer. Currently this solution works fine in ArcMap where I created an add-In. How can I add a specific logic to one of the attributes of editable feature service. Do I need to create a server object extension? Thanks
... View more
04-12-2016
10:46 AM
|
0
|
0
|
1800
|
|
POST
|
After checking this post Creating an editable feature service I am able to add the Feature Service to the map,then right click on the group layer, do you see an option to Create a Local Copy for editing, and edit in ArcMap. The question now is how to edit in ArcGIS Online.
... View more
04-01-2016
12:41 PM
|
0
|
0
|
648
|
|
POST
|
Hello everyone, I created a map service in ArcGIS Server 10.2.2 with feature access enabled. The feature points to a SDE Oracle instance and I can edit the layer in ArcMap because it is versioned. When I try to open the Feature Layer with "Open in ArcGIS for desktop", it opens the feature in ArcMap and it displays the following error message "the workspace containing this data can not be edited" I am using ArcSDE 10.0 and ArcGIS Server 10.2.2 Is there any limitation in 10.2.2 for editable feature services?
... View more
04-01-2016
12:23 PM
|
0
|
1
|
3564
|
|
POST
|
Hi Domenico! How are you? This is what my .Net web servicedoes. It geocodes an incident. An external application calls one method and passes an incident number and an address, with this information the method creates a point at the specific address in a point layer. What I need to run in 10.1: a way to connect to the server a way to retrieve the first and only layer from the map service a way to write a new feature Old code to connect to server: Connect to ArcGIS Server ' Connect to ArcGIS Server Dim adfIdentity As New ESRI.ArcGIS.ADF.Identity(username, password, domain) agsServerConnection = New ESRI.ArcGIS.ADF.Connection.AGS.AGSServerConnection(hostname, adfIdentity) agsServerConnection.Connect() Old code to retrieve map service and first layer: ' Get a reference to the server object manager to use in creating server objects Dim serverObjectManager As ESRI.ArcGIS.Server.IServerObjectManager = agsServerConnection.ServerObjectManager ' Create a server context for and get a reference to the BloomfieldTownship map service. We will ' use this to access map information and query features. "MapServer") Dim mapServer As ESRI.ArcGIS.Carto.IMapServer2 = TryCast(mapServerContext.ServerObject, ESRI.ArcGIS.Carto.IMapServer2) ' Get a reference to the map service's server objects Dim mapServerObjects As ESRI.ArcGIS.Carto.IMapServerObjects = CType(mapServer, ESRI.ArcGIS.Carto.IMapServerObjects) Dim map As ESRI.ArcGIS.Carto.IMap = mapServerObjects.Map(mapServer.DefaultMapName) Dim pFLayer As ESRI.ArcGIS.Carto.IFeatureLayer = map.Layer(0) Dim pFeatureClass As IFeatureClass = pFLayer.FeatureClass Code to write a new feature Dim feature As IFeature = pFeatureClass.CreateFeature() feature.Shape = pPoint feature.Value(feature.Fields.FindField("ID")) = IncidentID feature.Value(feature.Fields.FindField("ADDRESS")) = Address feature.Value(feature.Fields.FindField("XCOORD")) = pPoint.X feature.Value(feature.Fields.FindField("YCOORD")) = pPoint.Y feature.Value(feature.Fields.FindField("PROBDESC")) = ProblemDescription feature.Store()
... View more
03-31-2016
10:42 AM
|
0
|
0
|
2244
|
|
POST
|
Hello everyone, When I open a Vb.Net console application that worked fine in 10.0 in 10.2 I get the following error messages: Type 'ESRI.ArcGIS.ADF.Connection.AGS.AGSServerConnection' is not defined. Type 'ESRI.ArcGIS.ADF.Identity' is not defined. Type 'ESRI.ArcGIS.ADF.Connection.AGS.AGSServerConnection' is not defined. Thanks
... View more
03-30-2016
10:39 AM
|
0
|
5
|
6004
|
|
POST
|
Good morning, Is there a tool or a command that shows the size in GB of a feature class, feature dataset, table etc. Thanks
... View more
03-14-2016
03:29 AM
|
0
|
1
|
1959
|
|
POST
|
Hello everyone, I would like to run my Python scripts directly in Visual Studio. Is there any link that explains how to configure Visual Studio .Net to run Python with ArcPy? Thanks
... View more
03-10-2016
05:12 AM
|
0
|
1
|
3932
|
|
POST
|
Hello everyone, I am exporting code from arcpy.InsertCursor to arcpy.da.InsertCursor and I am getting the following error message: Python Error occurred: workspace already in transaction mode In the program I have reading cursor and two insert cursors. curAppend = arcpy.da.InsertCursor(AGREEMENT_I, fieldnamesDelta)
curUpdate = arcpy.da.InsertCursor(AGREEMENT_U, fieldnamesDelta)
for rowToday in curToday:
agreementID = rowToday[1]
datetimeVal = rowToday[4]
if datetimeVal is not None and agreementID is not None:
whereClause = '"AGMID" = %s' % (agreementID)
srcYesterday = arcpy.da.SearchCursor(AGREEMENT, fieldnamesYesterday, whereClause)
count = 0
for rowYesterday in srcYesterday:
if rowYesterday[4] == rowToday[4] :
count = count + 1
if rowYesterday[5] != rowToday[5] or rowYesterday[6] != rowToday[6] \
or rowYesterday[7] != rowToday[7] or rowYesterday[8] != rowToday[8] \
or rowYesterday[9] != rowToday[9] or rowYesterday[10] != rowToday[10] \
or rowYesterday[11] != rowToday[11] or rowYesterday[12] != rowToday[12] \
or rowYesterday[13] != rowToday[13] or rowYesterday[14] != rowToday[14] :
print "Record for Update :", agreementID
logging.info('Update ' + whereClause)
curUpdate.insertRow(rowToday)
if count == 0:
print "Record for Insert :", agreementID
logging.info('Insert ' + whereClause)
curAppend.insertRow(rowToday)
.....
... View more
03-04-2016
10:34 AM
|
0
|
2
|
3258
|
|
POST
|
Hello everyone I am converting a arcpy.InsertCursor in arcpy.da.InsertCursor How does this line works in arcpy.da.InsertCursor row = rows.newRow() # Create insert cursor for table rows = arcpy.InsertCursor("c:/base/data.gdb/roads_lut") # Create 25 new rows. Set the initial row ID and distance values for x in range(1, 26): row = rows.newRow() row.setValue("rowid", x) row.setValue("distance", 100) rows.insertRow(row)
... View more
03-04-2016
07:40 AM
|
0
|
7
|
16538
|
|
POST
|
The samples from ESRI always show a hardcoded list of fields ['fieldA', 'fieldB'] but in my case I need to read all the fields from the feature class, and list them in the "field_names" parameter. arcpy.da.SearchCursor(in_table, field_names, {where_clause}, {spatial_reference}, {explode_to_points}, {sql_clause})
... View more
03-04-2016
06:19 AM
|
0
|
2
|
4717
|
|
POST
|
Hello everyone, I am following this sample to list all the fields: Using arcpy.da.InsertCursor to insert an entire row that is fetched from a search cursor? - Geographic Information Syste… What is wrong with my code, could you please be more specific. Thanks
... View more
03-04-2016
06:09 AM
|
0
|
2
|
4717
|
|
POST
|
Hello everyone, I am changing in my program the arcpy.SearchCursor to arcpy.da.SearchCursor and when I run the code I am getting the following error message: Python Error occurred 'tuple' object has no attribute 'getValue' # Get field objects from source FC AGREEMENT
#
dsc = arcpy.Describe(AGREEMENT)
fields = dsc.fields
#
# List all field names except the OID field
#
fieldnamesYesterday = [field.name for field in fields if field.name != dsc.OIDFieldName]
curYesterday = arcpy.da.SearchCursor(AGREEMENT, fieldnamesYesterday)
for rowYesterday in curYesterday:
agreementID = rowYesterday.getValue("AGMID")
datetimeVal = rowYesterday.getValue("DIGIDATE")
print agreementID
print datetimeVal
... View more
03-04-2016
05:47 AM
|
0
|
8
|
9200
|
|
POST
|
This same code works fine when I point to a layer in a FGDB but it does nthing when I point to the same king of layer in SDE.
... View more
03-03-2016
10:01 AM
|
0
|
1
|
1899
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 3 weeks ago | |
| 1 | 05-01-2026 12:34 PM | |
| 1 | 12-02-2022 08:17 AM | |
| 1 | 12-26-2025 05:02 AM | |
| 1 | 08-05-2025 04:28 AM |
| Online Status |
Offline
|
| Date Last Visited |
a week ago
|