public class ShpAttributesToNamedAreaMapper
extends java.lang.Object
NamedAreas
. The way
this data it attached to the areas is specific to the
IGeoServiceAreaMapping
implementation. It is recommended to create
csv file directly from the original shape file by making use of the
org2ogr
command which is contained in the gdal tools:
ogr2ogr -f csv out.csv input_shape_file.shp
Constructor and Description |
---|
ShpAttributesToNamedAreaMapper(java.util.Set<NamedArea> areas,
IGeoServiceAreaMapping areaMapping) |
ShpAttributesToNamedAreaMapper(TermVocabulary<NamedArea> areaVocabulary,
IGeoServiceAreaMapping areaMapping) |
Modifier and Type | Method and Description |
---|---|
java.util.Map<NamedArea,java.lang.String> |
readCsv(java.io.Reader reader,
java.util.List<java.lang.String> idSearchFields,
java.lang.String wmsLayerName) |
public static final Logger logger
public ShpAttributesToNamedAreaMapper(java.util.Set<NamedArea> areas, IGeoServiceAreaMapping areaMapping)
public ShpAttributesToNamedAreaMapper(TermVocabulary<NamedArea> areaVocabulary, IGeoServiceAreaMapping areaMapping)
public java.util.Map<NamedArea,java.lang.String> readCsv(java.io.Reader reader, java.util.List<java.lang.String> idSearchFields, java.lang.String wmsLayerName) throws java.io.IOException
reader
- A reader of the csv dataidSearchFields
- An ordered list column names in the the csv file to be
imported. These columns will be used to search for the
IdInVocabulary
of each
areawmsLayerName
- java.io.IOException
Copyright © 2007-2020 EDIT. All Rights Reserved.