Skip to content

Instantly share code, notes, and snippets.

View aaronr's full-sized avatar

Aaron Racicot aaronr

View GitHub Profile
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Fixing file permissions
Generating dynamic mapfiles...please wait
Submitted 376 mapfiles for generation
DatabaseError: value too long for type character varying(32)
Restarting Apache
aaronr@aaron-zlinux-office1:~/github/dot-render-ms-gdal$ time gdal_rasterize -l us-west_processed -te -127.7923332999999957 31.3267771000000010 -102.0448844000000008 49.0113344000000026 -ts 800 800 -burn 0 -a_nodata 255 -ot Byte us-west_processed.vrt dots_gdal.tiff
0...10...20...30...40...50...60...70...80...90...100 - done.
real 1m37.052s
user 1m35.030s
sys 0m1.780s
aaronr@aaron-zlinux-office1:~/github/dot-render-ms-gdal$ time gdal_translate -of "PNG" dots_gdal.tiff dots_gdal.png
Input file size is 800, 800
0...10...20...30...40...50...60...70...80...90...100 - done.
aaronr@aaron-zlinux-office1:~/dots$ time /usr/local/src/mapserver/mapserver-6.0.2/shp2img -m dots.map -o dots.png -s 1000 1000 -l points -e -130 20 -100 50
real 3m19.241s
user 3m18.468s
sys 0m0.352s
@aaronr
aaronr / gist:5199177
Created March 19, 2013 19:09
Simple test GeoJSON for mapfart website
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
aronr@linode:~$ ogr2ogr -f "GeoJSON" /vsistdout/ PG:dbname=test ne_admin_bounds -where "name = 'United States'" | mapfart
http://mapfart.com/fart_TcFyUG
aaronr@linode:~$ psql -A -t -c "select geom from ne_admin_bounds where name = 'United States'" test | mapfart
http://mapfart.com/fart_9L4k9n
z-air:~ aaronr$ ogr2ogr -f GeoJSON /vsistdout/ ne_110m_admin_0_countries.shp -sql "select * from ne_110m_admin_0_countries where name='United States'" | mapfart
http://mapfart.com/api/fart/fart_2Um2A4
z-air:~ aaronr$ ogr2ogr -f GeoJSON /vsistdout/ ne_110m_admin_0_countries.shp -sql "select * from ne_110m_admin_0_countries where name='United States'" | mapfart
http://mapfart.com/api/fart/fart_2Um2A4
aaronr@linode:~$ ogr2ogr -f GeoJSON /vsistdout/ PG:dbname=projfinder epsg_poly_bb | mapfart
http://mapfart.com/api/fart/fart_CI6OMr