<div dir="ltr"><div><div><div>I don't know if this can be useful, but I coded a geojson parser ( marble/src/plugins/runner/json/JsonParser.cpp ) that transforms GeoJSON geometries to Marble geometries.<br><br>It is thought to receive a geojson file like this one for example (<a href="http://geojson.org/geojson-spec.html#examples">http://geojson.org/geojson-spec.html#examples</a>) as it will try to find the geometries inside a json array called "features".<br>
<br></div>PostGIS has a function ST_AsGeoJSON which returns the geometry in that format.<br><br></div>I don't know if the way you have your system is suitable to create a json string with all the geometries you need and send it to the JsonParser or something like that.<br>
</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-02-10 11:45 GMT+01:00 Knut Krause <span dir="ltr"><<a href="mailto:knut.krause@lagom.de" target="_blank">knut.krause@lagom.de</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I have a PostGIS database with geometries. Now I'd like to do some computation<br>
on them. For my core algorithm I need the polygons in raster format. So I<br>
would be great if I could somehow use marble to draw my geometries on a flat<br>
surface like QImage. To show the result of my algorithm though I'd like to<br>
render a path on a plain marble widget.<br>
<br>
Is it possible to use marble for that? Right now I use GDAL to transform the<br>
geometry from WKB to QPolygonF but that involeves a lot of number crunching<br>
myself to get the positions right and I fear I'm not smart enough to cope with<br>
projections correctly.<br>
<br>
I thought something like<br>
<br>
PostGIS -> <magic> -> GeoPainter -> QImage<br>
<br>
would be great to render a set of geometries on an image as big as the<br>
bounding box of the geometries. Anyone here an idea if this works?<br>
<br>
<br>
Knut<br>
_______________________________________________<br>
Marble-devel mailing list<br>
<a href="mailto:Marble-devel@kde.org">Marble-devel@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/marble-devel" target="_blank">https://mail.kde.org/mailman/listinfo/marble-devel</a><br>
</blockquote></div><br><br clear="all"><br>-- <br><div><font color="#666666">Ander Pijoan Lamas<br>Research Assistant, Deustotech<br></font></div><div><font color="#666666">Computer Science Engineer<br></font></div><div>
<font color="#666666">University of Deusto<br><br></font></div><div><font color="#666666">E-mail: </font><a href="mailto:ander.pijoan@deusto.es" target="_blank"><font color="#666666">ander.pijoan@deusto.es</font></a></div>
<div><font color="#666666">Phone: +34 664471228<br>in: <a href="http://www.linkedin.com/profile/view?id=162888312" target="_blank">http://www.linkedin.com/profile/view?id=162888312</a><br></font></div>
</div>