Skip to content

Commit

Permalink
fix default
Browse files Browse the repository at this point in the history
  • Loading branch information
paleolimbot committed Oct 28, 2024
1 parent 9663863 commit 3f00e66
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/geoarrow/array_writer.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ GeoArrowErrorCode GeoArrowArrayWriterInitFromType(struct GeoArrowArrayWriter* wr
memset(private_data, 0, sizeof(struct GeoArrowArrayWriterPrivate));

// Default options
private_data->wkt_precision = -1;
private_data->wkt_precision = 16;

int result;
switch (type) {
Expand Down
3 changes: 1 addition & 2 deletions src/geoarrow/geoarrow.h
Original file line number Diff line number Diff line change
Expand Up @@ -475,8 +475,7 @@ GeoArrowErrorCode GeoArrowArrayWriterInitFromSchema(struct GeoArrowArrayWriter*
///
/// Returns EINVAL for precision values that are not valid or if the writer
/// is not writing to WKT. Must be called before GeoArrowArrayWriterInitVisitor().
/// A precision value of -1 indicates that the largest precision that will roundtrip
/// an ordinate value will be used. The default precision value is -1.
/// The default precision value is 16. See GeoArrowWKTWriter for details.
GeoArrowErrorCode GeoArrowArrayWriterSetPrecision(struct GeoArrowArrayWriter* writer,
int precision);

Expand Down

0 comments on commit 3f00e66

Please sign in to comment.