/[schmitzm]/trunk/src/skrueger/geotools/StyledLayerUtil.java
ViewVC logotype

Diff of /trunk/src/skrueger/geotools/StyledLayerUtil.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 769 by alfonx, Sun Mar 21 11:02:34 2010 UTC revision 770 by alfonx, Sun Mar 21 11:36:11 2010 UTC
# Line 289  public class StyledLayerUtil { Line 289  public class StyledLayerUtil {
289                                  .getAttributeValue("namespace"));                                  .getAttributeValue("namespace"));
290                  final String localname = String.valueOf(element                  final String localname = String.valueOf(element
291                                  .getAttributeValue("localname"));                                  .getAttributeValue("localname"));
292                  final Name aName = new NameImpl(namespace, localname);                  final NameImpl aName = new NameImpl(namespace, localname);
293                  final Boolean visible = Boolean.valueOf(element                  final Boolean visible = Boolean.valueOf(element
294                                  .getAttributeValue("visible"));                                  .getAttributeValue("visible"));
295                  final String unit = element.getAttributeValue("unit");                  final String unit = element.getAttributeValue("unit");
# Line 1265  public class StyledLayerUtil { Line 1265  public class StyledLayerUtil {
1265                          AttributeDescriptor foundDescr = schema                          AttributeDescriptor foundDescr = schema
1266                                          .getDescriptor(atm.getName());                                          .getDescriptor(atm.getName());
1267                          if (foundDescr == null) {                          if (foundDescr == null) {
1268                                  Name bestMatch = FeatureUtil.findBestMatchingAttribute(schema,                                  NameImpl bestMatch = FeatureUtil.findBestMatchingAttribute(schema,
1269                                                  atm.getLocalName());                                                  atm.getLocalName());
1270                                  if (bestMatch == null)                                  if (bestMatch == null)
1271                                          willRemove.add(atm.getName());                                          willRemove.add(atm.getName());
# Line 1289  public class StyledLayerUtil { Line 1289  public class StyledLayerUtil {
1289                          if (ad instanceof GeometryDescriptor)                          if (ad instanceof GeometryDescriptor)
1290                                  continue;                                  continue;
1291                          if (!attributeMetaDataMap.containsKey(ad.getName())) {                          if (!attributeMetaDataMap.containsKey(ad.getName())) {
1292                                  attributeMetaDataMap.put(ad.getName(),                                  attributeMetaDataMap.put( new NameImpl(ad.getName().getNamespaceURI(), ad.getName().getLocalPart()),
1293                                                  new AttributeMetadataImpl(ad, schema                                                  new AttributeMetadataImpl(ad, schema
1294                                                                  .getAttributeDescriptors().indexOf(ad),                                                                  .getAttributeDescriptors().indexOf(ad),
1295                                                                  attributeMetaDataMap.getLanguages()));                                                                  attributeMetaDataMap.getLanguages()));

Legend:
Removed from v.769  
changed lines
  Added in v.770

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26