Re: [Qgis-user] making mistakes with raster calculator
Hi, The result of you operation will give you a raster with 0 (does not correspond ) and 1 (does correspond).nbsp; Then you need to multiply result that by 5. You can do it in one shot such as (raster lt; 2)*5.nbsp; If you do (raster lt;2)*raster, the results (1) will be multiplied by the original values of the raster. All other value will be multiplied by 0. Nicolas Cadieux M.Sc. Les Entreprises Arch#233;otec inc.#160; 8548, rue Saint-Denis Montr#233;al H2P 2H2 T#233;l#233;phone:#160;514.381.5112 #160;Fax: 514.381.4995 www.archeotec.ca Le 2015-04-08 18:30, quot;Giacomo Fontanelli-2 [via OSGeo.org] quot; lt;ml-node+s1560n5200510...@n6.nabble.comgt; a écrit : Dear forum I use QGIS 2.8.1. I have a raster map, Float32, pixel values range from -0.7 to 1. I Would like to make a map with pixel having only two values: pixels with values lt;#61; 0 should be 0 pixels with values gt; 0 should be 5. the sintax ( #34;3_NDFI#64;1#34; lt;#61; 0 ) #61;0 AND ( #34;3_NDFI#64;1#34; gt; 0 ) #61;5 doesn#39;t work because it produces a map with only 0 values. In order to reach my goal I must do ( #34;3_NDFI#64;1#34; lt;#61; 0 ) #61;0 AND ( #34;3_NDFI#64;1#34; gt; 0 ) #61;1 then multiply result by 5. What#39;s the problem? Is it possible to fulfil the purpose with only one raster operation? Thank you very much ___ Qgis-user mailing list [hidden email] http://lists.osgeo.org/mailman/listinfo/qgis-user If you reply to this email, your message will be added to the discussion below: http://osgeo-org.1560.x6.nabble.com/making-mistakes-with-raster-calculator-tp5200510.html To start a new topic under Quantum GIS - User, email ml-node#43;s1560n4125267h38#64;n6.nabble.com To unsubscribe from Quantum GIS - User, click here . NAML -- View this message in context: http://osgeo-org.1560.x6.nabble.com/making-mistakes-with-raster-calculator-tp5200510p5200514.html Sent from the Quantum GIS - User mailing list archive at Nabble.com.___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
[Qgis-user] making mistakes with raster calculator
Dear forum I use QGIS 2.8.1. I have a raster map, Float32, pixel values range from -0.7 to 1. I Would like to make a map with pixel having only two values: pixels with values = 0 should be 0 pixels with values 0 should be 5. the sintax ( 3_NDFI@1 = 0 ) =0 AND ( 3_NDFI@1 0 ) =5 doesn't work because it produces a map with only 0 values. In order to reach my goal I must do ( 3_NDFI@1 = 0 ) =0 AND ( 3_NDFI@1 0 ) =1 then multiply result by 5. What's the problem? Is it possible to fulfil the purpose with only one raster operation? Thank you very much ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
[Qgis-user] Changing data size in attribute table
HelloWhat is the quickest and easiest way to change the size of a column in the attribute table in QGIS?Best regards,Ammar ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] Spatial join from WMS raster layer
You can't with standard tools. The identify on a wms layer triggers a web request to the origin server, which responds the data for that location. A script could be generated to query one request for each point and parse/save the replies (maybe with throttling managenent in case the server denies query bombing) but I'm not aware of a plugin thats does it already. It can be written in a few minutes, but I can't help you right now... Maybe next days. giovanni Il 31/mar/2015 16:28 Joris Hintjens joris...@gmail.com ha scritto: Hello, I have a vector layer (points) and a wms layer. I can get info from any point in the wms , and get as answer a html or text table with the properties of that point. How can I copy those values into a vector layer? From vector layer tovectorlayer, This can be done with Spatial Join. What about a raster layer as data source? Thanks Joris ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
[Qgis-user] QGIS 2.6.0-Brighton : problem using signed 8-bit data type bil
Dear all, I have a problem with signed 8-bit data type esri bil raster. I have the following header .hdr nrows 1791 ncols 1615 nbands 1 nbits 8 byteorder I layout bil skipbytes 0 ulxmap 9.6841668799 ulymap 44.4760415829 xdim 0.001668 ydim 0.001251 pixeltype SIGNEDINT but when I read the bil with QGIS 2.6.0 the result is an unsigned integer. Where is the problem? Please may you help me? Dario ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] QGIS 2.6.0-Brighton : problem using signed 8-bit data type bil
On 08-04-15 11:08, dario p wrote: Dear all, I have a problem with signed 8-bit data type esri bil raster. I have the following header .hdr nrows 1791 ncols 1615 nbands 1 nbits 8 byteorder I layout bil skipbytes 0 ulxmap 9.6841668799 ulymap 44.4760415829 xdim 0.001668 ydim 0.001251 pixeltype SIGNEDINT but when I read the bil with QGIS 2.6.0 the result is an unsigned integer. Where is the problem? Please may you help me? Hi Dario, while 2.6 is used by a lot of people most precious dev-time will go into QGIS 2.8 (as it is a Long Term Release) and in current development version (2.9). so best is if you try to test this problem in QGIS 2.8 or later, and if it is still there, create an issue [0] for this WITH a small dataset so it is easy to test for others. It helps when somebody else confirms your issue, (who even is not able to fix this) to convince a dev to put energy in it. Sorry I cannot help you further. Regards, Richard Duivenvoorde [0] http://www.qgis.org/en/site/getinvolved/development/index.html#bugs-features-and-issues ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] drawing circles in Qgis2,8
Thanks for all the suggestions about this problem. I am now facing the problem that when I try to upload the sites through the add repository button I get a message that the network has timed out. I've tried this in several locations using different WiFi services so I'm wondering if there is either a problem with my laptop or a general problem with Qgis 2.8? Any advice please? On 4/6/15, coder.tuxfamily co...@tuxfamily.org wrote: Hi, RectanglesOvalsDigitizing aren't maintend I did a fork named CADDigitize which works with polygon or polyline. Also there is more tools (and more next months). Regards. Le 06.04.2015 00:19, Carlos Carbajal a écrit : Hi Peter, The recommended plugin (Rectangles ovals Digitizing)only works when the geometry is a polygon. My suggestion is generating a buffer to the points regards, Carlos Carbajal El 05/04/2015 a las 16:22, Peter Aherne escribió: Thanks for these suggestions, however, my plugin section informs me that these are unavailable. I have the feeling that there is either a problem with my qgis or with 2.8 in particular. Any ideas,please? On 4/5/15, Alexandre Netosenhor.n...@gmail.com wrote: Try this: http://anitagraser.com/2011/10/21/easy-rectangles-circles-and-ellipses-in-qgis/ Best regards, Alexandre Neto Em 05/04/2015 10:30, Peter Ahernepeterfahe...@gmail.com escreveu: Hi, I am trying to draw circles based on some GPS points that I have uploaded. Creating a new .shp as a polygon will only create a shape based on the number of points. How can I draw a circle based on these points? It is very easy in ArcGIS but I can't find how to do it in Qgis. Please help? Thanks, Pete. ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] QGIS 2.6.0-Brighton : problem using signed 8-bit data type bil
Could you share an excerpt of your raster? giovanni 2015-04-08 11:08 GMT+02:00 dario p dario_par...@hotmail.com: Dear all, I have a problem with signed 8-bit data type esri bil raster. I have the following header .hdr nrows 1791 ncols 1615 nbands 1 nbits 8 byteorder I layout bil skipbytes 0 ulxmap 9.6841668799 ulymap 44.4760415829 xdim 0.001668 ydim 0.001251 pixeltype SIGNEDINT but when I read the bil with QGIS 2.6.0 the result is an unsigned integer. Where is the problem? Please may you help me? Dario ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user -- Giovanni Allegri http://about.me/giovanniallegri Gis3W - http://gis3w.it Ikare - http://ikare.it Twitter: https://twitter.com/_giohappy_ blog: http://blog.spaziogis.it GEO+ geomatica in Italia http://bit.ly/GEOplus ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
[Qgis-user] How to convert points distribution toward surface information?
Good afternoon, I have a points cover representing different bus and train stops. I applied a categorized symbology : Each colour represents a class of value (field regarding time acess from a starting point) Iwould like represents this time information thanks to different polygons, (Because in a 2nd time i have to intersects this information with another POINTS cover ) Could you throw light for me? Rasterize this data would be a interesting way? I tried vector - convex envelope . But The result is not what I am looking for ... the spatial distribution of points seems to be to complex to convert the points cover toward convex envelope. I paste below a SS of my current POINT data http://osgeo-org.1560.x6.nabble.com/file/n5200415/Pts_TC.jpg Thanks. -- View this message in context: http://osgeo-org.1560.x6.nabble.com/How-to-convert-points-distribution-toward-surface-information-tp5200415.html Sent from the Quantum GIS - User mailing list archive at Nabble.com. ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
[Qgis-user] running external script from qgis plugin
Hi! It took me a (looong) while to call an external script from a QGIS plugin on my Windows machine at work. I'm not sure if this was a problem with the two Python interpreters - from QGIS and from ArcGIS or what so ever... It worked with no issues on my linux machine. The only way I managed to run my external script (it imports ogr, osr, and shapefile) is to dynamically create and run a cmd-batch script according to OSGeo4W.bat which I used as blueprint: Content of my batch file: @echo off call C:\pathTo\QGIS Brighton 2.6.1-1\bin\o4w_env.bat @echo on cmd /c python C:\pathToMy\externalScript.py -i C:\pathToMy\inputFile.dat -o C:\pathToMy\outputFile.shp exit Is there an easier way to do it? Background of having the core functionallity in an external script is to make it usable also from command line or (if possible) from ArcGIS. Thank you, Torsten ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
[Qgis-user] Spatial join from WMS raster layer
Hello, I have a vector layer (points) and a wms layer. I can get info from any point in the wms , and get as answer a html or text table with the properties of that point. How can I copy those values into a vector layer? From vector layer to vector layer, this can be done with Spatial Join. What about a raster layer as data source? Thanks Joris ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] Spatial join from WMS raster layer
Hi Joris, I'm not quite sure if this will work with wms-layers too. But I applied a plugin called 'point sampling tool' (I guess thats the name) to sample raster values at point locations. If you want a text based file, this would be a possible way: http://gis.stackexchange.com/questions/8844/get-list-of-coordinates-for-points-in-a-layer However, I remember, there are more options to export beside shape and csv, e.g. GML... Torsten Am 08-Apr-2015 20:49:13 +0200 schrieb joris...@gmail.com: Hello, I have a vector layer (points) and a wms layer. I can get info from any point in the wms , and get as answer a html or text table with the properties of that point. How can I copy those values into a vector layer? From vector layer to vector layer, this can be done with Spatial Join. What about a raster layer as data source? Thanks Joris ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user