File size: 4,566 Bytes
061391f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
37c4037
061391f
 
 
 
 
 
 
2257960
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
---
license: cc-by-nc-sa-4.0
configs:
- config_name: default
  data_files:
  - split: train
    path: data/train-*
  - split: test
    path: data/test-*
dataset_info:
  features:
  - name: image
    dtype: image
  - name: mask
    dtype: image
  - name: sdf_mask
    dtype:
      array2_d:
        shape:
        - 1024
        - 1024
        dtype: float32
  - name: road_network
    dtype: image
  - name: gps
    sequence:
    - name: id
      dtype: string
    - name: longitude
      dtype: float32
    - name: latitude
      dtype: float32
    - name: timestamp
      dtype: string
    - name: speed
      dtype: float32
    - name: direction
      dtype: float32
  - name: filename
    dtype: string
  splits:
  - name: train
    num_bytes: 5327869524.0
    num_examples: 614
  - name: test
    num_bytes: 1221907723.0
    num_examples: 152
  download_size: 3125871408
  dataset_size: 6549777247.0
tags:
- Satellite_iamge
- Remote_sensing
- GPS_data
- Multi-modal
---
# SDF-Guided Multi-modal Big Data Road Extraction

The source code about special session of PAKDD 2025 paper *"SDF-Guided Multi-modal Big Data Road Extraction"*

## Usage

```bash
pip install -r requirement.txt # install the dependency library
```
```bash
source tr_sz_sdf.sh # run code
```
## Shenzhen dataset

All of our *Shenzhen* dataset is based on the web Mercator projection in the GCJ-02 coordinate system. 

### Dataset description

- **train_val/**
  - **image/**: contains 614 satellite images (`x_y_sat.png `)
  - **mask/**: contains 614 binary mask images (`x_y_mask.png `)
  - **mask_sdf_T/**: contains 614 SDF mask images (`x_y_mask.npy `)
  - **road_network/** :contains 614 road network images (`x_y_mask.png `)
- **test/**
  - **image/**: contains 152 satellite images (`x_y_sat.png `)
  - **mask/**: contains 152 mask images (`x_y_mask.png `)
  - **mask_sdf_T/**: contains 152 SDF mask images (`x_y_mask.npy `)
  - **road_network/** :contains 152 road network images (`x_y_mask.png `)
- **GPS/**
  - **taxi/**: contains 766 GPS patch files (`x_y_gps.pkl`). Each stores the GPS records located in the area of input image `x_y_sat.png`
- **coordinates/**: contains `x_y_gps.txt`  (web Mercator GCJ-02 format) files, (left up corner, right down corner) <- format

Each input image `image/x_y_sat.png ` is a RGB satellite image of 1024 $\times$ 1024 pixel size. Its corresponding GPS data is stored in file  `/GPS/patch/x_y_gps.pkl`, and corresponding mask image is   `mask/x_y_mask.png`.

### GPS Data

To save the loading time, we publish the dataset in Python's Pickle format, which can be directly loaded like:

```python
import pandas
import pickle
gps_data = pickle.load(open('dataset_sz_sdf/GPS/taxi/0_6_gps.pkl', 'rb'))
```

**Definition of columns**:

- `id`: Vehicle ID (integer)
- `time`: Timestamp (UNIX format, in second)
- `lat`: Latitude (in pixel coordinate)
- `lon`: Longitude (in pixel coordinate)
- `direction`: Heading (in degree, 0 means the vehicle is heading north or isn't moving)
- `speed`: Speed (in meter per minute)
- `time`: The time stamp.

The `lat`/`lon` are in the gcj02 System.

**Range of sampling**

Coordinate Range of satellite images in Nanshan district

> wgs84 format:\
> Top left corner:113.77477269727868, 22.658708423462986 \
> Lower right corner:114.01655951201688, 22.401131313831055

> web Mercator on GCJ-02 format:\
> TLC:12665921.334966816,2590450.8885846175\
> LRC:12692827.1689232    ,2559417.4551008344

Coordinate Range of road networks in Nanshan district

> wgs84 format:\
> TLC:113.72531536623958, 22.676333371889751640059225977739\
> LRC:114.07037282840729, 22.352754460489630359940774022261

> web Mercator on GCJ-02 format:\
> TLC:12660417.89499784  , 2592578.6326045664\
> LRC:12698827.572095804, 2553607.944832368

Coordinate range of train(satellite) :

> wgs84 format:\
> TLC:113.77477269727868, 22.658708423462986\
> LRC:114.01655951201688, 22.52994959856712

> web Mercator on GCJ-02 format:\
> TLC:12665921.334966816, 2590450.8885846175\
> LRC:12692827.1689232    , 2574934.17184272595

Coordinate range of test(satellite) :

> wgs84 format:\
> TLC:113.77477269727868, 22.52994959856712\
> LRC:114.01655951201688, 22.465558186041523

> web Mercator on GCJ-02 format:\
> TLC:12665921.334966816, 2574934.17184272595\
> LRC:12692827.1689232    , 2567175.813471780175

Coordinate range of Nanshan road network (overbold version):

> web Mercator on GCJ-02 format:\
> TLC:12660417.89499784  , 2592493.9833760057\
> LRC:12698658.366469823, 2553607.944832368