sis-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From desruisse...@apache.org
Subject svn commit: r1752159 - /sis/branches/JDK8/storage/sis-xmlstore/src/main/java/org/apache/sis/internal/gpx/GPXConstants.java
Date Mon, 11 Jul 2016 13:31:09 GMT
Author: desruisseaux
Date: Mon Jul 11 13:31:09 2016
New Revision: 1752159

URL: http://svn.apache.org/viewvc?rev=1752159&view=rev
Log:
Post FeatureTypeBuilder refactoring: adapt builder usage.

Modified:
    sis/branches/JDK8/storage/sis-xmlstore/src/main/java/org/apache/sis/internal/gpx/GPXConstants.java

Modified: sis/branches/JDK8/storage/sis-xmlstore/src/main/java/org/apache/sis/internal/gpx/GPXConstants.java
URL: http://svn.apache.org/viewvc/sis/branches/JDK8/storage/sis-xmlstore/src/main/java/org/apache/sis/internal/gpx/GPXConstants.java?rev=1752159&r1=1752158&r2=1752159&view=diff
==============================================================================
--- sis/branches/JDK8/storage/sis-xmlstore/src/main/java/org/apache/sis/internal/gpx/GPXConstants.java
[UTF-8] (original)
+++ sis/branches/JDK8/storage/sis-xmlstore/src/main/java/org/apache/sis/internal/gpx/GPXConstants.java
[UTF-8] Mon Jul 11 13:31:09 2016
@@ -28,7 +28,9 @@ import org.apache.sis.feature.AbstractId
 import org.apache.sis.feature.DefaultAttributeType;
 import org.apache.sis.feature.DefaultFeatureType;
 import org.apache.sis.feature.DefaultAssociationRole;
-import org.apache.sis.internal.feature.FeatureTypeBuilder;
+import org.apache.sis.feature.FeatureOperations;
+import org.apache.sis.feature.builder.FeatureTypeBuilder;
+import org.apache.sis.feature.builder.AttributeRole;
 import org.apache.sis.internal.feature.AttributeConvention;
 import org.apache.sis.internal.system.DefaultFactories;
 import org.apache.sis.referencing.CommonCRS;
@@ -37,7 +39,6 @@ import org.apache.sis.util.Static;
 // Branch-dependent imports
 import org.opengis.feature.FeatureType;
 import org.opengis.feature.PropertyType;
-import org.apache.sis.feature.FeatureOperations;
 
 
 /**
@@ -264,8 +265,8 @@ public final class GPXConstants extends
         builder = new FeatureTypeBuilder(null, factory, null);
         builder.setDefaultScope(GPX_NAMESPACE).setName("WayPoint").setSuperTypes(TYPE_GPX_ENTITY);
         builder.addAttribute(Point.class).setName(geomName)
-                .setCRSCharacteristic(CommonCRS.defaultGeographic())
-                .addRole(FeatureTypeBuilder.Attribute.Role.DEFAULT_GEOMETRY);
+                .setCRS(CommonCRS.defaultGeographic())
+                .addRole(AttributeRole.DEFAULT_GEOMETRY);
         builder.setDefaultCardinality(0, 1);
         builder.addAttribute(Double  .class).setName(TAG_WPT_ELE);
         builder.addAttribute(Temporal.class).setName(TAG_WPT_TIME);



Mime
View raw message