@LcdService(service=ILcdGXYLayerFactory.class, priority=20001) public final class TLcdMGCPGXYLayerFactory extends Object implements ILcdGXYLayerFactory
A GXY Layer factory which can create GXY layers for MGCP 2.0 compliant models.
Models are MGCP compliant when the data model descriptor has a data property "FCODE" or similar ("f-code", "fCode").
This includes models decoded by TLcdMGCPModelDecoder
,
but also SHP files that have such a property.
The returned layer is configured with a scale range
and
model query
config in order not to overload the map.
You can change these directly on the returned TLcdGXYLayer
.
To use this factory you can consult the tutorial.
If you want to apply custom styling you can follow this guide.
Constructor and Description |
---|
TLcdMGCPGXYLayerFactory() |
Modifier and Type | Method and Description |
---|---|
TLcdGXYLayer |
createGXYLayer(ILcdModel aModel)
Creates an
ILcdGXYLayer for representing
an ILcdModel on an ILcdGXYView . |
public TLcdGXYLayer createGXYLayer(ILcdModel aModel)
ILcdGXYLayerFactory
ILcdGXYLayer
for representing
an ILcdModel
on an ILcdGXYView
.createGXYLayer
in interface ILcdGXYLayerFactory
aModel
- a model that needs to be visualized in an ILcdGXYView
null
if such a layer cannot be createdTLcdGXYViewJPanel.setGXYLayerFactory(com.luciad.view.gxy.ILcdGXYLayerFactory)