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

Processing cites fails with invalid pixels. #42

Open
cmatthew opened this issue Mar 2, 2013 · 2 comments
Open

Processing cites fails with invalid pixels. #42

cmatthew opened this issue Mar 2, 2013 · 2 comments
Assignees
Milestone

Comments

@cmatthew
Copy link
Collaborator

cmatthew commented Mar 2, 2013

For example: This city:

"[21827,null,"POLYGON((-102.181838989258 31.132007598877,-102.1
90315246582 31.1407642364502,-102.190841674805 31.1421413421631,-102.18815612793 31.1444206237793,-102.180686950684 31.144380569458,-102.175392150879 31.1393089294434,-102.17539
2150879 31.138391494751,-102.181838989258 31.132007598877))",-102.190841674805,31.132007598877,-102.175392150879,31.1444206237793]"}

produces:

[email protected]] out: No Name with ID:21827 0...10...20...30...40...50...60...70...80...90...100 - done.
[[email protected]] out:
[[email protected]] out: No Name with ID:21827 Getting shapefile for 21827
[[email protected]] out: No Name with ID:21827 Shapefile is /tmp/tmpb8td8Z/21827.shp
[[email protected]] out: No Name with ID:21827 Running: ogr2ogr -s_srs "EPSG:4326" -t_srs "EPSG:32614" /tmp/tmpb8td8Z/tmp/21827.shp /tmp/tmpb8td8Z/21827.s
hp
[[email protected]] out: No Name with ID:21827 ogr2ogr said:  None
[[email protected]] out: No Name with ID:21827 New fnames are: /tmp/tmpb8td8Z/trim_21827b03.tif /tmp/tmpb8td8Z/trim_21827b04.tif /tmp/tmpb8td8Z/trim_21827
b07.tif
[[email protected]] out: No Name with ID:21827 creating... /tmp/tmpb8td8Z/21827_allbands.tif with /usr/local/bin/gdal_merge.py -n -9999 -a_nodata -9999 -s
eparate  -o /tmp/tmpb8td8Z/21827_allbands.tif /tmp/tmpb8td8Z/trim_21827b07.tif /tmp/tmpb8td8Z/trim_21827b04.tif /tmp/tmpb8td8Z/trim_21827b03.tif
[[email protected]] out: No Name with ID:21827 0...10...20...30...40...50...60...70...80...90...100 - done.
[[email protected]] out:
[[email protected]] out: No Name with ID:21827 creating... /tmp/tmpb8td8Z/21827_allbands.png with /usr/local/bin/gdal_translate -of png -ot Byte -scale /t
mp/tmpb8td8Z/21827_allbands.tif /tmp/tmpb8td8Z/21827_allbands.png
[[email protected]] out: No Name with ID:21827 ERROR 1: /tmp/tmpb8td8Z/21827_allbands.tif, band 1: Failed to compute min/max, no valid pixels found in sam
pling.
[[email protected]] out: ERROR 1: /tmp/tmpb8td8Z/21827_allbands.tif, band 2: Failed to compute min/max, no valid pixels found in sampling.
[[email protected]] out: ERROR 1: /tmp/tmpb8td8Z/21827_allbands.tif, band 3: Failed to compute min/max, no valid pixels found in sampling.
[[email protected]] out: Input file size is 49, 46
[[email protected]] out: 0...10...20...30...40...50...60...70...80...90...100 - done.
[[email protected]] out:
[[email protected]] out: No Name with ID:21827 Read Image Data
[[email protected]] out: No Name with ID:21827 Attempting to read image data from /tmp/tmpb8td8Z/21827_allbands.png
[[email protected]] out: No Name with ID:21827 Complete!
[[email protected]] out: No Name with ID:21827 Extracting Polygon points
[[email protected]] out: No Name with ID:21827 Calculating Greenspace
[[email protected]] out: No Name with ID:21827 Attemping to write png /tmp/tmpb8td8Z/21827.png
[[email protected]] out: No Name with ID:21827 Complete!
[[email protected]] out: No Name with ID:21827 Greenvalue of  0.0  was found
[[email protected]] out: No Name with ID:21827 RESULT: 21827 No Name with ID:21827 0.0
[[email protected]] out: No Name with ID:21827 Uploading processed image 21827.png to swift
[[email protected]] out: No Name with ID:21827 Swift finished with  0
[[email protected]] out: No Name with ID:21827 Complete!

@cmatthew
Copy link
Collaborator Author

cmatthew commented Mar 9, 2013

@stredger or @rickmcgeer do either of you know how to debug this problem?

@cmatthew
Copy link
Collaborator Author

cmatthew commented Mar 9, 2013

There is a unit test for it, btw.

@ghost ghost assigned stredger Mar 9, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants