Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I am trying to make a plugin for Qgis with python. I have the four corner coordinates for a rectangle. I want to give the user the inputs, line space and angle (0 -180 degrees).

With these inputs, I want to fill this rectangle with lines in the direction of the specified angle and with the specified line spacing between the lines.

I guess what I need is the same type of code as for making a grid. But I can only find information about grids which are vertical or horizontal. I will try to code it myself, but if anyone have a webpage with information, I would gladly to read it.

share|improve this question
add comment

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.