Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ValueError: No Shapely geometry can be created from null value #15

Open
xiaocheng2333 opened this issue Oct 20, 2021 · 0 comments
Open

Comments

@xiaocheng2333
Copy link

does anyone have this problem?
`['gdal_translate', '-ot', 'Byte', '-of', 'GTiff', '-co', '"PHOTOMETRIC=rgb"', '-scale_1', '149.0', '790.0', '0', '255', '-scale_2', '301.0', '1022.0', '0', '255', '-scale_3', '263.0', '712.0', '0', '255', '/data/hucheng/SpaceNet_Roads_Sample/AOI_2_Vegas_Roads_Sample/RGB-PanSharpen/RGB-PanSharpen_AOI_2_Vegas_img699.tif', '/data/hucheng/SpaceNet_Roads_Sample/AOI_2_Vegas_Roads_Sample/RGB-PanSharpen_8bit/RGB-PanSharpen_AOI_2_Vegas_img699.tif']
Input file size is 1300, 1300
Warning 6: driver GTiff does not support creation option "PHOTOMETRIC
0...10...20...30...40...50...60...70...80...90...100 - done.

1 / 10
im_name: RGB-PanSharpen_AOI_2_Vegas_img699.tif
name_root: AOI_2_Vegas_img699
im_file_out: /data/hucheng/SpaceNet_Roads_Sample/AOI_2_Vegas_Roads_Sample/RGB-PanSharpen_8bit/RGB-PanSharpen_AOI_2_Vegas_img699.tif
mask_file: /data/hucheng/SpaceNet_Roads_Sample/AOI_2_Vegas_Roads_Sample/masks_2m/AOI_2_Vegas_img699.png
output_plot_file: /data/hucheng/SpaceNet_Roads_Sample/AOI_2_Vegas_Roads_Sample/masks_2m_plots/AOI_2_Vegas_img699.png
label_file: /data/hucheng/SpaceNet_Roads_Sample/AOI_2_Vegas_Roads_Sample/geojson/spacenetroads/spacenetroads_AOI_2_Vegas_img699.geojson
label_file: /data/hucheng/SpaceNet_Roads_Sample/AOI_2_Vegas_Roads_Sample/geojson/spacenetroads/spacenetroads_AOI_2_Vegas_img699.geojson
IllegalArgumentException: Invalid buffer endCap style
Traceback (most recent call last):
File "create_spacenet_masks.py", line 184, in
main()
File "create_spacenet_masks.py", line 176, in main
overwrite_ims=bool(args.overwrite_ims))
File "create_spacenet_masks.py", line 127, in create_masks
verbose=False)
File "/home/hucheng/data-process/apls/apls/apls_utils.py", line 583, in _get_road_buffer
projectToUTM=True)
File "/home/hucheng/data-process/apls/apls/apls_utils.py", line 493, in create_buffer_geopandas
cap_style=buffer_cap_style)
File "/opt/anaconda3/envs/apls/lib/python3.6/site-packages/geopandas/base.py", line 578, in buffer
for geom in self.geometry],
File "/opt/anaconda3/envs/apls/lib/python3.6/site-packages/geopandas/base.py", line 578, in
for geom in self.geometry],
File "/opt/anaconda3/envs/apls/lib/python3.6/site-packages/shapely/geometry/base.py", line 593, in buffer
mitre_limit))
File "/opt/anaconda3/envs/apls/lib/python3.6/site-packages/shapely/geometry/base.py", line 76, in geom_factory
raise ValueError("No Shapely geometry can be created from null value")
ValueError: No Shapely geometry can be created from null value`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant