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
1a206334
Commit
1a206334
authored
Nov 07, 2024
by
dliangx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
轨迹共用
parent
40a10ef4
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
24 deletions
+5
-24
geo/area.go
+2
-2
model/models.go
+1
-11
sql/area.sql
+2
-11
No files found.
geo/area.go
View file @
1a206334
...
...
@@ -2,12 +2,12 @@ package geo
import
"com.dliangx.xplot/appserver/model"
func
SaveFlyDefenseRoute
(
flyDefenseRoute
*
model
.
FlyDefense
Route
)
(
string
,
error
)
{
func
SaveFlyDefenseRoute
(
flyDefenseRoute
*
model
.
Opt
Route
)
(
string
,
error
)
{
return
""
,
nil
}
func
SaveAgrMachRoute
(
agriMachRoute
*
model
.
AgrMach
Route
)
(
string
,
error
)
{
func
SaveAgrMachRoute
(
agriMachRoute
*
model
.
Opt
Route
)
(
string
,
error
)
{
return
""
,
nil
}
...
...
model/models.go
View file @
1a206334
...
...
@@ -9,7 +9,7 @@ import (
type
GeoData
geojson
.
Feature
// FlyDefenseRoute 飞防路线
type
FlyDefense
Route
struct
{
type
Opt
Route
struct
{
ID
string
`json:"id"`
// 路线ID
Name
string
`json:"name"`
// 路线名称
Type
string
`json:"type"`
...
...
@@ -18,16 +18,6 @@ type FlyDefenseRoute struct {
RouteLine
geojson
.
Feature
`json:"route_line"`
// 路线坐标点 (PostGIS LineString)
}
// AgrMachRoute 农机路线
type
AgrMachRoute
struct
{
ID
string
`json:"id"`
// 路线ID
Name
string
`json:"name"`
// 路线名称
Type
string
`json:"type"`
Properties
map
[
string
]
interface
{}
`json:"properties"`
OptTime
time
.
Time
`json:"opt_time"`
RouteLine
geojson
.
Feature
`json:"route_line"`
// 路线坐标点
}
// OptArea 作业区域
type
OptArea
struct
{
ID
string
`json:"id"`
// 区域ID
...
...
sql/area.sql
View file @
1a206334
DROP
table
if
EXISTS
opt_agr_routes
;
create
table
opt_agr_routes
(
id
serial
PRIMARY
key
,
name
VARCHAR
(
64
),
type
VARCHAR
(
64
),
properties
JSONB
,
opt_time
DATE
,
route_line
geometry
(
Linestring
,
3005
)
);
DROP
table
if
EXISTS
opt_
fly_
routes
;
create
table
opt_
fly_
routes
(
DROP
table
if
EXISTS
opt_routes
;
create
table
opt_routes
(
id
serial
PRIMARY
key
,
name
VARCHAR
(
64
),
type
VARCHAR
(
64
),
...
...
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