[Qgis-developer] QgsRasterLayer::loadProviderLibrary: Failed to load
i am trying to load a simple tif file as a raster layer with my qtcreator, it was working fine with me before updating my ubuntu from 11.04 to 12.10 i keep getting QgsRasterLayer::loadProviderLibrary: Failed to load QgsRasterLayer * mypLayer = new QgsRasterLayer(src,base); if (mypLayer-isValid())/// always return invalid layer with ubuntu 12.10 but it is workin fine with ubuntu 11.04 { emit error(Layer is valid); } else { emit error(Layer is NOT valid); return; } how can i fix this problem ? ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
[Qgis-developer] customizing my own symbols to be drawn on top of the vector layer
hello everyone; i am using QGraphicsScene, QGraphicsPolygonItem, QGraphicsLineItem, QGraphicsEllipseItem and QGraphicsTextItem to draw my own customized symbols, polygons or circles on top of my vector layer. just have a look at the attached screen shot to have a complete idea for what am doing; i dont think i can add my graphic scene widget on top of my map canvas and even if i was able to am trying to draw these symbols on top of a vector layer to be able to adjust the symbols' location in case i triggered zoom in, out or pan; i dont want the symbols to be separated from my vector layer since ill be drawing my symbols according to specific coordinates on my raster layer which is my map; so any idea how can i do that ? attachment: waypoints.png___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] how can i use my own map tiles in qgis?
that didnt work for me, i tried to specify my main tiles directory and thats what i got: gdalbuildvrt does not support ungeoreferenced image. Skipping /home/FWTools-linux-x86_64-3.0.6/temp/6/41/36.png there was lot of erros since it is complaining about every single tile; i used gdal2tiles to converte my tiff file to tiles and there is an xml file called tilemapresource.xml with the followin content ?xml version=1.0 encoding=utf-8? TileMap version=1.0.0 tilemapservice=http://tms.osgeo.org/1.0.0; Titletemp.vrt/Title Abstract/Abstract SRSEPSG:900913/SRS BoundingBox minx=22.37058246975111 miny=50.8756619998 maxx=26.5132336000 maxy=56.70930444051041/ Origin x=22.37058246975111 y=50.8756619998/ TileFormat width=256 height=256 mime-type=image/png extension=png/ TileSets profile=mercator TileSet href=5 units-per-pixel=4891.96980937500030 order=5/ TileSet href=6 units-per-pixel=2445.98490468750015 order=6/ TileSet href=7 units-per-pixel=1222.99245234375007 order=7/ TileSet href=8 units-per-pixel=611.49622617187504 order=8/ TileSet href=9 units-per-pixel=305.74811308593752 order=9/ TileSet href=10 units-per-pixel=152.87405654296876 order=10/ TileSet href=11 units-per-pixel=76.43702827148438 order=11/ TileSet href=12 units-per-pixel=38.21851413574219 order=12/ TileSet href=13 units-per-pixel=19.10925706787109 order=13/ /TileSets /TileMap On Tue, Oct 2, 2012 at 2:43 AM, Alister Hood alister.h...@synergine.comwrote: Hi Leena, You never confirmed why you need to do this. Did you ever try RasterMiscellaneousBuild Virtual Raster (catalog)? Regards, Alister ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] how can i use my own map tiles in qgis?
okey this is really confusing i dont know if am in the right track i just need a direction where to start with; all what am trying to do is loading my own offline tiles into qgis to be able to zoom in and out pan ..etc instead of implementing everything from scratch; so this is all what i have been doing: 1) i converted my geotiff to tiles through gdal2tiles and i got my tiles which is a set of files, and as i mentioned in my last email this is how my folder looks like: = 5 (zoom level 5) == 20 (x) === 18.png (y) . . . = 13 (zoom level 13) == 5253 (x) === 4618.png (y) now i wanna know if i can load my tiles without using tilecache or mapserver coz as i said i dont need to view my map as a web based application; can u tell me how did you manage to make it work with the following xml file ? GDAL_WMS Service name=TMS ServerUrlfile:///mytiles/${z}/${x}/${y}.png/ServerUrl /Service DataWindow UpperLeftX-20037508.34/UpperLeftX UpperLeftY20037508.34/UpperLeftY LowerRightX20037508.34/LowerRightX LowerRightY-20037508.34/LowerRightY TileLevel18/TileLevel TileCountX1/TileCountX TileCountY1/TileCountY YOrigintop/YOrigin /DataWindow ProjectionEPSG:900913/Projection BlockSizeX256/BlockSizeX BlockSizeY256/BlockSizeY BandsCount3/BandsCount Cache / /GDAL_WMS what configuration did u use to make it work ? On Mon, Sep 24, 2012 at 5:14 PM, leena S qgis.dev0...@gmail.com wrote: ok now i am using Quantum gis 1.8.0 with gdal1.7.0 when i load my xml file with quantum gis using add raster layer icon, i get nothin; am still confused about gdal and wms server .. i dont know how does it work exactly; ServerUrlfile:///mytiles/${z}/${x}/${y}.png/ServerUrl this is how myTiles folder looks like starting from zoom lvl 5 to 13: = 5 (zoom level 5) == 20 (x) === 18.png (y) . . . = 13 (zoom level 13) == 5253 (x) === 4618.png (y) am i missin any configuration for my tiles ? i dont really know if wms is able to get the tiles this way; On Sun, Sep 23, 2012 at 1:38 PM, Nathan Woodrow madman...@gmail.comwrote: On Sun, Sep 23, 2012 at 7:26 PM, leena S qgis.dev0...@gmail.com wrote: thanks for your reply, i updated my xml file but all what i get is a black screen when i load my xml file as a raster layer in qgis; am usin qgis version 1.4.0 with gdal 1.7.0; my OS is ubuntu 11.04 For a start I would suggest updating to a newer version of QGIS. 1.4 is very very old. - Nathan ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] how can i use my own map tiles in qgis?
thanks for your reply, i updated my xml file but all what i get is a black screen when i load my xml file as a raster layer in qgis; am usin qgis version 1.4.0 with gdal 1.7.0; my OS is ubuntu 11.04 On Fri, Sep 21, 2012 at 1:07 PM, Marco Lechner - FOSSGIS e.V. marco.lech...@fossgis.de wrote: Hi Leena, try this - works fo rme but depends on QGIS/GDAL-version you use Marco GDAL_WMS Service name=TMS ServerUrlfile:///mytiles/${z}/${x}/${y}.png/ServerUrl !-- M$ Windows = file://C:/mytiles/${z}/${x}/${y}.png -- /Service DataWindow UpperLeftX-20037508.34/UpperLeftX UpperLeftY20037508.34/UpperLeftY LowerRightX20037508.34/LowerRightX LowerRightY-20037508.34/LowerRightY TileLevel18/TileLevel TileCountX1/TileCountX TileCountY1/TileCountY YOrigintop/YOrigin /DataWindow ProjectionEPSG:900913/Projection BlockSizeX256/BlockSizeX BlockSizeY256/BlockSizeY BandsCount3/BandsCount Cache / /GDAL_WMS Am Do 20 Sep 2012 15:19:32 CEST schrieb Ivan Mincik: On 09/20/2012 01:51 PM, leena S wrote: i understand that i can load tiles from any web server using gdal WMS; and i used http://www.gdal.org/frmt_wms.html to create my xml file; but instead of using google map or openstreet map tiles i wanna use my own tiles to create the raster layer; I am not sure if I understand You correctly. If You want to load multiple georeferenced images from Your local directory as one layer, You can use 'gdalbuildvrt' to create virtual raster and load it to QGIS. -- + FOSSGIS e.V. die unabhängige Hilfe bei freier GIS-Software und freien Geodaten http://www.fossgis.de + OSGeo Park auf der INTERGEO 2012 Besuchen Sie uns vom 09.-11.10.2012 in Halle 7 + ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
[Qgis-developer] how can i use my own map tiles in qgis?
i understand that i can load tiles from any web server using gdal WMS; and i used http://www.gdal.org/frmt_wms.html to create my xml file; but instead of using google map or openstreet map tiles i wanna use my own tiles to create the raster layer; i have tried to change the server url to localhost since i have all of my tiles locally GDAL_WMS Service name=TMS ServerUrlhttp://localhost/home/myTiles/${z}/${x}/${y}.png /ServerUrl /Service DataWindow UpperLeftX-20037508.34/UpperLeftX UpperLeftY20037508.34/UpperLeftY LowerRightX20037508.34/LowerRightX LowerRightY-20037508.34/LowerRightY TileLevel13/TileLevel TileCountX1/TileCountX TileCountY1/TileCountY YOrigintop/YOrigin /DataWindow ProjectionEPSG:4326/Projection BlockSizeX256/BlockSizeX BlockSizeY256/BlockSizeY BandsCount3/BandsCount Cache / /GDAL_WMS however when i load this xml file to quantum gis all what i get is a black screen; i am not really sure but is that the right way of doing it if i wanna use my own map tiles ? i appreciate any help or direction; thanks in advance; ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer