Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion jmeos-core/src/main/java/types/temporal/Temporal.java
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ public byte[] as_wkb(){
* @return The temporal object as a MF-JSON string.
*/
public String as_mfjson(boolean with_bbox, int flags, int precision, String srs){
return GeneratedFunctions.temporal_as_mfjson(this.inner,with_bbox,flags,precision,srs);
return GeneratedFunctions.temporal_as_mfjson(this.inner, with_bbox ? 1 : 0, flags, precision, srs);
}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -294,8 +294,8 @@ void outputMatchesTheLibrary() {

// The hex-WKB and MF-JSON strings match the direct call; the size_out is folded by the wrapper.
assertEquals(GeneratedFunctions.temporal_as_hexwkb(p, (byte) 4), g.asHEXWKB((byte) 4));
assertEquals(GeneratedFunctions.temporal_as_mfjson(p, true, 3, 6, null),
g.asMFJSON(true, 3, 6, null));
assertEquals(GeneratedFunctions.temporal_as_mfjson(p, 1, 3, 6, null),
g.asMFJSON(1, 3, 6, null));
// The WKB buffer is returned as a raw pointer.
assertNotNull(g.asWKB((byte) 4));
}
Expand Down
Loading