File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
extensions/adapters/vector/src/main/java/mil/nga/giat/geowave/adapter/vector Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -100,7 +100,7 @@ public void readFields(
100100 public void write (
101101 final DataOutput output )
102102 throws IOException {
103- output .writeUTF (featureType .getName ().getNamespaceURI ());
103+ output .writeUTF (featureType .getName ().getNamespaceURI () == null ? "" : featureType . getName (). getNamespaceURI () );
104104 output .writeUTF (featureType .getTypeName ());
105105 output .writeUTF (DataUtilities .encodeType (featureType ));
106106 output .writeUTF (FeatureDataUtils .getAxis (featureType .getCoordinateReferenceSystem ()));
Original file line number Diff line number Diff line change @@ -98,9 +98,11 @@ public static SimpleFeatureType decodeType(
9898 final String axis )
9999 throws SchemaException {
100100
101- SimpleFeatureType featureType = DataUtilities .createType (
101+ SimpleFeatureType featureType = nameSpace != null && nameSpace . length () > 0 ? DataUtilities .createType (
102102 nameSpace ,
103103 typeName ,
104+ typeDescriptor ) : DataUtilities .createType (
105+ typeName ,
104106 typeDescriptor );
105107
106108 final String lCaseAxis = axis .toLowerCase ();
@@ -116,6 +118,7 @@ public static SimpleFeatureType decodeType(
116118 try {
117119 // truely no way to force lat first
118120 // but it is the default in later versions of GeoTools.
121+ // this all depends on the authority at the time of creation
119122 featureType = SimpleFeatureTypeBuilder .retype (
120123 featureType ,
121124 CRS .decode (
You can’t perform that action at this time.
0 commit comments