Skip to main content
12 events
when toggle format what by license comment
Nov 28, 2017 at 23:40 comment added gotchula can you try changing this " 'fclass' = '"+unique+"' " to this " fclass = '"+unique+"' "
Nov 28, 2017 at 19:41 history edited PolyGeo CC BY-SA 3.0
deleted 51 characters in body; edited title; edited tags
Nov 28, 2017 at 19:08 comment added Mona Coder well I am getting the unique values! but looks like not selecting properly or not copying only selected feature!
Nov 28, 2017 at 19:00 comment added Keagan Allan Could you not try something like the answer to this post: link
Nov 28, 2017 at 19:00 comment added Midavalo Put a print uniques immediately after your uniques = unique_values(r'D:/GIS/Roads.shp' , 'fclass') line and see if it prints anything
Nov 28, 2017 at 18:58 comment added Mona Coder sorry for confusion I just update the post
Nov 28, 2017 at 18:57 history edited Mona Coder CC BY-SA 3.0
added 57 characters in body
Nov 28, 2017 at 18:54 comment added Midavalo @MonaCoder No, I mean it is not created in your code. There is no uniques = [some list of values] in your code. Have you actually run the code you've pasted in your question? Or have you pasted something different to what you've tested?
Nov 28, 2017 at 18:52 comment added Mona Coder uniques is creating the unique values of fclass in the Road shapefile. but when I try to save the selection by attribute to new fc. it is copying entire features in the road to new fc
Nov 28, 2017 at 18:50 comment added Midavalo Where is uniques created?
Nov 28, 2017 at 18:44 comment added Keagan Allan Have you tried performing this manually and then checking the python snippet? I find this helps me spot hiccups in my code.
Nov 28, 2017 at 18:40 history asked Mona Coder CC BY-SA 3.0