[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [marble] /: PNT: make coastline a LinearRing and use transparent brush where needed
From:       Thibaut Gridel <tgridel () free ! fr>
Date:       2014-01-03 19:37:05
Message-ID: E1VzAYL-0004Jd-6N () scm ! kde ! org
[Download RAW message or body]

Git commit 43438b6a5b5a31bd5d5211a976b93bdf77b277f9 by Thibaut Gridel.
Committed on 17/04/2013 at 21:25.
Pushed by tgridel into branch 'master'.

PNT: make coastline a LinearRing and use transparent brush where needed

M  +1    -0    data/maps/earth/precip-dec/precip-dec.dgml
M  +1    -0    data/maps/earth/precip-july/precip-july.dgml
M  +1    -0    data/maps/earth/schagen1689/schagen1689.dgml
M  +1    -0    data/maps/earth/temp-dec/temp-dec.dgml
M  +1    -0    data/maps/earth/temp-july/temp-july.dgml
M  +1    -1    src/plugins/runner/pnt/PntRunner.cpp

http://commits.kde.org/marble/43438b6a5b5a31bd5d5211a976b93bdf77b277f9

diff --git a/data/maps/earth/precip-dec/precip-dec.dgml b/data/maps/earth/precip-dec/precip-dec.dgml
index 7b0ceb7..3185d02 100644
--- a/data/maps/earth/precip-dec/precip-dec.dgml
+++ b/data/maps/earth/precip-dec/precip-dec.dgml
@@ -53,6 +53,7 @@
                 <vector name="pcoast">
                     <sourcefile> mwdbii/PCOAST.PNT </sourcefile>
                     <pen color="#555753" />
+                    <brush color="transparent" />
                 </vector>
                 <vector name="pdiffborder" feature="borders">
                     <sourcefile> mwdbii/PDIFFBORDER.PNT </sourcefile>
diff --git a/data/maps/earth/precip-july/precip-july.dgml b/data/maps/earth/precip-july/precip-july.dgml
index dd31f71..f400aaa 100644
--- a/data/maps/earth/precip-july/precip-july.dgml
+++ b/data/maps/earth/precip-july/precip-july.dgml
@@ -53,6 +53,7 @@
                 <vector name="pcoast">
                     <sourcefile> mwdbii/PCOAST.PNT </sourcefile>
                     <pen color="#555753" />
+                    <brush color="transparent" />
                 </vector>
                 <vector name="pdiffborder" feature="borders">
                     <sourcefile> mwdbii/PDIFFBORDER.PNT </sourcefile>
diff --git a/data/maps/earth/schagen1689/schagen1689.dgml b/data/maps/earth/schagen1689/schagen1689.dgml
index 7b1a010..4fceb0e 100644
--- a/data/maps/earth/schagen1689/schagen1689.dgml
+++ b/data/maps/earth/schagen1689/schagen1689.dgml
@@ -51,6 +51,7 @@
                 <vector name="pcoast" feature="coastlines">
                     <sourcefile> mwdbii/PCOAST.PNT </sourcefile>
                     <pen color="#ffff00" />
+                    <brush color="transparent" />
                 </vector>
                 <vector name="rivers" feature="waterbodies">
                     <sourcefile> mwdbii/RIVER.PNT </sourcefile>
diff --git a/data/maps/earth/temp-dec/temp-dec.dgml b/data/maps/earth/temp-dec/temp-dec.dgml
index 28cb661..21f081c 100644
--- a/data/maps/earth/temp-dec/temp-dec.dgml
+++ b/data/maps/earth/temp-dec/temp-dec.dgml
@@ -53,6 +53,7 @@
                 <vector name="pcoast">
                     <sourcefile> mwdbii/PCOAST.PNT </sourcefile>
                     <pen color="#555753" />
+                    <brush color="transparent" />
                 </vector>
                 <vector name="pdiffborder" feature="borders">
                     <sourcefile> mwdbii/PDIFFBORDER.PNT </sourcefile>
diff --git a/data/maps/earth/temp-july/temp-july.dgml b/data/maps/earth/temp-july/temp-july.dgml
index 623eaa9..887a3a4 100644
--- a/data/maps/earth/temp-july/temp-july.dgml
+++ b/data/maps/earth/temp-july/temp-july.dgml
@@ -54,6 +54,7 @@
                 <vector name="pcoast">
                     <sourcefile> mwdbii/PCOAST.PNT </sourcefile>
                     <pen color="#555753" />
+                    <brush color="transparent" />
                 </vector>
                 <vector name="pdiffborder" feature="borders">
                     <sourcefile> mwdbii/PDIFFBORDER.PNT </sourcefile>
diff --git a/src/plugins/runner/pnt/PntRunner.cpp b/src/plugins/runner/pnt/PntRunner.cpp
index bc3a068..acbccf3 100644
--- a/src/plugins/runner/pnt/PntRunner.cpp
+++ b/src/plugins/runner/pnt/PntRunner.cpp
@@ -108,7 +108,7 @@ void PntRunner::parseFile( const QString &fileName, DocumentRole role = UnknownD
             /* header represents start of coastline */
             placemark = new GeoDataPlacemark;
             document->append( placemark );
-            placemark->setGeometry( new GeoDataLineString );
+            placemark->setGeometry( new GeoDataLinearRing );
         }
         else if ( header < 4000 ) {
             /* header represents start of country border */

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic