Skip to content

Commit

Permalink
use TunableParameter and the property to the appendix of the document…
Browse files Browse the repository at this point in the history
…ation
  • Loading branch information
stephanr committed Sep 23, 2022
1 parent 2adb315 commit 0cd59b9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
package org.deegree.sqldialect.oracle.sdo;

import static org.deegree.commons.tom.primitive.BaseType.DECIMAL;
import static org.deegree.commons.utils.TunableParameter.get;
import static org.deegree.geometry.validation.GeometryFixer.forceOrientation;

import java.sql.SQLException;
Expand Down Expand Up @@ -106,12 +107,8 @@
public class SDOGeometryConverter {
static final Logger LOG = LoggerFactory.getLogger( SDOGeometryConverter.class );

private static final boolean DEFAULT_EXPORT_ORIENTED_POINT;
private static final boolean DEFAULT_EXPORT_ORIENTED_POINT = get("deegree.oracle.export.oriented_point", false);

static {
DEFAULT_EXPORT_ORIENTED_POINT = "true".equalsIgnoreCase( System.getProperty( "deegree.oracle.export.oriented_point", "false" ));
}

private boolean exportOrientedPointAsExtra;

public SDOGeometryConverter() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,6 @@ f

|deegree.sqldialect.oracle.optimized_point_storage |java.lang.Boolean |true |Use optimized point storage for 2D points in oracle database.

|deegree.oracle.export.oriented_point |java.lang.Boolean |false |Read the orientation of Oracle orientated points as additional properties, disabled by default. The properties are located in the deegree extraprop namespace `http://www.deegree.org/extraprop` and are named `orientation0`, `orientation1`, etc.

|===

0 comments on commit 0cd59b9

Please sign in to comment.