Skip to content

Commit

Permalink
添加可选的Z坐标
Browse files Browse the repository at this point in the history
  • Loading branch information
Sweetnow committed Mar 26, 2024
1 parent 0463d47 commit ed69bdc
Show file tree
Hide file tree
Showing 66 changed files with 381 additions and 311 deletions.
11 changes: 9 additions & 2 deletions city/geo/v2/geo.proto
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@ package city.geo.v2;
// This file describes the geographical coordinate system, including three coordinate classifications:
// 1. LongLatPosition
// 经纬度坐标, 经度 longitute 120.234256 纬度 latitude 40.2321782
// 高程(单位:米) z 100.0
// Latitude and longitude coordinates, longitute 120.234256 latitude 40.2321782
// 2. XYPosition
// 按米计算的平面x/y坐标
// Plane x/y coordinates in meters
// 按米计算的平面x/y/z坐标
// Plane x/y/z coordinates in meters
// 3. AoiPosition, LanePosition
// 地图坐标(例如:AOI、车道+距离s)
// Map coordinates (for example: AOI, lane + distance s)
Expand All @@ -31,6 +32,9 @@ message LongLatPosition {
// 纬度
// latitude
double latitude = 2;
// 高程(单位:米)
// elevation (unit: meters)
optional double z = 3;
}

// XY坐标
Expand All @@ -42,6 +46,9 @@ message XYPosition {
// y坐标,单位米,对应纬度
// y coordinate, in meters, corresponding to latitude
double y = 2;
// z坐标,单位米,对应高程
// z coordinate, in meters, corresponding to elevation
optional double z = 3;
}

// 地图坐标(车道+距离s)
Expand Down
18 changes: 17 additions & 1 deletion doc/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2380,6 +2380,14 @@ <h3 id="city.geo.v2.LongLatPosition">LongLatPosition</h3>
latitude </p></td>
</tr>

<tr>
<td>z</td>
<td><a href="#double">double</a></td>
<td>optional</td>
<td><p>高程(单位:米)
elevation (unit: meters) </p></td>
</tr>

</tbody>
</table>

Expand Down Expand Up @@ -2462,6 +2470,14 @@ <h3 id="city.geo.v2.XYPosition">XYPosition</h3>
y coordinate, in meters, corresponding to latitude </p></td>
</tr>

<tr>
<td>z</td>
<td><a href="#double">double</a></td>
<td>optional</td>
<td><p>z坐标,单位米,对应高程
z coordinate, in meters, corresponding to elevation </p></td>
</tr>

</tbody>
</table>

Expand Down Expand Up @@ -4502,7 +4518,7 @@ <h3 id="city.map.v2.Aoi">Aoi</h3>
<td><a href="#string">string</a></td>
<td>optional</td>
<td><p>城市建设用地分类,参照执行标准GB 50137-2011(https://www.planning.org.cn/law/uploads/2013/1383993139.pdf)
Urban Land use type, , refer to the national standard GB 50137-2011 </p></td>
Urban Land use type, refer to the national standard GB 50137-2011 </p></td>
</tr>

<tr>
Expand Down
16 changes: 16 additions & 0 deletions es/city/geo/v2/geo_pb.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,14 @@ export declare class LongLatPosition extends Message<LongLatPosition> {
*/
latitude: number;

/**
* 高程(单位:米)
* elevation (unit: meters)
*
* @generated from field: optional double z = 3;
*/
z?: number;

constructor(data?: PartialMessage<LongLatPosition>);

static readonly runtime: typeof proto3;
Expand Down Expand Up @@ -67,6 +75,14 @@ export declare class XYPosition extends Message<XYPosition> {
*/
y: number;

/**
* z坐标,单位米,对应高程
* z coordinate, in meters, corresponding to elevation
*
* @generated from field: optional double z = 3;
*/
z?: number;

constructor(data?: PartialMessage<XYPosition>);

static readonly runtime: typeof proto3;
Expand Down
2 changes: 2 additions & 0 deletions es/city/geo/v2/geo_pb.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export const LongLatPosition = proto3.makeMessageType(
() => [
{ no: 1, name: "longitude", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
{ no: 2, name: "latitude", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
{ no: 3, name: "z", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
],
);

Expand All @@ -30,6 +31,7 @@ export const XYPosition = proto3.makeMessageType(
() => [
{ no: 1, name: "x", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
{ no: 2, name: "y", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
{ no: 3, name: "z", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
],
);

Expand Down
2 changes: 1 addition & 1 deletion es/city/map/v2/map_pb.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -926,7 +926,7 @@ export declare class Aoi extends Message<Aoi> {

/**
* 城市建设用地分类,参照执行标准GB 50137-2011(https://www.planning.org.cn/law/uploads/2013/1383993139.pdf)
* Urban Land use type, , refer to the national standard GB 50137-2011
* Urban Land use type, refer to the national standard GB 50137-2011
*
* @generated from field: optional string urban_land_use = 12;
*/
Expand Down
18 changes: 9 additions & 9 deletions go/city/agent/v2/agent.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions go/city/agent/v2/agent_service.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions go/city/agent/v2/motion.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion go/city/clock/v1/clock_service.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion go/city/cognition/input/v1/config.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion go/city/cognition/input/v1/input.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion go/city/cognition/input/v1/input_service.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion go/city/cognition/output/v1/output.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion go/city/cognition/output/v1/output_service.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 7 additions & 7 deletions go/city/comm/input/v1/comm.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion go/city/comm/interaction/aoi/v1/aoi_service.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion go/city/comm/interaction/demand/v1/demand_service.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion go/city/comm/interaction/gateway/v1/gateway.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion go/city/comm/interaction/gateway/v1/gateway_service.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion go/city/comm/output/v1/output.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit ed69bdc

Please sign in to comment.