Timeline for Copying point features along line features by predetermined distance
Current License: CC BY-SA 3.0
13 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Nov 19, 2015 at 16:46 | vote | accept | Stephen E | ||
Nov 19, 2015 at 3:05 | comment | added | FelixIP | pointPos=line.measureOnLine(point)+d2add | |
Nov 19, 2015 at 2:52 | comment | added | Stephen E | New error: "TypeError: unsupported operand type(s) for +: 'geoprocessing describe geometry object' and 'float'. Before I added a parenthesis after line 7, I got a sytax error | |
Nov 18, 2015 at 23:56 | comment | added | FelixIP | You have to set language to Python, see parcer on the top. Also check show codeblock thing. Expression goes into first box, single line goes into second textbox. Forget about radio button, it doesn't matter | |
Nov 18, 2015 at 23:49 | comment | added | Stephen E | Yes I've added ITEMID fields to point and line layers, each having corresponding values. I added "CHAINAGE" to point layer and populated it with distance values also stored in point layer. I've copied and pasted the two scripts above in the "New_X" field with the "python" and "Number" radio buttons selected at the top of the field calculator windows. I receive a 000539 error: SyntaxError: invalid syntax (<expression>, line1). Sorry for my struggling here, but I'm quite new to python | |
Nov 18, 2015 at 22:53 | comment | added | FelixIP | Did you do what I advised yesterday in regards of adding fields? If yes, there is 1 minor thing. Add field CHAINAGE to your points layer and populate it by shift values from whatever field is storing them. No modification will be required for expression at all | |
Nov 18, 2015 at 22:31 | comment | added | FelixIP | It is field calculator expression to be run on new numeric field called X. Language in script? what are you talking about? Just copy it in expression box, period | |
Nov 18, 2015 at 22:18 | comment | added | Stephen E | Is there any language in the script that references the point layer name as seen in the table of contents? Also, what is "Shape@" and !Shape! referring to? | |
Nov 17, 2015 at 21:18 | comment | added | FelixIP | @Fezter thank you. Possibly it's because I have similar characters in my surname:) Well this 2 methods are my favourites, they easily replace LR when dealing with point events. Took ages for ESRI to resurrect them in ArcGIS after ArcView 3 | |
Nov 17, 2015 at 20:35 | comment | added | FelixIP | No. Just a layer with source in shapefile with id field type text. The simplest way to implement this is create new fields in point and line layers, call them ITEMID and populate with original IDs, using field calculator. in this case you don't have to modify expression at all | |
Nov 17, 2015 at 20:32 | comment | added | Stephen E | Would the "LINES" feature need to a be a route before running this script? | |
Nov 17, 2015 at 5:32 | comment | added | Fezter | I always like your answers. I had forgotten about the measureOnLine and positionAlongLine methods. | |
Nov 17, 2015 at 4:29 | history | answered | FelixIP | CC BY-SA 3.0 |