Hi all
I'm currently writing C++ code that I want to use via Python with SIP.
The following is a skeleton for my code:
/templateclass T
class MyClass
{
//MyClass//(QString s);
T* calculate();
}
class B
{
B();
void doStuff();
}
void
No, the constructor is available and correct.
If this wasn't the case, the code wouldn't have compiled when I remove
the templates and replace it with int.
On 2011/05/13 11:58 AM, Martin Dobias wrote:
On Fri, May 13, 2011 at 9:32 AM, GOO Creationsgoocreati...@gmail.com wrote:
Hi all
I'm
/11/2011 12:58 PM, Goo Creations wrote:
Hi
I've got a vector file (shp) with a bunch of points in it. I want to
load the points to the canvas with a specific color (not the random
color QGIS provides). I've tried a couple of tutorials, but the code
provided doesn't change the color
Hi all
I create a QgsVertexMarker and add it to the canvas:
*marker = QgsVertexMarker(self.iface.mapCanvas())
marker.setCenter(point)
marker.setColor(QColor(0,255,0))
marker.setIconSize(5)
marker.setIconType(QgsVertexMarker.ICON_CROSS)
marker.setPenWidth(3)
self.iface.mapCanvas().refresh()
*
Hi all
I'm doing the following to transform coordinates:
*ct = QgsCoordinateTransform()*
*ct.setSourceCrs(sourceCRS)*
*ct.setDestCRS(destinationCRS)*
*point1 = ct.transform(aPoint)*
Everything works fine, until the users enters coordinates that are invalid
for the source CRS. Qgis crashes with
Hello
I want to design my own icons for my QGIS plugin. These icons should fit in
with the QGIS theme. Is there any way I can get the individual components
(eg: the shape for the layer (raster or vector layer icon) or the + icon on
top of the add rsater layer)?
Christoph
Hi Paolo
I had the same problem with all Python plug-ins that used their own
QgsMapCanvas. There were some changes to the map canvas class and the
appropriate SIP files weren't updated. Here is a link to the ticket I've
created, it also contains a patch:
Ok, this was really easy, just 3 line of code.
Thank you very much for the help
On 2010/10/01 08:35 AM, Paolo Cavallini wrote:
Il 01/10/2010 04:38, Germán Carrillo ha scritto:
not sure if it's the same, but the Aaron Racicot's MirrorMap plugin does
something similar. Have a look at it:
Hello,
Is there any trick I can use to zoom into a canvas with a specific
centre AND a specific scale.
I have 2 map canvases, and I want to zoom into the same position and
scale on both canvases at the same time: If i zoom into canvas1 at
location (x,y) with factor 0.87, canvas2 should also