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: |
38 |
import org.geotools.data.FeatureSource; |
import org.geotools.data.FeatureSource; |
39 |
import org.geotools.data.Query; |
import org.geotools.data.Query; |
40 |
import org.geotools.data.memory.MemoryDataStore; |
import org.geotools.data.memory.MemoryDataStore; |
|
import org.geotools.feature.AttributeType; |
|
41 |
import org.geotools.feature.FeatureCollection; |
import org.geotools.feature.FeatureCollection; |
42 |
|
import org.opengis.feature.type.AttributeDescriptor; |
43 |
import org.opengis.filter.Filter; |
import org.opengis.filter.Filter; |
44 |
|
|
45 |
import schmitzm.geotools.gui.FeatureCollectionTableModel; |
import schmitzm.geotools.gui.FeatureCollectionTableModel; |
174 |
* ArrayOutOfIndex. |
* ArrayOutOfIndex. |
175 |
*/ |
*/ |
176 |
if (attrIdx < fs.getSchema().getAttributeCount()) { |
if (attrIdx < fs.getSchema().getAttributeCount()) { |
177 |
final AttributeType attributeTypeAtIdx = fs.getSchema() |
final AttributeDescriptor attributeTypeAtIdx = fs.getSchema() |
178 |
.getAttributeType(attrIdx); |
.getAttributeType(attrIdx); |
179 |
visibleAttrNames.add(attributeTypeAtIdx.getLocalName()); |
visibleAttrNames.add(attributeTypeAtIdx.getLocalName()); |
180 |
} else { |
} else { |