Modify

Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#9556 closed enhancement (fixed)

Add "natural and landuse of the same type should not cross each other "

Reported by: mkoniecz Owned by: team
Priority: normal Milestone: 14.01
Component: Core validator Version:
Keywords: Cc: simon04

Description

as explained in #9507 natural and landuse may cross each other but on the other hand landuse=forest should not cross other landuse=forest (also landuse=residential with landuse=residential) etc.

Attachments (0)

Change History (6)

comment:1 by mkoniecz, 11 years ago

Summary: Add "natural and landuse of the same type shuld not cross each other "Add "natural and landuse of the same type should not cross each other "

comment:2 by Don-vip, 11 years ago

Cc: simon04 added

I tried this but it doesn't work, is there a way to implement this with current syntax or do we need another evolution ?

area:closed:areaStyle[natural]  area:closed:areaStyle[natural = *{0.key}] {
  throwWarning: tr("Overlapping Identical Natural Areas");
}

area:closed:areaStyle[landuse]  area:closed:areaStyle[landuse = *{0.key}] {
  throwWarning: tr("Overlapping Identical Landuses");
}

comment:3 by simon04, 11 years ago

Resolution: fixed
Status: newclosed

In 6680/josm:

fix #9556 - Validator: add "natural and landuse of the same type should not cross each other"

comment:4 by simon04, 11 years ago

The current spatial selectors are evaluated from right to left. The right one is considered to be the parent object (this naming originates from normal child/parent selectors). Thus, using parent_tag on the left part gives access to corresponding tag of the right object. {0.key} is not known to the MapCSS part, but is only inserted after a successful match by the tag checking part.

comment:5 by Don-vip, 11 years ago

Ok thanks :) this syntax is awesome, need just some time to master it :)

comment:6 by Don-vip, 11 years ago

Milestone: 14.01

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain team.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.