Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xplot_server
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
digit_plot
xplot_server
Commits
1cbfa985
Commit
1cbfa985
authored
Nov 19, 2024
by
dliangx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
990ba963
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
7 deletions
+1
-7
geo/area.go
+1
-7
No files found.
geo/area.go
View file @
1cbfa985
...
@@ -571,13 +571,7 @@ func Get90CrossOptArea(obj model.Geometrys) (string, error) {
...
@@ -571,13 +571,7 @@ func Get90CrossOptArea(obj model.Geometrys) (string, error) {
var
results
string
var
results
string
query
:=
`
query
:=
`
SELECT
SELECT p.id from opt_areas p WHERE st_area(ST_Intersection(ST_GeomFromText($1, 4326), p.geometry))/st_area(p.geometry) > 0.9;
p.id
FROM
opt_areas p
WHERE
ST_Overlaps(ST_GeomFromText($1, 4326), p.geometry)
AND (100 * ST_Area(ST_Intersection(ST_GeomFromText($1, 4326), p.geometry)) / ST_Area(ST_GeomFromText($1, 4326))) > 90
`
`
rows
,
err
:=
db
.
Query
(
query
,
wkt
)
rows
,
err
:=
db
.
Query
(
query
,
wkt
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment