public class TLcdSHPTiler extends Object
prefix.summary
,
where prefix
is the destination template given to the tiler.
It will be a java properties file with the following structure:
tileCount=5 # number of files tile.0.source=prefix_1_0_0.shp # filename of a split SHP file tile.0.bounds=10,20,30,40 # x,y,width,height of the bounds, as doubles tile.0.elements=513 # number of elements in the file tile.1.source=... tile.1.bounds=... tile.1.elements=... tile.2.source=... tile.2.bounds=... tile.2.elements=... ...
Constructor and Description |
---|
TLcdSHPTiler() |
Modifier and Type | Method and Description |
---|---|
ILcdBounds |
getDecodingBounds()
Returns the decoding bounds used by this tiler.
|
ILcdInputStreamFactory |
getInputStreamFactory()
Returns the
ILcdInputStreamFactory to be used for decoding SHP data. |
int |
getMaxSHPFileSize()
Returns the maximum file size of leaf node ShapeFiles, in bytes.
|
void |
setDecodingBounds(ILcdBounds aDecodingBounds)
Sets the decoding bounds of the tiler.
|
void |
setInputStreamFactory(ILcdInputStreamFactory aInputStreamFactory)
Sets the
ILcdInputStreamFactory to be used for decoding SHP data. |
void |
setMaxSHPFileSize(int aMaxSHPFileSize)
Sets the maximum file size of leaf node ShapeFiles, in bytes.
|
void |
tile(String aSourceName,
String aDestinationName)
Converts the SHP file specified by aSourceName into smaller tiles.
|
public ILcdInputStreamFactory getInputStreamFactory()
ILcdInputStreamFactory
to be used for decoding SHP data.ILcdInputStreamFactory
to be used for decoding SHP data.public void setInputStreamFactory(ILcdInputStreamFactory aInputStreamFactory)
ILcdInputStreamFactory
to be used for decoding SHP data.aInputStreamFactory
- the ILcdInputStreamFactory
to be used for decoding SHP data.public int getMaxSHPFileSize()
public void setMaxSHPFileSize(int aMaxSHPFileSize)
aMaxSHPFileSize
- the maximum file size of leaf node ShapeFiles, in bytes.public void tile(String aSourceName, String aDestinationName) throws IOException
aSourceName
- the sourcename of the SHP file to be converted.aDestinationName
- the template destination name of the resulting SHP tiles.IOException
- if an I/O exception occurs during the conversion.public ILcdBounds getDecodingBounds()
setDecodingBounds(ILcdBounds)
public void setDecodingBounds(ILcdBounds aDecodingBounds)
Sets the decoding bounds of the tiler.
Only those elements of the SHP file of which the bounds interact with the decoding bounds end up in the tiled model.
If the decoding bounds is null, no filtering is performed. Default value is null.
The bounds must be specified in the reference of the SHP file.
aDecodingBounds
- The new decodingBounds to be set.getDecodingBounds()