Class OsmPrimitive
- All Implemented Interfaces:
Comparable<IPrimitive>,IQuadBucketType,IFilterablePrimitive,IPrimitive,PrimitiveId,Stylable,Tagged,TemplateEngineDataProvider
Node, Way, Relation).
It can be created, deleted and uploaded to the OSM-Server.
Although OsmPrimitive is designed as a base class, it is not to be meant to subclass
it by any other than from the package org.openstreetmap.josm.data.osm. The available primitives are a fixed
set that are given by the server environment and not an extendable data stuff.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate DataSetthe parent dataset(package private) static SearchCompiler.MatchA tagged way that matches this pattern has a direction.private final Map<ElemStyles,StyleCache> private Objectprivate static final SearchCompiler.MatchA tagged way that matches this pattern has a direction that is reversed.private static final Stringprivate static final StringFields inherited from class org.openstreetmap.josm.data.osm.AbstractPrimitive
changesetId, FLAG_ALL_REFERRERS_DOWNLOADED, FLAG_ANNOTATED, FLAG_DELETED, FLAG_DIRECTION_REVERSED, FLAG_DISABLED, FLAG_DISABLED_TYPE, FLAG_HAS_DIRECTIONS, FLAG_HIDDEN_TYPE, FLAG_HIDE_IF_DISABLED, FLAG_HIGHLIGHTED, FLAG_INCOMPLETE, FLAG_MODIFIED, FLAG_PRESERVED, FLAG_TAGGED, FLAG_VISIBLE, flags, id, keys, mappaintCacheIdx, timestamp, user, versionFields inherited from interface org.openstreetmap.josm.data.osm.Tagged
MAX_TAG_LENGTH -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedOsmPrimitive(long id, boolean allowNegativeId) Creates a new primitive for the given id.protectedOsmPrimitive(long id, int version, boolean allowNegativeId) Creates a new primitive for the given id and version. -
Method Summary
Modifier and TypeMethodDescriptionabstract voidaccept(OsmPrimitiveVisitor visitor) Implementation of the visitor scheme.protected voidaddReferrer(OsmPrimitive referrer) Add new referrer.protected abstract voidaddToBBox(BBox box, Set<PrimitiveId> visited) If necessary, extend the bbox to contain this primitivevoidThrows exception if primitive is not part of the datasetprotected final voidThrows exception if primitive is in a read-only datasetvoidClears the cached style.voidClears the metadata, including id and version known to the OSM API.final voidcloneFrom(OsmPrimitive other) Get and write all attributes from the parameter.protected voidcloneFrom(OsmPrimitive other, boolean copyChildren) Get and write all attributes from the parameter.private static SearchCompiler.MatchcompileDirectionKeys(String prefName, String defaultValue) abstract booleanDetermines if this primitive semantically concerns an area.final voiddeclareCachedStyleUpToDate(ElemStyles styles) Declare that the cached style for this primitive is up to date.private voiddoVisitReferrers(Consumer<OsmPrimitive> visitor) booleanEqual if the id (and class) are equal.booleanevaluateCondition(SearchCompiler.Match condition) Check if a condition holds for the object represented by thisTemplateEngineDataProvider.final StyleCachegetCachedStyle(ElemStyles elemStyles) Returns the cached style.Returns the parent data set of this primitive.protected StringgetParentRelations(Collection<? extends OsmPrimitive> primitives) Replies the set of referring relationsstatic Set<OsmPrimitive>getReferrer(Collection<? extends OsmPrimitive> primitives) Replies the collection of referring primitives for the primitives inprimitives.final List<OsmPrimitive>Gets a list of all primitives in the current dataset that reference this primitive.final List<OsmPrimitive>getReferrers(boolean allowWithoutDataset) Find primitives that reference this primitive.Get the collection of all keys that can be mapped to values.getTemplateValue(String name, boolean special) Map a key to a value given the properties of the object.final booleanDetermines if this primitive has tags denoting an area.final booleanReplies true if this primitive and other are equal with respect to their semantic attributes.(package private) booleanhasEqualSemanticAttributes(OsmPrimitive other, boolean testInterestingTagsOnly) (package private) booleanbooleanReplies true if this primitive and other are equal with respect to their technical attributes.inthashCode()Return the id plus the class type encoded as hashcode or super's hashcode if id is 0.final booleanisCachedStyleUpToDate(ElemStyles elemStyles) Check if the cached style for this primitive is up to date.booleanDetermines if this primitive is a member of a selected relation.protected final booleanisNodeReferredByWays(int n) Return true, if this primitive is a node referred by at least n waysprivate booleanbooleanDetermines if this primitive is an outer member of a selected multipolygon relation.abstract booleanTests if this primitive lies outside of the downloaded area of itsDataSet.booleanDetermines if this object is selectable.booleanDetermines whether the primitive is selectedprotected voidkeysChangedImpl(Map<String, String> originalKeys) What to do, when the tags have changed by one of the tag-changing methods.voidload(PrimitiveData data) Loads (clone) this primitive from provided PrimitiveDatavoidmergeFrom(OsmPrimitive other) Merges the technical and semantic attributes fromotheronto this.final voidSet the given value to the given key.private <T extends OsmPrimitive>
Stream<T>final <T extends OsmPrimitive>
Stream<T>Gets all primitives in the current dataset that reference this primitive.final voidRemove the given key from the listfinal voidRemoves all keys from this primitive.protected voidremoveReferrer(OsmPrimitive referrer) Remove referrer.abstract PrimitiveDatasave()Save parameters of this primitive to the transport objectprotected voidSave common parameters of primitives to the transport objectfinal voidsetCachedStyle(ElemStyles elemStyles, StyleCache mappaintStyle) Sets the cached style.voidsetChangesetId(int changesetId) Sets the changeset id of this primitive.(package private) voidsetDataset(DataSet dataSet) This method should never ever by called from somewhere else than Dataset.addPrimitive or removePrimitive methodsvoidsetDeleted(boolean deleted) Sets whether this primitive is deleted or not.booleansetDisabledState(boolean hidden) Make the primitive disabled (e.g. if a filter applies).voidsetHighlighted(boolean highlighted) Updates the highlight flag for this primitive.protected final voidsetIncomplete(boolean incomplete) If set to true, this object is incomplete, which means only the id and type is known (type is the objects instance class)final voidSets the keys of this primitives to the key/value pairs inkeys.final voidCopy the keys from a TagMap.voidsetModified(boolean modified) Marks this primitive as being modified.voidsetOsmId(long id, int version) Sets the id and the version of this primitive if it is known to the OSM API.voidsetPreserved(boolean isPreserved) Set binary property used internally by the filter mechanism.voidSets the user who has last touched this object.voidsetVisible(boolean visible) Sets whether this primitive is visible, i.e.booleanRemove the disabled flag from the primitive.private voidprotected voidprotected final voidupdateFlags(short flag, boolean value) private voidupdateFlagsNoLock(short flag, boolean value) abstract voidCalled by Dataset to update cached position information of primitive (bbox, cached EarthNorth, ...)private voidvoidvisitReferrers(OsmPrimitiveVisitor visitor) Visitsvisitorfor all referrers.voidvisitReferrers(PrimitiveVisitor visitor) Visitsvisitorfor all referrers.protected booleanprotected voidwriteUnlock(boolean locked) Methods inherited from class org.openstreetmap.josm.data.osm.AbstractPrimitive
cloneFrom, doGet, get, getChangesetId, getDisabledType, getDiscardableKeys, getHiddenType, getId, getIdGenerator, getIgnoreCase, getInstant, getInterestingTags, getKeys, getNumKeys, getRawTimestamp, getUninterestingKeys, getUniqueId, getUser, getVersion, getWorkInProgressKeys, hasDirectionKeys, hasKey, hasKey, hasKeys, isAnnotated, isDeleted, isDisabled, isDisabledAndHidden, isDrawable, isHighlighted, isIncomplete, isModified, isNew, isNewOrUndeleted, isPreserved, isReferrersDownloaded, isTagged, isTimestampEmpty, isUndeleted, isUninterestingKey, isUsable, isVisible, keys, keySet, putAll, reversedDirection, setDisabledType, setHiddenType, setInstant, setRawTimestamp, setReferrersDownloaded, updateFlagsChanged, visitKeysMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Comparable
compareToMethods inherited from interface org.openstreetmap.josm.data.osm.IPrimitive
accept, getBBox, getChildren, getDisplayName, getDisplayType, getLocalName, getName, getOsmId, getOsmPrimitiveId, getPrimitiveId, getStyleCacheSyncObject, hasSameInterestingTags, isMultipolygonMethods inherited from interface org.openstreetmap.josm.data.osm.PrimitiveId
getTypeMethods inherited from interface org.openstreetmap.josm.data.osm.Tagged
hasTag, hasTag, hasTag, hasTag, hasTagDifferent, hasTagDifferent, hasTagDifferent, isKeyFalse, isKeyTrue, put
-
Field Details
-
SPECIAL_VALUE_ID
- See Also:
-
SPECIAL_VALUE_LOCAL_NAME
- See Also:
-
directionKeys
A tagged way that matches this pattern has a direction.- See Also:
-
reversedDirectionKeys
A tagged way that matches this pattern has a direction that is reversed.This pattern should be a subset of
directionKeys -
mappaintStyle
-
dataSet
the parent dataset -
referrers
-
-
Constructor Details
-
OsmPrimitive
Creates a new primitive for the given id.If allowNegativeId is set, provided id can be < 0 and will be set to primitive without any processing. If allowNegativeId is not set, then id will have to be 0 (in that case new unique id will be generated) or positive number.
- Parameters:
id- the idallowNegativeId-trueto allow negative id- Throws:
IllegalArgumentException- if id < 0 and allowNegativeId is false
-
OsmPrimitive
Creates a new primitive for the given id and version.If allowNegativeId is set, provided id can be < 0 and will be set to primitive without any processing. If allowNegativeId is not set, then id will have to be 0 (in that case new unique id will be generated) or positive number.
If id is not > 0 version is ignored and set to 0.
- Parameters:
id- the idversion- the version (positive integer)allowNegativeId-trueto allow negative id- Throws:
IllegalArgumentException- if id < 0 and allowNegativeId is false
-
-
Method Details
-
getReferrer
Replies the collection of referring primitives for the primitives inprimitives.- Parameters:
primitives- the collection of primitives.- Returns:
- the collection of referring primitives for the primitives in
primitives; empty set if primitives is null or if there are no referring primitives
-
getCachedStyle
Description copied from interface:StylableReturns the cached style.- Specified by:
getCachedStylein interfaceStylable- Parameters:
elemStyles- styles for which the data is retrieved- Returns:
- the cached style
-
setCachedStyle
Description copied from interface:StylableSets the cached style.- Specified by:
setCachedStylein interfaceStylable- Parameters:
elemStyles- styles for which the data is storedmappaintStyle- the cached style
-
isCachedStyleUpToDate
Description copied from interface:StylableCheck if the cached style for this primitive is up to date.- Specified by:
isCachedStyleUpToDatein interfaceStylable- Parameters:
elemStyles- styles for which the data is checked- Returns:
- true if the cached style for this primitive is up to date
-
declareCachedStyleUpToDate
Description copied from interface:StylableDeclare that the cached style for this primitive is up to date.- Specified by:
declareCachedStyleUpToDatein interfaceStylable- Parameters:
styles- styles for which the data is handled
-
clearCachedStyle
Description copied from interface:StylableClears the cached style. This should not be called from outside. Fixing the UI to add relevant get/set functions calling this implicitly is preferred, so we can have transparent cache handling in the future.- Specified by:
clearCachedStylein interfaceStylable
-
setDataset
This method should never ever by called from somewhere else than Dataset.addPrimitive or removePrimitive methods- Parameters:
dataSet- the parent dataset
-
getDataSet
Description copied from interface:IPrimitiveReturns the parent data set of this primitive.- Specified by:
getDataSetin interfaceIPrimitive- Returns:
- OsmData this primitive is part of.
-
checkDataset
Throws exception if primitive is not part of the dataset -
checkDatasetNotReadOnly
Throws exception if primitive is in a read-only dataset -
writeLock
-
writeUnlock
-
setOsmId
Sets the id and the version of this primitive if it is known to the OSM API.Since we know the id and its version it can't be incomplete anymore. incomplete is set to false.
- Specified by:
setOsmIdin interfaceIPrimitive- Overrides:
setOsmIdin classAbstractPrimitive- Parameters:
id- the id. > 0 requiredversion- the version > 0 required- Throws:
IllegalArgumentException- if id <= 0IllegalArgumentException- if version <= 0DataIntegrityProblemException- if id is changed and primitive was already added to the dataset
-
clearOsmMetadata
Clears the metadata, including id and version known to the OSM API. The id is a new unique id. The version, changeset and timestamp are set to 0. incomplete and deleted are set to false. It's preferred to use copy constructor with clearMetadata set to true insteadCaution: Do not use this method on primitives which are already added to a
DataSet.- Overrides:
clearOsmMetadatain classAbstractPrimitive- Throws:
DataIntegrityProblemException- If primitive was already added to the dataset- Since:
- 6140
-
setUser
Description copied from interface:IPrimitiveSets the user who has last touched this object.- Specified by:
setUserin interfaceIPrimitive- Overrides:
setUserin classAbstractPrimitive- Parameters:
user- the user
-
setChangesetId
Description copied from interface:IPrimitiveSets the changeset id of this primitive. Can't be set on a new primitive.- Specified by:
setChangesetIdin interfaceIPrimitive- Overrides:
setChangesetIdin classAbstractPrimitive- Parameters:
changesetId- the id. >= 0 required.
-
updateFlagsNoLock
-
updateFlags
- Overrides:
updateFlagsin classAbstractPrimitive
-
setDisabledState
Description copied from interface:IFilterablePrimitiveMake the primitive disabled (e.g. if a filter applies). To enable the primitive again, use unsetDisabledState.- Specified by:
setDisabledStatein interfaceIFilterablePrimitive- Overrides:
setDisabledStatein classAbstractPrimitive- Parameters:
hidden- if the primitive should be completely hidden from view or just shown in gray color.- Returns:
- true, any flag has changed; false if you try to set the disabled state to the value that is already preset
-
unsetDisabledState
Remove the disabled flag from the primitive. Afterwards, the primitive is displayed normally and can be selected again.- Specified by:
unsetDisabledStatein interfaceIFilterablePrimitive- Overrides:
unsetDisabledStatein classAbstractPrimitive- Returns:
trueif a change occurred
-
setPreserved
Set binary property used internally by the filter mechanism.- Parameters:
isPreserved- new "preserved" flag value- Since:
- 13309
-
isSelectable
Description copied from interface:IPrimitiveDetermines if this object is selectable.A primitive can be selected if all conditions are met:
- it is drawable
- it is not disabled (greyed out) by a filter.
- Specified by:
isSelectablein interfaceIPrimitive- Returns:
trueif this object is selectable
-
setModified
Description copied from interface:IPrimitiveMarks this primitive as being modified.- Specified by:
setModifiedin interfaceIPrimitive- Overrides:
setModifiedin classAbstractPrimitive- Parameters:
modified- true, if this primitive is to be modified
-
setVisible
Description copied from interface:IPrimitiveSets whether this primitive is visible, i.e. whether it is known on the server and not deleted on the server.- Specified by:
setVisiblein interfaceIPrimitive- Overrides:
setVisiblein classAbstractPrimitive- Parameters:
visible-trueif this primitive is visible- See Also:
-
setDeleted
Description copied from interface:IPrimitiveSets whether this primitive is deleted or not.Also marks this primitive as modified if deleted is true.
- Specified by:
setDeletedin interfaceIPrimitive- Overrides:
setDeletedin classAbstractPrimitive- Parameters:
deleted- true, if this primitive is deleted; false, otherwise
-
setIncomplete
Description copied from class:AbstractPrimitiveIf set to true, this object is incomplete, which means only the id and type is known (type is the objects instance class)- Overrides:
setIncompletein classAbstractPrimitive- Parameters:
incomplete- incomplete flag value
-
isSelected
Description copied from interface:IPrimitiveDetermines whether the primitive is selected- Specified by:
isSelectedin interfaceIPrimitive- Returns:
- whether the primitive is selected
-
isMemberOfSelected
Description copied from interface:IPrimitiveDetermines if this primitive is a member of a selected relation.- Specified by:
isMemberOfSelectedin interfaceIPrimitive- Returns:
trueif this primitive is a member of a selected relation,falseotherwise
-
isOuterMemberOfSelected
Description copied from interface:IPrimitiveDetermines if this primitive is an outer member of a selected multipolygon relation.- Specified by:
isOuterMemberOfSelectedin interfaceIPrimitive- Returns:
trueif this primitive is an outer member of a selected multipolygon relation,falseotherwise
-
isOuterMemberOfMultipolygon
-
setHighlighted
Description copied from interface:IPrimitiveUpdates the highlight flag for this primitive.- Specified by:
setHighlightedin interfaceIPrimitive- Parameters:
highlighted- The new highlight flag.
-
compileDirectionKeys
private static SearchCompiler.Match compileDirectionKeys(String prefName, String defaultValue) throws AssertionError - Throws:
AssertionError
-
updateTagged
-
updateAnnotated
-
updateDirectionFlags
-
setKeys
Description copied from class:AbstractPrimitiveCopy the keys from a TagMap.- Overrides:
setKeysin classAbstractPrimitive- Parameters:
keys- The new key map.
-
setKeys
Description copied from class:AbstractPrimitiveSets the keys of this primitives to the key/value pairs inkeys. Old key/value pairs are removed. Ifkeysis null, clears existing key/value pairs.Note that this method, like all methods that modify keys, is not synchronized and may lead to data corruption when being used from multiple threads.
- Specified by:
setKeysin interfaceTagged- Overrides:
setKeysin classAbstractPrimitive- Parameters:
keys- the key/value pairs to set. If null, removes all existing key/value pairs.
-
put
Description copied from class:AbstractPrimitiveSet the given value to the given key. If key is null, does nothing. If value is null, removes the key and behaves likeAbstractPrimitive.remove(String).Note that this method, like all methods that modify keys, is not synchronized and may lead to data corruption when being used from multiple threads.
- Specified by:
putin interfaceTagged- Overrides:
putin classAbstractPrimitive- Parameters:
key- The key, for which the value is to be set. Can be null or empty, does nothing in this case.value- The value for the key. If null, removes the respective key/value pair.- See Also:
-
remove
Description copied from class:AbstractPrimitiveRemove the given key from the listNote that this method, like all methods that modify keys, is not synchronized and may lead to data corruption when being used from multiple threads.
- Specified by:
removein interfaceTagged- Overrides:
removein classAbstractPrimitive- Parameters:
key- the key to be removed. Ignored, if key is null.
-
removeAll
Description copied from class:AbstractPrimitiveRemoves all keys from this primitive.Note that this method, like all methods that modify keys, is not synchronized and may lead to data corruption when being used from multiple threads.
- Specified by:
removeAllin interfaceTagged- Overrides:
removeAllin classAbstractPrimitive
-
keysChangedImpl
Description copied from class:AbstractPrimitiveWhat to do, when the tags have changed by one of the tag-changing methods.- Specified by:
keysChangedImplin classAbstractPrimitive- Parameters:
originalKeys- original tags
-
addReferrer
Add new referrer. If referrer is already included then no action is taken- Parameters:
referrer- The referrer to add
-
removeReferrer
Remove referrer. No action is taken if referrer is not registered- Parameters:
referrer- The referrer to remove
-
referrers
-
referrers
Gets all primitives in the current dataset that reference this primitive.- Type Parameters:
T- type of primitives- Parameters:
filter- restrict primitives to subclasses- Returns:
- the referrers as Stream
- Since:
- 14654
-
getReferrers
Description copied from interface:IPrimitiveFind primitives that reference this primitive. Returns only primitives that are included in the same dataset as this primitive.
For example following code will add wnew as referer to all nodes of existingWay, but this method will not return wnew because it's not part of the dataset
Way wnew = new Way(existingWay)- Specified by:
getReferrersin interfaceIPrimitive- Parameters:
allowWithoutDataset- If true, method will return empty list if primitive is not part of the dataset. If false, exception will be thrown in this case- Returns:
- a collection of all primitives that reference this primitive.
-
getReferrers
Description copied from interface:IPrimitiveGets a list of all primitives in the current dataset that reference this primitive.- Specified by:
getReferrersin interfaceIPrimitive- Returns:
- The referrers
-
visitReferrers
Visits
visitorfor all referrers.- Parameters:
visitor- the visitor. Ignored, if null.- Since:
- 12809
-
visitReferrers
Description copied from interface:IPrimitiveVisits
visitorfor all referrers.- Specified by:
visitReferrersin interfaceIPrimitive- Parameters:
visitor- the visitor. Ignored, if null.
-
doVisitReferrers
-
isNodeReferredByWays
Return true, if this primitive is a node referred by at least n ways- Parameters:
n- Minimal number of ways to return true. Must be positive- Returns:
trueif this primitive is referred by at least n ways
-
accept
Implementation of the visitor scheme. Subclasses have to call the correct visitor function.- Parameters:
visitor- The visitor from which the visit() function must be called.- Since:
- 12809
-
cloneFrom
Get and write all attributes from the parameter. Does not fire any listener, so use this only in the data initializing phase- Parameters:
other- other primitive
-
cloneFrom
Get and write all attributes from the parameter. Does not fire any listener, so use this only in the data initializing phase- Parameters:
other- other primitivecopyChildren- whether to copy child primitives too- Since:
- 16212
-
mergeFrom
Merges the technical and semantic attributes fromotheronto this.Both this and other must be new, or both must be assigned an OSM ID. If both this and
otherhave an assigned OSM id, the IDs have to be the same.- Parameters:
other- the other primitive. Must not be null.- Throws:
IllegalArgumentException- if other is null.DataIntegrityProblemException- if either this is new and other is not, or other is new and this is notDataIntegrityProblemException- if other isn't new and other.getId() != this.getId()
-
hasEqualSemanticAttributes
Replies true if this primitive and other are equal with respect to their semantic attributes.- equal id
- both are complete or both are incomplete
- both have the same tags
- Parameters:
other- other primitive to compare- Returns:
- true if this primitive and other are equal with respect to their semantic attributes.
-
hasEqualSemanticFlags
-
hasEqualSemanticAttributes
-
hasEqualTechnicalAttributes
Replies true if this primitive and other are equal with respect to their technical attributes. The attributes:- deleted
- modified
- timestamp
- version
- visible
- user
- Parameters:
other- the other primitive- Returns:
- true if this primitive and other are equal with respect to their technical attributes
-
load
Loads (clone) this primitive from provided PrimitiveData- Parameters:
data- The object which should be cloned
-
save
Save parameters of this primitive to the transport object- Returns:
- The saved object data
-
saveCommonAttributes
Save common parameters of primitives to the transport object- Parameters:
data- The object to save the data into
-
updatePosition
Called by Dataset to update cached position information of primitive (bbox, cached EarthNorth, ...) -
getFlagsAsString
- Overrides:
getFlagsAsStringin classAbstractPrimitive
-
equals
Equal if the id (and class) are equal.A primitive is equal to its incomplete counterpart.
-
hashCode
Return the id plus the class type encoded as hashcode or super's hashcode if id is 0.A primitive has the same hashcode as its incomplete counterpart.
-
getTemplateKeys
Description copied from interface:TemplateEngineDataProviderGet the collection of all keys that can be mapped to values.- Specified by:
getTemplateKeysin interfaceTemplateEngineDataProvider- Returns:
- all keys that can be mapped to values
-
getTemplateValue
Description copied from interface:TemplateEngineDataProviderMap a key to a value given the properties of the object.- Specified by:
getTemplateValuein interfaceTemplateEngineDataProvider- Parameters:
name- the key to mapspecial- if the key is a "special:*" keyword that is used to get certain information or automated behavior- Returns:
- a value that the key is mapped to or "special" information in case
specialis true
-
evaluateCondition
Description copied from interface:TemplateEngineDataProviderCheck if a condition holds for the object represented by thisTemplateEngineDataProvider.- Specified by:
evaluateConditionin interfaceTemplateEngineDataProvider- Parameters:
condition- the condition to check (which is a search expression)- Returns:
- true if the condition holds
-
getParentRelations
Replies the set of referring relations- Parameters:
primitives- primitives to fetch relations from- Returns:
- the set of referring relations
-
hasAreaTags
Determines if this primitive has tags denoting an area.- Returns:
trueif this primitive has tags denoting an area,falseotherwise.- Since:
- 6491
-
concernsArea
Determines if this primitive semantically concerns an area.- Returns:
trueif this primitive semantically concerns an area, according to its type, geometry and tags,falseotherwise.- Since:
- 6491
-
isOutsideDownloadArea
Tests if this primitive lies outside of the downloaded area of itsDataSet.- Returns:
trueif this primitive lies outside of the downloaded area
-
addToBBox
If necessary, extend the bbox to contain this primitive- Parameters:
box- a bbox instancevisited- a set of visited members or null- Since:
- 11269
-