92 it.value()->prepare( fields );
106 columns.append( ddIt.value()->referencedColumns() );
110 QSet<QString> attributes;
111 QStringList::const_iterator it = columns.constBegin();
112 for ( ; it != columns.constEnd(); ++it )
114 attributes.insert( *it );
127 stringMap.insert( ddIt.key() +
"_expression", ddIt.value()->expression() );
168 renderPoint( QPointF( size.width() / 2, size.height() / 2 ), context );
184 if ( offsetExpression )
187 offsetX = offset.x();
188 offsetY = offset.y();
198 double c = cos( angle ), s = sin( angle );
199 return QPointF( offset.x() * c - offset.y() * s, offset.x() * s + offset.y() * c );
217 points << QPointF( 0, size.height() / 2 + 0.5 ) << QPointF( size.width(), size.height() / 2 + 0.5 );
229 foreach (
const QPolygonF& ring, *rings )
237 QPolygonF poly = QRectF( QPointF( 0, 0 ), QPointF( size.width() - 1, size.height() - 1 ) );
253 p->drawPolygon( points );
259 QPolygonF outerRing = points;
260 path.addPolygon( outerRing );
262 QList<QPolygonF>::const_iterator it = rings->constBegin();
263 for ( ; it != rings->constEnd(); ++it )
265 QPolygonF ring = *it;
266 path.addPolygon( ring );
275 QDomElement symbolizerElem = doc.createElement(
"se:PointSymbolizer" );
276 if ( !props.value(
"uom",
"" ).isEmpty() )
277 symbolizerElem.setAttribute(
"uom", props.value(
"uom",
"" ) );
278 element.appendChild( symbolizerElem );