0

I want to go from lines to points, but with the number a number of points specified in the attribute table.

I attach a photo, to help understand the problem.

enter image description here

  • Welcome to GIS SE! We're a little different from other sites; this isn't a discussion forum but a Q&A site. Your questions should as much as possible describe not just what you want to do, but precisely what you have tried and where you are stuck trying that. Please check out our short tour for more about how the site works. Thanks. – PolyGeo Apr 2 at 11:14
  • How to add the Vertex count to each feature - support.esri.com/en/technical-article/000011230 – klewis Apr 2 at 15:13
0

Since your question is not very clear to me, so i am trying to answer your question based on my understanding. I guess you want to convert your line feature to point feature and you want to create point based on an attributes defined in your feature class. If that is the case then you could use Densify GP tool ArcGIS Densify. This will allow you to generate points for your polyline geometry.

But densify alone can not solve your objective which is create points based on your feature class attribute, for that you need to write a python script with custom logic. I can outline the steps for that.

  1. Read the feature class row by row.
  2. Read the attribute value of the point from your feature class.
  3. Calculate the length of the line feature and store in variable.
  4. Create custom logic to calculate the distance parameter based on line length variable. You would be using this distance parameter in densify tool.
  5. Supply that variable value to densify tool.
  6. Get the point and validate the output.
  7. Note: Make sure the special reference for your data and distance units are same, otherwise you need to write the on-the-fly distance unit conversion logic for your code.

Hope this will solve your problem.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.