2 |
* Copyright (c) 2009 Martin O. J. Schmitz. |
* Copyright (c) 2009 Martin O. J. Schmitz. |
3 |
* |
* |
4 |
* This file is part of the SCHMITZM library - a collection of utility |
* This file is part of the SCHMITZM library - a collection of utility |
5 |
* classes based on Java 1.6, focussing (not only) on Java Swing |
* classes based on Java 1.6, focusing (not only) on Java Swing |
6 |
* and the Geotools library. |
* and the Geotools library. |
7 |
* |
* |
8 |
* The SCHMITZM project is hosted at: |
* The SCHMITZM project is hosted at: |
43 |
|
|
44 |
import org.apache.log4j.Logger; |
import org.apache.log4j.Logger; |
45 |
import org.geotools.data.FeatureSource; |
import org.geotools.data.FeatureSource; |
|
import org.geotools.feature.AttributeType; |
|
46 |
import org.geotools.feature.FeatureCollection; |
import org.geotools.feature.FeatureCollection; |
47 |
import org.geotools.styling.Style; |
import org.geotools.styling.Style; |
48 |
|
import org.opengis.feature.type.AttributeDescriptor; |
49 |
import org.opengis.referencing.crs.CoordinateReferenceSystem; |
import org.opengis.referencing.crs.CoordinateReferenceSystem; |
50 |
|
|
51 |
import schmitzm.geotools.styling.StylingUtil; |
import schmitzm.geotools.styling.StylingUtil; |
231 |
|
|
232 |
// Leaving out the first one, it will be the_geom |
// Leaving out the first one, it will be the_geom |
233 |
for (int i = 1; i < fs.getSchema().getAttributeCount(); i++) { |
for (int i = 1; i < fs.getSchema().getAttributeCount(); i++) { |
234 |
AttributeType att = fs.getSchema().getAttributeType(i); |
AttributeDescriptor att = fs.getSchema().getAttributeType(i); |
235 |
|
|
236 |
AttributeMetaData attMetaData = new AttributeMetaData(i, att |
AttributeMetaData attMetaData = new AttributeMetaData(i, att |
237 |
.getLocalName()); |
.getLocalName()); |