Skip to content

Commit 13409f6

Browse files
committed
mend
1 parent 11f6e83 commit 13409f6

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

extensions/adapters/vector/src/main/java/mil/nga/giat/geowave/adapter/vector/FeatureWritable.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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()));

extensions/adapters/vector/src/main/java/mil/nga/giat/geowave/adapter/vector/util/FeatureDataUtils.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff 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(

0 commit comments

Comments
 (0)