[Geoserver-users] KML output for Google Earth

Hi all,

I have a problem with the KML output for Google Earth.
There are only 4 decimals for the coordinates and
i think that's not enough to display my data correct.
Here is a short part of the KML-File:

      <MultiGeometry>
        <Point>
          <coordinates>7.540198357238323,51.99248718351252,0</coordinates>
        </Point>
        <Polygon xmlns:gml="http://www.opengis.net/gml&quot;&gt;
          <outerBoundaryIs>
            <LinearRing>
              <coordinates xmlns:gml="http://www.opengis.net/gml&quot; decimal="." cs="," ts=" ">
                  7.5402,51.9924,0 7.5401,51.99250000000001,0 7.5401,51.99250000000001,0
                  7.5401,51.99250000000001,0 7.5401,51.99250000000001,0 7.5401,51.99250000000001,0
                  7.5401,51.99250000000001,0 7.5401,51.99250000000001,0 7.5402,51.99250000000001,0
                  7.5403,51.99260000000001,0 7.5403,51.99250000000001,0 7.5403,51.99250000000001,0
                  7.5403,51.9924,0 7.5403,51.9924,0 7.5403,51.9924,0 7.5402,51.9924,0
              </coordinates>
            </LinearRing>
          </outerBoundaryIs>
        </Polygon>
      </MultiGeometry>
      
I tried to configure it with the parameter "Number of Decimals" in
the Server Configuration. But it didn't work.
The output as WMS and GML (with more than 4 decimals) works fine.

Any suggestions ?

Thanks,
Norbert
______________________________________________________________
Verschicken Sie romantische, coole und witzige Bilder per SMS!
Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193

I've noticed the same thing. I will take a look at it and try and get you a fix today.

Brent Owens
(The Open Planning Project)

Norbert Dephoff wrote:

Hi all,

I have a problem with the KML output for Google Earth.
There are only 4 decimals for the coordinates and i think that's not enough to display my data correct.
Here is a short part of the KML-File:

      <MultiGeometry>
        <Point>
          <coordinates>7.540198357238323,51.99248718351252,0</coordinates>
        </Point>
        <Polygon xmlns:gml="http://www.opengis.net/gml&quot;&gt;
          <outerBoundaryIs>
            <LinearRing>
              <coordinates xmlns:gml="http://www.opengis.net/gml&quot; decimal="." cs="," ts=" ">
                  7.5402,51.9924,0 7.5401,51.99250000000001,0 7.5401,51.99250000000001,0 7.5401,51.99250000000001,0 7.5401,51.99250000000001,0 7.5401,51.99250000000001,0 7.5401,51.99250000000001,0 7.5401,51.99250000000001,0 7.5402,51.99250000000001,0 7.5403,51.99260000000001,0 7.5403,51.99250000000001,0 7.5403,51.99250000000001,0 7.5403,51.9924,0 7.5403,51.9924,0 7.5403,51.9924,0 7.5402,51.9924,0 </coordinates>
            </LinearRing>
          </outerBoundaryIs>
        </Polygon>
      </MultiGeometry>
      I tried to configure it with the parameter "Number of Decimals" in
the Server Configuration. But it didn't work.
The output as WMS and GML (with more than 4 decimals) works fine.

Any suggestions ?

Thanks,
Norbert
______________________________________________________________
Verschicken Sie romantische, coole und witzige Bilder per SMS!
Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Ivan brought this up. File a bug for it, and go ahead and fix it.

All we need to do is set the numDecimals on the geometry writer. I think we should just use the same global value that we let users set for GML. Check you GetFeatures for GML works, and just use the same call when KML calls the geometry encoder.

Chris

Brent Owens wrote:

I've noticed the same thing. I will take a look at it and try and get you a fix today.

Brent Owens
(The Open Planning Project)

Norbert Dephoff wrote:

Hi all,

I have a problem with the KML output for Google Earth.
There are only 4 decimals for the coordinates and i think that's not enough to display my data correct.
Here is a short part of the KML-File:

      <MultiGeometry>
        <Point>
          <coordinates>7.540198357238323,51.99248718351252,0</coordinates>
        </Point>
        <Polygon xmlns:gml="http://www.opengis.net/gml&quot;&gt;
          <outerBoundaryIs>
            <LinearRing>
              <coordinates xmlns:gml="http://www.opengis.net/gml&quot; decimal="." cs="," ts=" ">
                  7.5402,51.9924,0 7.5401,51.99250000000001,0 7.5401,51.99250000000001,0 7.5401,51.99250000000001,0 7.5401,51.99250000000001,0 7.5401,51.99250000000001,0 7.5401,51.99250000000001,0 7.5401,51.99250000000001,0 7.5402,51.99250000000001,0 7.5403,51.99260000000001,0 7.5403,51.99250000000001,0 7.5403,51.99250000000001,0 7.5403,51.9924,0 7.5403,51.9924,0 7.5403,51.9924,0 7.5402,51.9924,0 </coordinates>
            </LinearRing>
          </outerBoundaryIs>
        </Polygon>
      </MultiGeometry>
      I tried to configure it with the parameter "Number of Decimals" in
the Server Configuration. But it didn't work.
The output as WMS and GML (with more than 4 decimals) works fine.

Any suggestions ?

Thanks,
Norbert
______________________________________________________________
Verschicken Sie romantische, coole und witzige Bilder per SMS!
Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

!DSPAM:1003,44d2231489261804284693!

--
Chris Holmes
The Open Planning Project
http://topp.openplans.org