I want to load a GeoTIFF file from a browser using Leaflet. I have created a custom control button that on click loads a file from local computer.   fileInput.Change() is the function that is called, when a user select a tiff file. Right now I am loading a file from local directory, and it's size is around 57 MB, and I am getting error of 206 in my browser.       // load raster button     var customControl =  L.Control.extend({        options: {         position: 'topleft'       },        onAdd: function (map) {         var container = L.DomUtil.create('input');         container.type="button";         container.title="No cat";         // container.value = "42";          container.style.backgroundColor = 'white';         //container.style.backgroundImage = "url(https://t1.gstatic.com/images?q=tbn:ANd9GcR6FCUMW5bPn8C4PbKak2BJQQsmC-K9-mbYBeFZm1ZM2w2GRy40Ew)";         container.style.backgroundSize = "30px 30px";         container.style.width = '30px';         container.style.height = '30px';          // container.onmouseover = function(){         //   container.style.backgroundColor = 'pink';         // }         // container.onmouseout = function(){         //   container.style.backgroundColor = 'white';         // }          container.onclick = function(){         document.getElementById('fileInput').click();           console.log('buttonClicked');         }          return container;       }     });      fileInput.onchange = function(e) {       debugger;       var bounds = new L.LatLngBounds(             new L.LatLng(-179.9999999999999716,-89.9999999999820091 ),             new L.LatLng(179.9999999999640465, 89.9999999999820091)           );              // var overlay = new L.imageOverlay("GRAY_50M_SR/GRAY_50M_SR.tif", bounds)             //   .addTo(map);   //           var  bounds = new L.LatLngBounds(         // new L.LatLng(40.71222,-74.22655),         // new L.LatLng(40.77394,-74.12544));              var overlay = new L.ImageOverlay("GRAY_50M_SR/GRAY_50M_SR.tif", bounds, {                         opacity: 0.5,                         interactive: true,                         attribution: '&amp;copy; A.B.B Corp.'                     });                     map.addLayer(overlay);       };   How can I load a GeoTIFF file in Leaflet from browser?
Is it possible to load a raster file (e.g. geotiff or erdas img) directly into a Leaflet map? If so, can you guide me to the correct documentation or method to do this? I am trying to do this with the imageOverlay() function in Leaflet currently.   var imageUrl = 'http://localhost/test/my_raster.tif',         imageBounds = [[30.430224, -87.193133], [30.435867, -87.185944]];         L.imageOverlay(imageUrl, imageBounds).addTo(map);    I am new to Leaflet.
Render semi-transparent volume with cycles I want to render an image of a fire in cycles, but as a png with a transparent background. Without a transparent background, the output image looks like this:    But as soon as I tick the "Transparent" checkbox under Render->Film, all the semi-transparent parts of the image are not rendered and it looks like this    which is clearly not what I want. I've tried to add a holdout shader or a transparent shader to my smoke domain material nodes, but it didn't help. I've only found answered questions for semi-transparent glass, but none for volumes. My node setup looks like this:    but the transparent shader doesn't do anything.  Has anyone an idea how to fix this?  Thanks  Edit: I've just changed the flow type to "Fire and Smoke" instead of "Fire" and now the semi-transparent parts render too, but I don't want the smoke. Conformal Maps onto the Unit Disc in $\mathbb{C}$ Say I have two points. One at $A = (0, 0)$ and another at $B = (0, 10)$. I wish to derive an equation for a line that, for any point $P$ on the line, would equal a set ratio for the distance $P$ to $A$ and $P$ to $B$.  This is easy if the predetermined ratio for $A:B$ is $1:1$. I would create a line from $A$ to $B$, find its midpoint, then create an orthogonal line at the midpoint. Then at any $P$ on the line I know that the ratio distances from $P$ to $A$ and $B$ will be $1:1$.  But what if the ratio for $A:B$ is something like $11:18$?  This is for a positioning algorithm I am implementing - not for homework :)  EDIT: Note - If an exact formula is not possible, an approximation of the line out to $\pm 200$ from $A$ or $B$ is acceptable as values further from $A$ and $B$ will not be utilized anyway. A linear equation for the final result/approximation is ideal for speed in running multiple computations. What ways could you create a data extension that contains all the subscribers (SubscriberKeys) that are currently “in” a Journey (Journey Builder)?  The Journey I would like to do this for is a complex activity with multiple decision branches resulting in multiple possible journey durations. For example; if the customer didn’t open Email1 after 2 days, then send Email2; else Exit Journey. If the customer didn’t open Email2 after 2 days, then send Email3; else Exit Journey. Wait 2 more days, then End Journey. The minimum journey duration for the above example is 2 days, while the maximum is 6 days.  Note that I don’t want a list of subscribers that “entered” a Journey, but a list of the ones that are “currently in” a Journey and have not yet exited. Answer must account for non-standard Journey exits including Unsubscribes/Contact Deletes, etc. I am trying to render a kitchen sink / Faucet    Here is another reference image of what I want   What I have got so far is this   Settings for World:  I have used an environment map HDRI with 0 saturation.  Material settings:  Triad with glossy, glass anisotropic and there mix shader combinations and the new principled bsdf shader too but didn't get the required result.  Studio lights: Followed multiple youtube tutorials on setting up studio lights in blender but the results were not what I wanted.    LEAVING CYCLES :  Decided to try some other software So, Downloaded Keyshot 5 but keyshot wasn't able to produce cycles like results LoL.  Not : I have always struggled to get professional quality product rendering in cycles      So now I'm back in cycles looking for help. How do I tell if a regular file does not exist in Bash? How to show also the name of the parent counter with cleveref? Consider the following piece of code:  \documentclass{book} \usepackage{cleveref} \usepackage{lipsum}  \begin{document}   \chapter{Chapter One}   \section{Section One.One}   \label{mysection}   \lipsum    \section{Section One.Two}   Please ignore \cref{mysection}.    \chapter{Chapter Two}   \section{Section Two.One}    As you may have noticed, \cref{mysection} is useless. \end{document}   By default, in both uses of \cref I get Section 1.1 as expected.   Is it possible to change the way the reference is shown in such a way that the second use of \cref above will print Section 1 of Chapter 1? i.e., naming the parent counter as well.   However, this should be done only outside the own chapter, so the first use of \cref in the above example should print Section 1.  This comes from a use case of a normative text where the document is divided in "articles" and "commas", and it is good to have references like "Comma 1 of Article 2" or "Article 2, Comma 1". Does the lens I just bought have a fungus? Missing Microsoft.Data.Services.Client version 5.6 on Azure Websites I am working on a large C++ project in Visual Studio 2008, and there are a lot of files with unnecessary #include directives. Sometimes the #includes are just artifacts and everything will compile fine with them removed, and in other cases classes could be forward declared and the #include could be moved to the .cpp file.  Are there any good tools for detecting both of these cases? How do I prevent Apache from answering requests for domains I don't host? 3d transforms on SVG element What are the different ways that a message can be displayed to a bash shell after a user logs in? I have a CentOS 5.7 VPS using bash as its shell that displays a branded greeting immediately after logging in via SSH. I've been trying to modify it, but can't seem to find where it is in the usual places. So far I've looked in the motd file and checked sshd_config for banner file settings. A banner file is not set.  Where else can I look for where the login message might be? We are currently working on a windows based application where users capture data. Some data is captured in a table where other data is captured in text blocks. Im currently faced with the dilemma of how to align contents specifically decimal values.  Editable cells in a grid are indicated with a pencil icon which disappears once in edit mode. You will notice that the table consists of various field types, decimals and text. So what should I do and why?  A> right align all cell content  B> left align all cell content  C> right align only decimal values in cells  D> Whatever else you can suggest Show that $\phi(n)=\frac{n}{2}$ if and only if $n=2^k$ for some positive integer k. I think I have it figured and would like to see if I am on the right track. Thank you. Does leaning (banking) help cause turning on a bicycle? Is it possible to make abstract classes in Python? When did The Doctor start running so much? Thanks to Netflix Streaming, I've been watching some random classic Doctor Who stories.  One thing that strikes me as different between the modern Who and old Who was that in modern Who, they do an awful lot of running.  It's become a sort of running gag that they've referenced in-universe.  In the classic Who I've seen, he tends to drive around quite a bit instead.  In addition, The Doctor in modern Who is incredibly reliant on his sonic screwdriver, which I often don't see at all in classic Who stories.  Did the Doctor running and the sonic screwdriver get introduced over time in classic Who, or were they both added as part of the modern Who revival? Is there any advantage to using pedal straps over clipless pedals? Other than not having to buy special biking shoes, is there any clear advantage to using pedal straps over clipless (aka clip-in or step-in) pedals? How can I make environment variables "exported" in a shell script stick around? I have multiple Amazon EC2 accounts and want to quickly be able to switch variables, such as $EC2_HOME, using a script.  I have have a shell script set up like this:  #!/bin/sh export EC2_HOME=/home/me/.ec2 echo $EC2_HOME   When I run the script I know that EC2_HOME is set, but I thought that using export would make the variable stick around after the script completed. It does not, as running echo $EC_HOME does not show anything.  I know this must be very rudimentary Linux scripting knowledge, but I don't know it. I tried looking for related questions without luck - so my apologies if this is a duplicate.