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
5bc027b9
Commit
5bc027b9
authored
Nov 09, 2024
by
dliangx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
d5cbaec9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
21 deletions
+2
-21
model/models.go
+0
-10
sql/area.sql
+2
-11
No files found.
model/models.go
View file @
5bc027b9
...
...
@@ -31,16 +31,6 @@ type OptArea struct {
Geometry
*
geojson
.
Geometry
`json:"area"`
// 区域边界坐标点
}
type
AdministrativeArea
struct
{
ID
int
`json:"id"`
// 区域ID
Type
string
`json:"type"`
Parent
int
//所属上级区域
DEGREE
int
//划分等级
Properties
map
[
string
]
interface
{}
`json:"properties"`
OptTime
time
.
Time
`json:"opt_time"`
Geometry
*
geojson
.
Geometry
`json:"area"`
// 区域边界坐标点
}
type
GeoJson
struct
{
ID
int
`json:"id"`
Type
string
`json:"type"`
...
...
sql/area.sql
View file @
5bc027b9
...
...
@@ -17,8 +17,8 @@ create table opt_fly_routes (
geometry
geometry
(
linestring
,
4326
)
);
drop
table
if
EXISTS
opt_area
;
create
table
opt_area
(
drop
table
if
EXISTS
opt_area
s
;
create
table
opt_area
s
(
id
serial
PRIMARY
key
,
type
VARCHAR
(
64
),
properties
JSONB
,
...
...
@@ -26,12 +26,3 @@ create table opt_area(
geometry
geometry
(
polygon
,
4326
)
);
DROP
table
if
EXISTS
administrative_area
;
create
table
administrative_area
(
id
serial
PRIMARY
key
,
type
VARCHAR
(
64
),
parent
int
,
properties
JSONB
,
DEGREE
int
,
geometry
geometry
(
polygon
,
4326
)
);
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