Re: [Qgis-developer] QGIS server ignores optional SVG symbols path
I guess the issue was resolved. Look at this tickets. http://hub.qgis.org/issues/10327 and this http://hub.qgis.org/issues/8664 You should define one or more environment variables. for path. We use this approach succesfully. A. Il 14/08/2014 17:54, Alessandro Pasotti ha scritto: Hi, I noticed that when I use SVG symbols located in an optional path as set in "Settings->Options->System->SVG Paths" the symbols are not found from QGIS server. The solution would be to add such information (currently missing) to the project file, because this is mandatory for the server to locate the symbols. Should I file a ticket? ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
[Qgis-developer] QGIS server ignores optional SVG symbols path
Hi, I noticed that when I use SVG symbols located in an optional path as set in "Settings->Options->System->SVG Paths" the symbols are not found from QGIS server. The solution would be to add such information (currently missing) to the project file, because this is mandatory for the server to locate the symbols. Should I file a ticket? -- Alessandro Pasotti w3: www.itopen.it ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Plugins mandatory metadata
Sorry, I accidentally didn't send it the to qgis-community-team ML initially. Who could fix it? I'm not familiar with the webpage stuff. Best regards, Borys Dnia środa, 13 sierpnia 2014 21:50:45 Paolo Cavallini pisze: > IMHO they should be. > Thanks. > > On 13 agosto 2014 21:36:45 CEST, Borys Jurgiel wrote: > >Hi, > > > >Maxim discovered that in this document [1] homepage, repository and > >tracker > >tags are not mandatory. Shouldn't we fix it? > > > > > >Best regards, > >Borys > > > > > >[1] > >http://docs.qgis.org/testing/en/docs/pyqgis_developer_cookbook/plugins.html > >#plugin-metadata ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] WMS uncorrect rendering using "Simple Rendering" method
created a simple script isolating the rendering phase reveal that the problem seems internal to the plugin thank you Luigi Pirelli (luigi.pire...@faunalia.it - lui...@gmail.com) this script works from PyQt4.QtCore import * from PyQt4.QtGui import * wms=QgsRasterLayer("crs=EPSG:3003&format=image/png&layers=rt_ofc.10k13&styles=&url=http://www502.regione.toscana.it/wmsraster/com.rt.wms.RTmap/wms?map%3Dwmsofc%26";, "nome", "wms") QgsMapLayerRegistry.instance().addMapLayers([wms]) # create image size = QSize(800,600) img = QPixmap(size) img.fill(QColor(255, 255, 255, 255)) mainCanvas = iface.mapCanvas() extent = mainCanvas.extent() mainRenderer = mainCanvas.mapRenderer() mapRenderer = QgsMapRenderer() mapRenderer.setOutputSize( size, img.logicalDpiX() ) mapRenderer.setDestinationCrs( mainRenderer.destinationCrs() ) mapRenderer.setMapUnits( mainRenderer.mapUnits() ) mapRenderer.setProjectionsEnabled( mainRenderer.hasCrsTransformEnabled() ) layerIds = [wms.id()] # set layer set mapRenderer.setLayerSet(layerIds) mapRenderer.setExtent(extent) extent.scale( float(1000) / mapRenderer.scale() ) render.setExtent(extent) # create painter p = QPainter() p.begin(img) # do the rendering mapRenderer.render(p) p.end() del p mapRenderer.deleteLater() del mapRenderer # save image img.save("/tmp/render.png","png") On 13 August 2014 19:22, Luigi Pirelli wrote: > Hi > > I've a problem rendering WMS usign "simple rendering" as in: > http://docs.qgis.org/2.2/en/docs/pyqgis_developer_cookbook/composer.html#simple-rendering > > I noticed that WMS calls during rendering add an uncorrect dpi > resolution parameter set to 0 > and this value is set by this call: > https://github.com/qgis/QGIS/blob/master/src/core/raster/qgsrasterlayerrenderer.cpp#L158 > > commenting that line rendering is correct, but in this moment I don't > know If this call is wrong or I'm wrong forgetting to set something in > the renderContext. > > my code is here: > https://github.com/faunalia/rt_omero/blob/2.0/SchedaEdificio.py#L315 > > dpi value is set correctly here: > https://github.com/faunalia/rt_omero/blob/2.0/SchedaEdificio.py#L326 > > but its' value is overridden with 0 during rendering all the layers. > > Please help me to understand if it's a bug or my fault > > Thank you, Luigi Pirelli (luigi.pire...@faunalia.it - lui...@gmail.com) > > NOTE: > render is ok using saveAsImage method in mapCanvas as in: > https://github.com/faunalia/rt_omero/blob/2.0/SchedaEdificio.py#L227 > > p.s I added Martin Dobias in cc because is the author of: > https://github.com/qgis/QGIS/blob/master/src/core/raster/qgsrasterlayerrenderer.cpp#L158 ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Regarding linear transformation in Georeferencer
Dear Sajid, checking the source of the plugin I realized that different scales are used in easting and northing direction. So the formulas look like: E' = Eoffset + Escale * E N' = Noffset - Nscale * N The minus in N formula is because of the different axis direction in the screen coordinates and map coordinates. The four unknowns are calculated from a least squares estimation. Regards, Zoltan On Wed, 13 Aug 2014, sajid pareeth wrote: Hi Zortan Thank you for the reply. Would be great to know, how this Offsets and scale is calculated from a set of GCP's. Any idea? Regards Sajid On Wed, Aug 13, 2014 at 3:30 PM, Siki Zoltan wrote: Dear Sajid, linear transformation (from my practice) use three unknowns offset (Easting, Northing) and scale. No rotational angle. The linear is not a good name for it. E' = Eoffset + scale * E N' = Noffset + scale * N Zoltan On Wed, 13 Aug 2014, sajid pareeth wrote: Hi, Can anyone give me hints on statistical background behind linear transformation in Georeferencer plugin? I want to know the formulae used to calculate the residuals while using linear translation. Any related paper/material on which it is developed?? Thanks and Regards Sajid -- Sajid Pareeth PhD Student http://gis.cri.fmach.it/pareeth/ Fondazione Edmund Mach Research and Innovation Centre GIS and Remote Sensing Unit/Limnology and River ecology Via Mach 1, 38010 San Michele all'Adige (TN) - Italy Phone +39 461 615 669 spare...@gmail.com sajid.pare...@fmach.it skype: spareeth -- Sajid Pareeth http://gis.cri.fmach.it/pareeth/ Fondazione Edmund Mach Research and Innovation Centre GIS and Remote Sensing Unit/Limnology and River ecology Via Mach 1, 38010 San Michele all'Adige (TN) - Italy Phone +39 461 615 669 spare...@gmail.com sajid.pare...@fmach.it skype: spareeth ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer