182 reputation
8
bio website craig.stanton.net.nz
location Auckland, New Zealand
age 33
visits member for 2 years, 7 months
seen Jan 9 at 1:44

http://pct2007.org http://onemanwalking.com


Dec
2
comment Openlayers vector layer markers disappear near dateline
Indeed it did, thanks.
Nov
26
comment Openlayers vector layer markers disappear near dateline
Filed as a bug github.com/openlayers/openlayers/issues/771 still looking for a solution
Nov
26
comment Openlayers vector layer markers disappear near dateline
The problem appears to be a regression that appeared between 2.10 and 2.12. Tough they partly solved the 180° problem it seems to have just moved sideways a bit. I'm working on a jsfiddle to demonstrate it
Oct
31
comment Embedded images in KMZ not shown on Google Earth for iOS
Mapbox is iPad only and I'd rather get it working Google Earth thanks.
Mar
7
comment Not seeing the actual data value in getObservation response from MapServer 6
In the example data you linked to the procedure element was giving the stn_id (station id) and nested in the om:Result was a ms:Value which is the data that I am trying to set. But thanks to the other sample files (sos.map and obs.shp) I saw that changing my SQL to include the line "av.value::NUMERIC AS Value" gave me the output I wanted. Thanks for pointing me that way
Mar
6
comment Not seeing the actual data value in getObservation response from MapServer 6
Actually that 80 is the total_alkalinity_value for this response, but that can't be the right place for it. In the other examples I've seen the data value is within the "om:result" element
Mar
6
comment Not seeing the actual data value in getObservation response from MapServer 6
I was missing the sos_timeitem metadata but I had the rest. With that one added I now get a samplingTime element in the response (I've updated the question to show this) but still no data value. I also added sos_procedure_item even though it is optional so it should work without it. That only served to change the procedure to "80" instead of "ALKALINITY_SENSOR"
Nov
4
comment Tiling rgba geotiffs using vrt rather than gdal_warp
I've written up the whole process on my blog incase anyone comes here and is starting from scratch. craig.stanton.net.nz/2011/06/07/usgs-map-tile-sets
Nov
3
comment Tiling rgba geotiffs using vrt rather than gdal_warp
The final command that build a valid VRT was gdalbuildvrt -srcnodata b4 -hidenodata map.vrt *.tif. See MerseyViking's answer for how I got there
Nov
2
comment Tiling rgba geotiffs using vrt rather than gdal_warp
Ah HA! I cracked it. The final command that build a valid VRT was gdalbuildvrt -srcnodata b4 -hidenodata map.vrt *.tif. After that the regular gdal2tiles.py worked a treat and I have the output I wanted.
Oct
26
comment Tiling rgba geotiffs using vrt rather than gdal_warp
Thank you for spending time on this. I'm still getting messed up results. With these two commands I get mostly transparent tiles with tiny little slivers between the original maps. gdalwarp TILED=YES -srcnodata "255 255 255" -dstnodata "255 255 255" translated.tif warped.tif and gdalbuildvrt -srcnodata 255 255 255 -hidenodata temp.vrt <warped files>.tif and in tiles that are no near the boundary I get the background (between the contour lines) being transparent too.
Oct
24
comment Tiling rgba geotiffs using vrt rather than gdal_warp
Oh right. I avoided reszing the tifs in anyway, just cleared the unwanted borders with map noes etc. If I allowed white to be the transparent colour the output tiles would be largely transparent except for the contour lines and would look very bad laid over Google Maps. You said GDAL supports a mask layer, and I know gdal_merge is able to understand transparency, how would I get gdalbuildvrt to to do the right thing so I don't have to hunt for a colour that doesn't exist in any of the 30+ tifs I'm playing with?
Oct
23
comment Tiling rgba geotiffs using vrt rather than gdal_warp
What are the GCPs for? this images area already fully georeferenced so if they are for that then I'll leave them out. Unfortunately pure white is used in the map, as is pure black and it'd be pot-luck if I tried to guess at a colour that wasn't already in use.