Package org.geotools.map

Examples of org.geotools.map.FeatureSourceMapLayer


                        }

                        throw new WmsException("Internal error", "", exp);
                    }

                    layer = new FeatureSourceMapLayer(source, layerStyle);
                    layer.setTitle(layers[i].getFeature().getName());

                    final DefaultQuery definitionQuery = new DefaultQuery(source.getSchema()
                            .getName().getLocalPart());
                    definitionQuery.setVersion(featureVersion);
View Full Code Here


       
        List<LayerInfo> layers = getCatalog().getLayers(ftInfo);
        StyleInfo defaultStyle = layers.get(0).getDefaultStyle();
        Style style = defaultStyle.getStyle();
       
        map.addLayer(new FeatureSourceMapLayer(ftInfo.getFeatureSource(null, null), style));
    }
View Full Code Here

        }
       
        FeatureSource<? extends FeatureType, ? extends Feature> featureSource;
        featureSource = info.getFeatureSource(null, null);
       
        MapLayer layer = new FeatureSourceMapLayer(featureSource, style);
        layer.setTitle( layer.getTitle() );
       
        return layer;
    }
View Full Code Here

      FeatureSource<SimpleFeatureType, SimpleFeature> featureSource = ds
          .getFeatureSource(typeName);
      Class<?> geometryType = featureSource.getSchema()
          .getGeometryDescriptor().getType().getBinding();
      Style style = getFeatureLayerStyle(styleSource, geometryType);
      MapLayer mapLayer = new FeatureSourceMapLayer(featureSource, style);
      layer = new FeatureLayer();
      layer.setMapLayer(mapLayer);
    } else if (lowFileName.endsWith(".jpg")
        || lowFileName.endsWith(".jpeg")
        || lowFileName.endsWith(".png") || lowFileName.endsWith(".gif")
View Full Code Here

    FeatureSource<SimpleFeatureType, SimpleFeature> featureSource = ds
        .getFeatureSource(typeName);
    Class<?> geometryType = featureSource.getSchema()
        .getGeometryDescriptor().getType().getBinding();
    Style style = getFeatureLayerStyle(styleSource, geometryType);
    MapLayer mapLayer = new FeatureSourceMapLayer(featureSource, style);
    Layer layer = new FeatureLayer();
    layer.setMapLayer(mapLayer);
    return layer;
  }
View Full Code Here

    FeatureSource<SimpleFeatureType, SimpleFeature> featureSource = ds
        .getFeatureSource(typeName);
    Class<?> geometryType = featureSource.getSchema()
        .getGeometryDescriptor().getType().getBinding();
    Style style = getFeatureLayerStyle(styleSource, geometryType);
    MapLayer mapLayer = new FeatureSourceMapLayer(featureSource, style);
    Layer layer = new FeatureLayer();
    layer.setMapLayer(mapLayer);
    return layer;
  }
View Full Code Here

    FeatureSource<SimpleFeatureType, SimpleFeature> featureSource = ds
        .getFeatureSource(typeName);
    Class<?> geometryType = featureSource.getSchema()
        .getGeometryDescriptor().getType().getBinding();
    Style style = getFeatureLayerStyle(styleSource, geometryType);
    MapLayer mapLayer = new FeatureSourceMapLayer(featureSource, style);
    Layer layer = new FeatureLayer();
    layer.setMapLayer(mapLayer);
    return layer;
  }
View Full Code Here

    FeatureSource<SimpleFeatureType, SimpleFeature> featureSource = ds
        .getFeatureSource(typeName);
    Class<?> geometryType = featureSource.getSchema()
        .getGeometryDescriptor().getType().getBinding();
    Style style = getFeatureLayerStyle(styleSource, geometryType);
    MapLayer mapLayer = new FeatureSourceMapLayer(featureSource, style);
    Layer layer = new FeatureLayer();
    layer.setMapLayer(mapLayer);
    return layer;
  }
View Full Code Here

    FeatureSource<SimpleFeatureType, SimpleFeature> featureSource = ds
        .getFeatureSource(typeName);
    Class<?> geometryType = featureSource.getSchema()
        .getGeometryDescriptor().getType().getBinding();
    Style style = getFeatureLayerStyle(styleSource, geometryType);
    MapLayer mapLayer = new FeatureSourceMapLayer(featureSource, style);
    Layer layer = new FeatureLayer();
    layer.setMapLayer(mapLayer);
    return layer;
  }
View Full Code Here

                    }

                    throw new ServiceException("Internal error", exp);
                }

                layer = new FeatureSourceMapLayer(source, layerStyle);
                layer.setTitle(mapLayerInfo.getFeature().getPrefixedName());

                final Query definitionQuery = new Query(source.getSchema().getName().getLocalPart());
                definitionQuery.setVersion(featureVersion);
                definitionQuery.setFilter(layerFilter);
View Full Code Here

TOP

Related Classes of org.geotools.map.FeatureSourceMapLayer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.