[OSM-talk] JOSM: selecting areas

Sebastian Klein bastikln at googlemail.com
Tue Apr 20 17:37:21 BST 2010


Iván Sánchez Ortega wrote:
> Hi all,
> 
> Let's suppose I'm using JOSM, with quite some area features loaded: 
> buildings, parks, lakes, and administrative areas. Those areas might be 
> either simple closed ways, or multipolygon relations.
> 
> Now, I would like to click on any point in the viewport and select all 
> the area features that have that clicked point inside (if any).
> 
> 
> Is this currently possible? 

No, currently this is not implemented.


If not, is it feasible?

Certainly. You would need to copy some code from the painting mechanism 
to get the area polygons. Then Java provides algorithms to determine if 
a point is within a polygon.

Sebastian




More information about the talk mailing list