Commit 5bc027b9 by dliangx

update

parent d5cbaec9
...@@ -31,16 +31,6 @@ type OptArea struct { ...@@ -31,16 +31,6 @@ type OptArea struct {
Geometry *geojson.Geometry `json:"area"` // 区域边界坐标点 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 { type GeoJson struct {
ID int `json:"id"` ID int `json:"id"`
Type string `json:"type"` Type string `json:"type"`
......
...@@ -17,8 +17,8 @@ create table opt_fly_routes ( ...@@ -17,8 +17,8 @@ create table opt_fly_routes (
geometry geometry(linestring,4326) geometry geometry(linestring,4326)
); );
drop table if EXISTS opt_area ; drop table if EXISTS opt_areas ;
create table opt_area( create table opt_areas(
id serial PRIMARY key, id serial PRIMARY key,
type VARCHAR(64), type VARCHAR(64),
properties JSONB, properties JSONB,
...@@ -26,12 +26,3 @@ create table opt_area( ...@@ -26,12 +26,3 @@ create table opt_area(
geometry geometry(polygon,4326) 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)
);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment