Skip to content

Commit

Permalink
Fix some invalid help example expressions
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Apr 11, 2023
1 parent 850fb3a commit fe158c2
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion resources/function_help/json/eval
Expand Up @@ -8,7 +8,7 @@
"description": "an expression string"
}],
"examples": [{
"expression": "eval('\\'nice\\'')",
"expression": "eval('\\\\'nice\\\\'')",
"returns": "'nice'"
}, {
"expression": "eval(@expression_var)",
Expand Down
2 changes: 1 addition & 1 deletion resources/function_help/json/flip_coordinates
Expand Up @@ -11,7 +11,7 @@
"expression": "geom_to_wkt(flip_coordinates(make_point(1, 2)))",
"returns": "'Point (2 1)'"
},{
"expression": "geom_to_wkt(flip_coordinates(geom_from_wkt('LineString(0 2, 1 0, 1 6)')))))",
"expression": "geom_to_wkt(flip_coordinates(geom_from_wkt('LineString(0 2, 1 0, 1 6)')))",
"returns": "'LineString (2 0, 0 1, 6 1)'"
}],
"tags": ["latitude", "longitude", "reversed", "swapped", "coordinates", "repairing", "copy"]
Expand Down
2 changes: 1 addition & 1 deletion resources/function_help/json/pole_of_inaccessibility
Expand Up @@ -11,7 +11,7 @@
"description": "maximum distance between the returned point and the true pole location"
}],
"examples": [{
"expression": "geom_to_wkt(pole_of_inaccessibility( geom_from_wkt('POLYGON((0 1, 0 9, 3 10, 3 3, 10 3, 10 1, 0 1))'), 0.1))'",
"expression": "geom_to_wkt(pole_of_inaccessibility( geom_from_wkt('POLYGON((0 1, 0 9, 3 10, 3 3, 10 3, 10 1, 0 1))'), 0.1))",
"returns": "'Point(1.546875 2.546875)'"
}],
"tags": ["inaccessibility", "precise", "tolerances", "calculates", "guaranteed", "boundary", "require", "point", "true", "iterations", "internal", "uses", "approximate", "approach", "polylabel", "find", "distant", "calculate", "pole", "take", "surface", "specified", "tolerance", "iterative"]
Expand Down
2 changes: 1 addition & 1 deletion resources/function_help/json/to_decimal
Expand Up @@ -8,7 +8,7 @@
"description": "A degree, minute, second string."
}],
"examples": [{
"expression": "to_decimal('6\u00b021\\'16.445')",
"expression": "to_decimal('6\u00b021\\\\'16.445')",
"returns": "6.3545680555"
}],
"tags": ["converts", "minute", "degree", "equivalent", "second", "coordinate", "decimal"]
Expand Down

0 comments on commit fe158c2

Please sign in to comment.