Skip to main content
Post Closed as "Needs details or clarity" by PolyGeo
deleted 7 characters in body; edited tags; edited title
Source Link
PolyGeo
  • 65.4k
  • 29
  • 114
  • 345

Python to generate a Generating different number of random points for features using iteration with tool parameter values in feature attribute table using ArcPy

This is the pythonPython script I wrote to accomplish the task. The code throws multiple errors.

This code is based off of code posted by a previous user in response to a previous question that I asked on this issue that was placed on HOLD. The code the user kindly provided did not throw errors but it did not produce the desired result; it generated random points in the full feature class (all zip codes in the state) extent not in the extent of a given individual zip code. Here is that code:

Python to generate a different number of random points for features using iteration with tool parameter values in feature attribute table

This is the python script I wrote to accomplish the task. The code throws multiple errors.

This code is based off of code posted by a previous user in response to a previous question that I asked on this issue that was placed on HOLD. The code the user kindly provided did not throw errors but it did not produce the desired result; it generated random points in the full feature class (all zip codes in the state) extent not in the extent of a given individual zip code. Here is that code:

Generating different number of random points for features using iteration with tool parameter values in feature attribute table using ArcPy

This is the Python script I wrote to accomplish the task. The code throws multiple errors.

This code is based off of code posted by a previous user in response to a previous question that I asked on this issue that was placed on HOLD. The code the user provided did not throw errors but it did not produce the desired result; it generated random points in the full feature class (all zip codes in the state) extent not in the extent of a given individual zip code. Here is that code:

removed a extra word to reduce confusion
Source Link
Eric
  • 1
  • 1

My code tries to resolve the issue by selecting the individual zip code that is being read by the search cursor and setting the constraining extent of the random point tool to the that zip code. I cannot figure out how to write the code to accomplish the desired task.

My code tries to resolve the issue by selecting the individual zip code that is being read by the search cursor and setting the constraining extent of the random point tool to the that zip code. I cannot figure out how to write the code to accomplish the desired task.

My code tries to resolve the issue by selecting the individual zip code that is being read by the search cursor and setting the constraining extent of the random point tool to that zip code. I cannot figure out how to write the code to accomplish the desired task.

deleted 40 characters in body; edited tags; edited tags
Source Link
PolyGeo
  • 65.4k
  • 29
  • 114
  • 345

My code tries to resolve the issue by selecting the individual zip code that is being read by the search cursor and setting the constraining extent of the random point tool to the that zip code. I cannot figure out how to write the code to accomplish the desired task. Help with the code is much appreciated.

My code tries to resolve the issue by selecting the individual zip code that is being read by the search cursor and setting the constraining extent of the random point tool to the that zip code. I cannot figure out how to write the code to accomplish the desired task. Help with the code is much appreciated.

My code tries to resolve the issue by selecting the individual zip code that is being read by the search cursor and setting the constraining extent of the random point tool to the that zip code. I cannot figure out how to write the code to accomplish the desired task.

Source Link
Eric
  • 1
  • 1
Loading