@Deprecated public class IlpShapeFileBackground extends Object implements IlpBackground
.shp
Shape files as background.
This background loader reads:
.shp
.
.dbf
(optional),
.shx
, and the Perforce JViews spatial index file,
with extension .idx
(optional).
See also: the Perforce JViews demo demos/maps/esri
, which can
be used to create the spatial index (.idx
) files, and
the Perforce JViews package ilog.views.maps.format.shapefile
.
The XML settable properties are:
property name="url"
(required).shp
file. The other three files are expected
to be located in the same directory.property name="loadOnDemand"
(optional)Modifier and Type | Field and Description |
---|---|
protected URL |
dbfURL
Deprecated.
|
protected URL |
idxURL
Deprecated.
|
protected boolean |
loadOnDemand
Deprecated.
|
protected URL |
shpURL
Deprecated.
|
protected URL |
shxURL
Deprecated.
|
protected boolean |
useLoadOnDemand
Deprecated.
|
Constructor and Description |
---|
IlpShapeFileBackground()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected URL |
addExtension(String base,
String extension)
Deprecated.
|
protected URL |
checkExists(URL url)
Deprecated.
|
IlvManagerLayer |
createLayer(IlpViewsView view,
URL SHPfileURL)
Deprecated.
Creates an empty
IlvManagerLayer suitable for a .shp file. |
protected IlvFeatureRenderer |
createRenderer(IlpViewsView view,
URL SHPfileURL,
IlvMapFeatureIterator reader)
Deprecated.
Creates a renderer for the attributes of the map.
|
void |
fillLayer(IlpViewsView view,
URL SHPfileURL,
IlvManagerLayer layer)
Deprecated.
Fills a layer with a
.shp file. |
boolean |
isLoadOnDemand()
Deprecated.
Returns
true if the memory saving technique of
load-on-demand is enabled. |
void |
setLoadOnDemand(boolean on)
Deprecated.
Enables or disables load-on-demand.
|
protected String |
withoutExtension(URL url)
Deprecated.
|
protected boolean loadOnDemand
protected URL shpURL
protected URL dbfURL
protected URL shxURL
protected URL idxURL
protected boolean useLoadOnDemand
public boolean isLoadOnDemand()
true
if the memory saving technique of
load-on-demand is enabled.public void setLoadOnDemand(boolean on)
protected URL addExtension(String base, String extension)
protected IlvFeatureRenderer createRenderer(IlpViewsView view, URL SHPfileURL, IlvMapFeatureIterator reader)
public IlvManagerLayer createLayer(IlpViewsView view, URL SHPfileURL)
IlvManagerLayer
suitable for a .shp
file.createLayer
in interface IlpBackground
view
- The view in which the background is to be displayed.SHPfileURL
- The location of the background data.public void fillLayer(IlpViewsView view, URL SHPfileURL, IlvManagerLayer layer)
.shp
file.fillLayer
in interface IlpBackground
view
- The view in which the background is to be displayed.SHPfileURL
- The location of the background data.layer
- The layer to be filled.© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.