Skip to content

Commit

Permalink
Documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
jdhoek committed Apr 25, 2019
1 parent 54a77d2 commit d7e6f3e
Show file tree
Hide file tree
Showing 6 changed files with 38 additions and 8 deletions.
8 changes: 0 additions & 8 deletions README

This file was deleted.

38 changes: 38 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
Gridify
=======

This JOSM plugin gives allows you to generate a grid of ways (either as blocks or as lines) from any four nodes, or way of four nodes. This is particularly useful for drawing repeating blocks such as [parking spaces](https://wiki.openstreetmap.org/wiki/Tag:amenity%3Dparking_space):

![Example of use](doc/parking.png)

## Usage

To use, select a way containing four nodes (the way may be closed or open), or four separate nodes. The plugin can copy the tags on the source way to the newly generated ways, so if you want to repeat the same set of tags, you can add them to the source primitive.

![Step 1](doc/step1.png)

The source way does not have to be rectangular, by the way. Using a parallelogram instead can be handy for a set of slanted parking spaces like those in the picture above.

Now launch the plugin. You can find the plugin in the menu under `More tools » Gridify` or by using the shortcut `Alt+Shift+Y`.

![Step 2](doc/step2.png)

### Output shape

You can generate either blocks or lines. The default is blocks.

### Grid size

Configure the grid to your liking, by entering the number of rows and columns.

You can also use the scrollwheel by moving your mouse pointer over the preview area. To increase/decrease only rows or columns, scroll by holding down `shift` or `ctrl`, respectively. Give it a go: if you use this plugin often this is a fast method of setting it up.

### Source way

Choose if you want to copy all tags from the source way or not, and if the source way should be deleted. If you drew the source way specifically to split it up using this plugin, this is usually what you want.

Now execute the plugin.

![Step 3](doc/step3.png)

Done!
Binary file added doc/parking.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/step1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/step2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/step3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit d7e6f3e

Please sign in to comment.