[GIS] How to update Trackball controls at three js
I have used the GDAL tools to rasterize a vector and providing the extension of my desired raster worked but if the data was very specific(i.e. lots of decimal points) I still didn't obtain the extension I needed. So I tried different things that worked in different ways:
a) I modified my rasters to the desired pixel size. If I created a raster from vector I followed this tutorial: http://www.mikemeredith.net/blog/1212_GIS_layer_for_Distance_from_in_QGIS.htm This indicates in the editable box where to provide the pixel size. It also indicates how to provide extension but because my extension was very "long" that didn't work for extension only for pixel size.
b) If you are using QGIS and are preparing your environmental layers for Maxent I suggest using the QSDM plugin and unify all your layers. All layers need to be in the same format (.tiff),same CRS and it helps if they have the same resolution. They will be given an equal extension as new layers that have been "unified". Even if they don't seem like they are the same, checking the metadata will confirm that they have been modified to have the same extension and resolution. Ready to be used in Maxent.
c) Additionally there is a nice tutorial here for Maxent AND QGIS, check out the: "Creating new rasters with GDAL tools" section. Where they cover re-sampling and this is great if you want to change pixel size for your environmental layers. http://clp-foss4g-workshop.readthedocs.org/en/latest/qgis_raster_resample.html
Hope it works and if there are other ways that worked for you I would be happy to know as sometimes for us beginners it is a lot of trial and error.
With Github, create a
username.github.io repository. Then, for your other repositories, you can create a
gh-pages branch. If you have an
index.html, you'll be able to navigate to http://username.github.io/project-name to see your map live on the web. Github has information on doing this here.
I did this last night, with a quick export from QGIS2Leaf just to show a friend what I was working on (disclaimer: very early draft!). Here is the repository, and the Leaflet map. Note that I have registered a domain name, but alpha-beta-soup.github.io and spatialparalysis.xyz are the same place, and this is totally optional. If you haven't used git/Github before, there will be a slight learning curve, but there are plenty of online tutorials, and Github's own introductions are nice and gentle.
This can be done with the
handleResize()method inside TrackballControls. Just add :