Skip to content

Commit b1c8f3e

Browse files
committed
Fix bug with Schema ignorning namespace URI.
1 parent 228fbed commit b1c8f3e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main/groovy/geoscript/feature/Schema.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ class Schema {
7474
* @param uri The namespace uri
7575
*/
7676
Schema(String name, def fields, String uri = "http://geoscript.org/feature") {
77-
this(buildFeatureType(name, fields))
77+
this(buildFeatureType(name, fields, uri))
7878
}
7979

8080
/**

src/test/groovy/geoscript/feature/SchemaTestCase.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class SchemaTestCase {
3232

3333
Schema s6 = new Schema("widgets", [new Field("geom","Point"), new Field("name","string"), new Field("price","float")], "http://geotools.org/feature")
3434
assertEquals "widgets geom: Point, name: String, price: Float", s6.toString()
35-
assertEquals "http://geoscript.org/feature", s6.uri
35+
assertEquals "http://geotools.org/feature", s6.uri
3636
}
3737

3838
@Test void getName() {

0 commit comments

Comments
 (0)