|
POST
|
I tried that but it deletes both rows. I only wanted to delete the last row in the array after the to_measure was set.
... View more
10-21-2015
11:59 AM
|
0
|
0
|
1651
|
|
POST
|
Sorry, I looked it up and I needed to use UpdateCursor but now I get the following error.. File " TypeError: deleteRow() takes no arguments (1 given)
... View more
10-21-2015
11:48 AM
|
0
|
5
|
1651
|
|
POST
|
I’m sure that will work but I keep getting a syntax error so must have a indent wrong.
... View more
10-21-2015
11:27 AM
|
0
|
7
|
1651
|
|
POST
|
I thought this might work but no dice.. table = "Export_Output_3"
ridList = []
with arcpy.da.SearchCursor(table, ["RID"]) as cursor:
for row in cursor:
ridList.append(row[0])
del cursor
ridList = set(ridList)
for RID in ridList:
toMeasList = []
with arcpy.da.SearchCursor(table, ["RID", "to_MEAS"], "RID = '" + RID + "'")
as cursor:
for row in cursor:
toMeasList.append(row[1])
del cursor
toMeasList.sort()
with arcpy.da.UpdateCursor(table, ["to_MEAS"], "RID = '" + RID + "'") as
cursor:
for row in cursor:
row[0] = toMeasList[-1]
cursor.updateRow(row)
del cursor
toMeasList.sort()
with arcpy.da.UpdateCursor(table, ["OBJECTID"], "OBJECTID = '2'") as
cursor:
for row in cursor:
row[1]
cursor.deleteRow(row)
del cursor
... View more
10-21-2015
09:50 AM
|
0
|
9
|
1651
|
|
POST
|
I have created a model that has a couple input parameters and the in_table is an output parameter. I put the model in a toolbox... I then run the tool and share it as a GP service. Then when I run the GP service it asks for the inputs which would be like begin C000001E and a reference marker i.e. 22 Here is a snap shot of the model and the GP service. Here is a link to the GP service that is created. You should be able to add this to ARCMAP and run it, add the following parameters first point Corridor = C000001E. RM = 22 end point Corridor = C000001E RM 23. You can leave the offsets at zero. It should return a table in the results tab. https://app.mdt.mt.gov/arcgis/rest/services/Testing/rs/GPServer not sure if any of this makes sense..
... View more
10-21-2015
07:20 AM
|
0
|
0
|
1407
|
|
POST
|
Hey Jake, Is there any way to delete the last record in the table once the to_offset has been calculate? I only want to generate the first segment 22.033 to 23.533 and remove the last record 0 to 23.533.
... View more
10-21-2015
07:07 AM
|
0
|
0
|
1651
|
|
POST
|
Good Morning, I'm hoping someone has run into something similar. I have looked for a solution with no luck. I have a GP service that generates a point table through a process. I want to add the "Make Route Event Layer" to the GP service and use this point table to generate a segment. When I do this it returns an error that it can't open the in_table. This in_table is in the GPInMemoryWorkspace. Is there a way to get to this in memory data so I can generate the segment or is there another way to get it? TIA. Terry
... View more
10-21-2015
06:03 AM
|
0
|
3
|
3346
|
|
POST
|
So if the script is just sitting in the model with no parameters, how does it know when to be executed?
... View more
10-15-2015
12:43 PM
|
0
|
0
|
1349
|
|
POST
|
It appears that the table to table tool does not like when the table is written to a local geodatabase. When I create a .dbf table it copies the data local. Is there something I can add in the script to get it to run on a dbf? When I set the table =”output.dbf” it returns the error it could not find the table “output.dbf”
... View more
10-15-2015
11:10 AM
|
0
|
16
|
1349
|
|
POST
|
Even when I use a table view the output table from the table to table tool does not create the output table correctly.. I think it has to do something with the “Merge Rule” but can’t figure that out.
... View more
10-15-2015
08:38 AM
|
0
|
0
|
1349
|
|
POST
|
I re-read it and I was trying to convert a table and not a table view. Going to try and convert the in memory table to a view and try it again.
... View more
10-15-2015
08:19 AM
|
0
|
0
|
1349
|
|
POST
|
I was wrong I thought that Table to table would work but it still creates the table in memory and then it seems to add all the fields to one record..
... View more
10-15-2015
08:17 AM
|
0
|
0
|
1349
|
|
POST
|
Hang on I think I have it figured out. Sorry to keep buggin you and thanks for the help..
... View more
10-15-2015
07:52 AM
|
0
|
0
|
1349
|
|
POST
|
So I’m an idiot. I tried finding information on exporting from memory and can’t seem to find anything on it. This page talks about in-memory but nothing about exporting from it. http://resources.arcgis.com/en/help/main/10.1/index.html#//002w0000005s000000 I also was looking at this but it seems to be for input of .csv or .txt. http://resources.arcgis.com/en/help/main/10.1/index.html#//001200000027000000 I have you done an export like this?
... View more
10-15-2015
07:32 AM
|
0
|
0
|
1731
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 08-19-2015 02:57 PM | |
| 1 | 03-10-2016 08:36 AM | |
| 1 | 03-10-2016 09:00 AM | |
| 1 | 07-16-2015 01:15 PM | |
| 1 | 09-14-2015 06:48 AM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:25 AM
|