Gridify: A new JOSM plugin (preview)

In the proposal for amenity=parking_space a plugin that can split up a shape into a grid of shapes was suggested.

After experimenting a little with drawing amenity=parking_space in the map, I found that such a plugin was lacking (although Terracer can split up a shape along one axis).

I’ve written Gridify to fill the gap. It takes either four nodes, or a way consisting of four nodes as its input, and lets you configure the number of rows and columns it should generate.

Instead of generating ‘blocks’ (the default), you can also generate a gird of ‘lines’.

The input shape does not need to have squared angles, any four nodes will work:

My goal for this plugin is the help map features like parking spaces and other man-made features that can be represented by a grid of shapes.

The plugin now works, but still needs documentation, a bit of clean-up, and translation in the languages I know. I’ll submit the plugin to the JOSM project after that.

Is this plugin something you would use?

I can see where it could be useful in some situations. Thank you for developing it.

Adjacent tennis courts :slight_smile:

Nice one!

I’ve submitted the plugin to the JOSM project. If anyone wants to use the plugin in the mean time, you can download it here.

Didn’t think of that one. Nice example.

Gave it a try – works like a charm! This is going to make mapping parking spaces so much easier.

Quick idea: Perhaps it would make sense to have the newly created ways selected afterwards? This would be similar to how the built-in tools such as “split” or “create circle” tend to behave, and it would allow you e.g. add them to a relation at the same time. Not a pressing issue, though, given how much time this tool saves already.

Anyway, thank you! :slight_smile: I didn’t know I needed this, but now I don’t really want to go back to meticulously using Shift+B, Split and Combine for this kind of task. Any news on getting this into the list of plugins? I put the .jar into my plugins directory manually, but I suspect others may prefer the comfort of the automatic install and updates.

Thanks! Glad to hear it helps.

That sounds like a fairly trivial improvement, and it makes sense; so I can probably implement it at some point. Please feel free to open an issue for that feature request in the plugin’s repository:

https://github.com/JOSM/josm-gridify

I have transferred ownership of the plugin’s repository on GitHub to the JOSM-team. I expect one of the maintainers will review it for inclusion in the plugin list at some point, so it should become available to all JOSM users in the near future.

There is no such a review process. Please simply add the link to the jar file to https://josm.openstreetmap.de/wiki/PluginsSource.

When you make changes to your plugin you may have a look at https://josm.openstreetmap.de/jenkins/ to check if this caused any errors in the continous integration tests.