[Qgis-user] styling a KML/KMZ file using QGIS?

John C. Tull john.tull at wildnevada.org
Tue Apr 19 14:28:15 PDT 2011


Hi,

The plugin does not build on the mac. Here is the error output:

[ 96%] Generating ui_qgskmlsettingsdialogbase.h
[ 96%] Generating moc_qgis2google.cxx
[ 96%] Generating moc_qgsgoogleearthtool.cxx
[ 96%] Generating moc_qgskmlconverter.cxx
/Users/jctull/sources/qgis/trunk/src/plugins/qgis2google2/qgskmlconverter.h:0: Warning: No relevant classes found. No output generated.
[ 96%] Generating moc_qgskmlsettingsdialog.cxx
[ 96%] Generating qrc_qgis2google.cxx
[ 96%] Building CXX object src/plugins/qgis2google2/CMakeFiles/qgis2googleplugin.dir/qgis2google.cpp.o
[ 96%] Building CXX object src/plugins/qgis2google2/CMakeFiles/qgis2googleplugin.dir/qgsgoogleearthtool.cpp.o
[ 97%] Building CXX object src/plugins/qgis2google2/CMakeFiles/qgis2googleplugin.dir/qgskmlconverter.cpp.o
In file included from /Users/jctull/sources/qgis/trunk/src/plugins/qgis2google2/qgskmlconverter.cpp:5:
/Users/jctull/sources/qgis/trunk/src/plugins/qgis2google2/../../core/qgsgeometry.h:25:20: error: geos_c.h: No such file or directory
In file included from /Users/jctull/sources/qgis/trunk/src/plugins/qgis2google2/qgskmlconverter.cpp:5:
/Users/jctull/sources/qgis/trunk/src/plugins/qgis2google2/../../core/qgsgeometry.h:103: error: ‘GEOSGeometry’ has not been declared
/Users/jctull/sources/qgis/trunk/src/plugins/qgis2google2/../../core/qgsgeometry.h:123: error: ISO C++ forbids declaration of ‘GEOSGeometry’ with no type
/Users/jctull/sources/qgis/trunk/src/plugins/qgis2google2/../../core/qgsgeometry.h:123: error: expected ‘;’ before ‘*’ token
/Users/jctull/sources/qgis/trunk/src/plugins/qgis2google2/../../core/qgsgeometry.h:458: error: ISO C++ forbids declaration of ‘GEOSGeometry’ with no type
/Users/jctull/sources/qgis/trunk/src/plugins/qgis2google2/../../core/qgsgeometry.h:458: error: expected ‘;’ before ‘*’ token
/Users/jctull/sources/qgis/trunk/src/plugins/qgis2google2/../../core/qgsgeometry.h:494: error: expected ‘,’ or ‘...’ before ‘*’ token
/Users/jctull/sources/qgis/trunk/src/plugins/qgis2google2/../../core/qgsgeometry.h:495: error: ISO C++ forbids declaration of ‘GEOSCoordSequence’ with no type
/Users/jctull/sources/qgis/trunk/src/plugins/qgis2google2/../../core/qgsgeometry.h:516: error: ‘GEOSGeometry’ has not been declared
/Users/jctull/sources/qgis/trunk/src/plugins/qgis2google2/../../core/qgsgeometry.h:519: error: ‘GEOSGeometry’ has not been declared
/Users/jctull/sources/qgis/trunk/src/plugins/qgis2google2/../../core/qgsgeometry.h:522: error: expected ‘,’ or ‘...’ before ‘*’ token
/Users/jctull/sources/qgis/trunk/src/plugins/qgis2google2/../../core/qgsgeometry.h:522: error: ISO C++ forbids declaration of ‘GEOSGeometry’ with no type
/Users/jctull/sources/qgis/trunk/src/plugins/qgis2google2/../../core/qgsgeometry.h:529: error: ISO C++ forbids declaration of ‘GEOSGeometry’ with no type
/Users/jctull/sources/qgis/trunk/src/plugins/qgis2google2/../../core/qgsgeometry.h:529: error: expected ‘;’ before ‘*’ token
/Users/jctull/sources/qgis/trunk/src/plugins/qgis2google2/../../core/qgsgeometry.h:536: error: ISO C++ forbids declaration of ‘GEOSGeometry’ with no type
/Users/jctull/sources/qgis/trunk/src/plugins/qgis2google2/../../core/qgsgeometry.h:536: error: expected ‘;’ before ‘*’ token
/Users/jctull/sources/qgis/trunk/src/plugins/qgis2google2/../../core/qgsgeometry.h:540: error: ISO C++ forbids declaration of ‘GEOSGeometry’ with no type
/Users/jctull/sources/qgis/trunk/src/plugins/qgis2google2/../../core/qgsgeometry.h:540: error: expected ‘;’ before ‘*’ token
/Users/jctull/sources/qgis/trunk/src/plugins/qgis2google2/../../core/qgsgeometry.h:544: error: expected ‘,’ or ‘...’ before ‘*’ token
/Users/jctull/sources/qgis/trunk/src/plugins/qgis2google2/../../core/qgsgeometry.h:544: error: ISO C++ forbids declaration of ‘GEOSGeometry’ with no type
/Users/jctull/sources/qgis/trunk/src/plugins/qgis2google2/../../core/qgsgeometry.h:550: error: expected ‘,’ or ‘...’ before ‘*’ token
/Users/jctull/sources/qgis/trunk/src/plugins/qgis2google2/../../core/qgsgeometry.h:550: error: ISO C++ forbids declaration of ‘GEOSGeometry’ with no type
/Users/jctull/sources/qgis/trunk/src/plugins/qgis2google2/../../core/qgsgeometry.h:553: error: expected ‘,’ or ‘...’ before ‘*’ token
/Users/jctull/sources/qgis/trunk/src/plugins/qgis2google2/../../core/qgsgeometry.h:553: error: ISO C++ forbids declaration of ‘GEOSGeometry’ with no type
/Users/jctull/sources/qgis/trunk/src/plugins/qgis2google2/../../core/qgsgeometry.h:556: error: ‘GEOSGeometry’ has not been declared
/Users/jctull/sources/qgis/trunk/src/plugins/qgis2google2/../../core/qgsgeometry.h:558: error: ‘GEOSGeometry’ was not declared in this scope
/Users/jctull/sources/qgis/trunk/src/plugins/qgis2google2/../../core/qgsgeometry.h:558: error: template argument 1 is invalid
/Users/jctull/sources/qgis/trunk/src/plugins/qgis2google2/../../core/qgsgeometry.h:573: error: expected ‘,’ or ‘...’ before ‘*’ token
/Users/jctull/sources/qgis/trunk/src/plugins/qgis2google2/../../core/qgsgeometry.h:574: error: ISO C++ forbids declaration of ‘GEOSGeometry’ with no type
make[2]: *** [src/plugins/qgis2google2/CMakeFiles/qgis2googleplugin.dir/qgskmlconverter.cpp.o] Error 1
make[1]: *** [src/plugins/qgis2google2/CMakeFiles/qgis2googleplugin.dir/all] Error 2
make: *** [all] Error 2

Regards,
John

On Apr 18, 2011, at 6:49 PM, maning sambale wrote:

> You can use the qgis2google plugin, but I don't think it can extrude
> polygons as shown in the link you provided.
> 
> http://gis-lab.info/qa/qgis2google-eng.html
> 
> You need to compile  from source if you use linux or mac.
> 
> On Tue, Apr 19, 2011 at 6:16 AM, Ryan Dalton <ryankdalton at gmail.com> wrote:
>> I was wondering if QGIS (or any plugins) allow you to "style" a layer
>> (shapefile in my case), and then export the shapefile and style into a
>> KML/KMZ that will allow the user to open the KML/KMZ in Google Earth and see
>> the layer symbolized the same way that it looked in QGIS.  Whenever I export
>> to KML and load into Google Earth, I only get the online boundaries in a
>> single color.
>> 
>> Example, unique colors of US States where each state is a different color.
>> It looks like the Shape2KML tool does this, but I'm wondering if this type
>> of function has been implemented in QGIS.  See examples here for a better
>> visual:
>> http://www.zonums.com/shp2kml.html
>> 
>> Thanks.
>> 
>> _______________________________________________
>> Qgis-user mailing list
>> Qgis-user at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/qgis-user
>> 
>> 
> 
> 
> 
> -- 
> cheers,
> maning
> ------------------------------------------------------
> "Freedom is still the most radical idea of all" -N.Branden
> wiki: http://esambale.wikispaces.com/
> blog: http://epsg4253.wordpress.com/
> ------------------------------------------------------
> _______________________________________________
> Qgis-user mailing list
> Qgis-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-user




More information about the Qgis-user mailing list