52 |
|
|
53 |
import schmitzm.geotools.io.GeoImportUtil; |
import schmitzm.geotools.io.GeoImportUtil; |
54 |
import schmitzm.geotools.styling.StylingUtil; |
import schmitzm.geotools.styling.StylingUtil; |
55 |
import skrueger.AttributeMetaData; |
import skrueger.AttributeMetadata; |
56 |
import skrueger.i8n.Translation; |
import skrueger.i8n.Translation; |
57 |
|
|
58 |
import com.vividsolutions.jts.geom.Envelope; |
import com.vividsolutions.jts.geom.Envelope; |
249 |
|
|
250 |
// Leaving out the first one, it will be the_geom |
// Leaving out the first one, it will be the_geom |
251 |
for (int i = 1; i < fs.getSchema().getAttributeCount(); i++) { |
for (int i = 1; i < fs.getSchema().getAttributeCount(); i++) { |
252 |
AttributeDescriptor att = fs.getSchema().getDescriptor(i); |
AttributeDescriptor attDesc = fs.getSchema().getDescriptor(i); |
253 |
|
|
254 |
AttributeMetaData attMetaData = new AttributeMetaData(i, att |
AttributeMetadata attMetaData = new AttributeMetadata(attDesc.getName()); |
255 |
.getLocalName()); |
map.put(attDesc.getName(), attMetaData); |
|
map.put(i, attMetaData); |
|
256 |
} |
} |
257 |
} |
} |
258 |
return map; |
return map; |