source: josm/trunk/src/org/openstreetmap/josm/data/osm/PrimitiveId.java@ 19076

Last change on this file since 19076 was 18578, checked in by taylor.smock, 2 years ago

Fix #22404: MVT background layer: Polygons not drawn

This was a two-part problem:

  1. Converting shapes to areas does not always keep the same winding.
  2. MVT styles are minZoom <= showable zooms < maxZoom. We were doing minZoom <= showable zooms <= maxZoom.

This also fixes some sonarlint issues in the modified files.

  • Property svn:eol-style set to native
File size: 919 bytes
Line 
1// License: GPL. For details, see LICENSE file.
2package org.openstreetmap.josm.data.osm;
3
4/**
5* interface to represent identification and type of the datatypes primitives.
6*
7* @since 2399
8*/
9public interface PrimitiveId {
10
11 /**
12 * Gets a unique id representing this object (the OSM server id for OSM objects)
13 *
14 * @return the id number
15 */
16 long getUniqueId();
17
18 /**
19 * Gets the type of object represented by this object. Note that this should
20 * return the base primitive type ({@link OsmPrimitiveType#NODE},
21 * {@link OsmPrimitiveType#WAY}, and {@link OsmPrimitiveType#RELATION}).
22 *
23 * @return the object type
24 * @see Node
25 * @see Way
26 * @see Relation
27 */
28 OsmPrimitiveType getType();
29
30 /**
31 * Replies true if this id represents a new primitive.
32 *
33 * @return true if this id represents a new primitive.
34 */
35 boolean isNew();
36
37}
Note: See TracBrowser for help on using the repository browser.