Permalink
Commits on Jul 18, 2014
  1. Merge pull request #46 from mathuin/revert-45-no-more-downloading

    Revert "No more downloading" -- was supposed to merge this with DEVELOP
    committed Jul 18, 2014
  2. Revert "No more downloading"

    committed Jul 18, 2014
  3. Merge pull request #45 from mathuin/no-more-downloading

    Works for me!
    committed Jul 18, 2014
  4. Added support for multiple files, updated documentation.

    The README.md got cleaned up and updated to reflect changes in the code.
    
    region.py now supports lists of files for elevation and land cover as
    well as individual files.
    
    getregion.py changed to reflect the changes in region.py.
    committed Jul 18, 2014
  5. Now caching extracted maps in downloads directory.

    Users still need to specify the downloaded maps on the command line,
    though, even if the maps have already been downloaded.
    committed Jul 18, 2014
  6. Removed USGS retrieval code.

    The project no longer automatically retrieves files from the USGS due
    to changes in their web services.  A workaround has been configured
    which requires the user to download their own data from the USGS using
    the National Map Viewer.  Once that data has been retrieved, the
    software can use that data to create Minecraft worlds.
    
    Of course, the worlds don't work with current Mojang code due to the
    biome changes, but that issue will be solved wiht another branch.
    
    Still need to make multiple input files work.  Once that's done, this
    will be merged into develop.
    committed Jul 18, 2014
Commits on Jul 14, 2014
  1. Update README.md to reflect project status change

    I finally made the decision to put the project on hiatus.  Sigh.
    committed Jul 14, 2014
Commits on Mar 2, 2014
  1. Merge branch 'release/1.1'

    Conflicts:
    	region.py
    committed Mar 2, 2014
  2. Modified documentation to reflect new command names.

    We're lowercasing things now, because it's "better".  I think.
    committed Mar 2, 2014
  3. Updated documentation to reflect changes in Google Maps.

    Fixed #40.  The new GM doesn't work quite like the old one, so the
    README explains how to get the latitude and longitude of an arbitrary
    point from the new GM.
    committed Mar 2, 2014
Commits on Aug 26, 2013
  1. Updated documentation. Refs #37.

    Clarified the documentation surrounding the tile size option.
    committed Aug 26, 2013
  2. Updated documentation. Refs #37.

    Clarified the documentation surrounding the tile size option.
    committed Aug 26, 2013
Commits on Jun 12, 2013
Commits on Jun 11, 2013
  1. Fixed quoted filenames.

    Building VRT file from individual files means quoting individual
    filenames and joining them with spaces.
    committed Jun 11, 2013
  2. Fixed quoted filenames.

    Building VRT file from individual files means quoting individual
    filenames and joining them with spaces...
    committed Jun 11, 2013
Commits on Jun 10, 2013
  1. merged changes

    committed Jun 10, 2013
  2. Properly fixed #30. For the last time. I hope.

    The first fix failed because it pulled in something from an ongoing
    project with develop.  This one looks good.
    committed Jun 10, 2013
  3. Quoted filenames. Should fix space problem. Refs #30.

    Everywhere I saw a space, I quoted it.  That should fix the problem.
    
    Need to test on Windows first before releasing fix!
    
    Conflicts:
    
    	region.py
    committed Jun 10, 2013
  4. Quoted filenames. Should fix space problem. Refs #30.

    Everywhere I saw a space, I quoted it.  That should fix the problem.
    
    Need to test on Windows first before releasing fix!
    committed Jun 10, 2013
Commits on Apr 9, 2013
  1. Merge branch 'hotfix/1.0.5' into develop

    Conflicts:
    	region.py
    committed Apr 9, 2013
  2. Merge branch 'hotfix/1.0.5'

    committed Apr 9, 2013
  3. Bad logic in terrain translate causes bad values!

    Originally I thought that terrain values could be messed up by a bad
    translate dictionary, so I added 1000 to all new values, then
    subtracted 1000 from all values that were over 1000.  Unfortunately,
    the array's only 8 bits wide.  Oops.
    committed Apr 9, 2013
Commits on Mar 28, 2013
  1. Added AOCA checking. Fixes #11.

    The web services responds to invalid coordinates by not including an
    array of custom attributes.  I now trap this and return a ValueError
    exception with an explanation for the user.
    committed Mar 28, 2013
  2. Updated documentation to reflect changes.

    Added python-progressbar as a dependency, and also cleaned up the
    git submodule commands.
    committed Mar 28, 2013
  3. Updated documentation to reflect changes.

    Added python-progressbar as a dependency, and also cleaned up the
    git submodule commands.
    committed Mar 28, 2013
  4. Minor changes to comply with PEP8.

    The massive import from the hotfix needed tweaks to be PEP8-compliant.
    I also removed superfluous references to t_srs and cleaned up some
    comments.
    committed Mar 28, 2013
Commits on Mar 27, 2013
  1. Merge branch 'hotfix/1.0.4' into develop

    Conflicts:
    	getregion.py
    	region.py
    	terrain.py
    
    Conflicts were resolved with the branch merge, and the new
    GDAL-based coordinate transfer code was fixed as a result.
    committed Mar 27, 2013
  2. Merge branch 'hotfix/1.0.4'

    committed Mar 27, 2013
  3. More cleanup. References #25.

    Debug prints, imports and variables that were no longer used were
    removed.  Docstrings and comments were added.  'layername' got renamed
    to 'layertype'.  os.makedirs() replaced an os.system('mkdir -p') call.
    Added Downloads directory.
    
    This is now ready to merge with master.
    committed Mar 27, 2013
  4. Landcover files are now optimized, with other minor changes. References

    #25.
    
    Only the required portion of the landcover file is accessed now, which
    saves time and memory.  The VRTs are warped in advance -- this is
    faster than warping individual input files.
    
    The files we create and store are now referenced via absolute paths.
    
    In addition, I abstracted out the 'layername' functionality into a
    method.  There is probably a better name for this but I can't think of
    it.  Given a layer ID, tells what type of layer it is.
    committed Mar 27, 2013
  5. Adds bugfix detection and support. References #25.

    If the USGS fixes their range support on the web server, then we will
    no longer drop data on the floor.  It works for the broken case still.
    committed Mar 27, 2013
  6. Download resume and progress bars added, some old code removed. Refer…

    …ences #25.
    
    Removed decodeLayerID() because that layer ID scheme is obsolete, and
    removed buildvrts() because the current approach works.
    
    The USGS web server does not handle range checks across redirected
    files.  So now we check whether we've reached the end of the redirect
    chain before applying the range check.  Once we have the range check,
    the USGS web server promptly ignores the request and sends us the
    entire file anyway, so we drop the unneeded data on the floor.  This
    is still better than deleting the file and starting from scratch
    because if the USGS web server ever fixes the Range request behavior,
    we will be able to take advantage of it immediately.  The code that
    checks for the bugfix has not yet been written.
    
    Accidentally left in some bad code here: there's a redirect to use
    gdalwarp on the landcover files but for some reason that generates bad
    value 67 on BlockIsland.  I really need to fix the ReadAsArray call!
    committed Mar 27, 2013
  7. First pass at supporting new tiled files, fixing most of #25.

    The software works again.  It now downloads tiled files from the USGS.
    These files are now cached since they are very large and far more than
    the typical user will need for their purposes.  While the code works,
    it is extremely inefficient, especially in PrepRegion.py.
    
    A minor change to GetRegion.py corrects a print statement while two
    lines changed in terrain.py to reflect the new landcover product IDs.
    The rest of the changes were in region.py.  New product IDs for
    elevation and landcover were required.  The product availability code
    now checks to see if the products are tiled instead of seamless or
    read only (neither of which are usable now) and all the old layerID
    code is obsolete.  The download file routine has changed significantly
    and is less hackish.
    
    Things that need to be added before the hotfix is complete:
     * Map files need to be pre-shrunk before PrepRegion.py is called.
     * Progress bars are needed for downloads and possibly elsewhere.
     * Old code needs to be stripped out.
    committed Mar 27, 2013