[Geoserver-devel] [JIRA] (GEOS-10086) The KML altitudeMode value should be defined not only in the LookAt section, but also under the geometry tags such as Polygon, Point under MultiGeometry.

MKemalS created an issue

GeoServer / ImprovementGEOS-10086

The KML altitudeMode value should be defined not only in the LookAt section, but also under the geometry tags such as Polygon, Point under MultiGeometry.

Issue Type:

ImprovementImprovement

Assignee:

Unassigned

Created:

03/Jun/21 1:24 AM

Priority:

MediumMedium

Reporter:

MKemalS

The KML altitudeMode value should be defined not only in the LookAt section, but also under the geometry tags such as Polygon, Point under MultiGeometry.
Currently, the altitudeMode value is defined in two ways.

  1. When altitudeMode is specified in format_options parameter, it affects altitudeMode under LookAt.
  2. When we give extrude:true value in format_options parameter, it is defined as <altitudeMode>relativeToGround</altitudeMode> under Geometry only. We should be able to change this value with a parameter from outside. For example, altitudeMode=absolute should be set.

KML format output currently served from 3D city model data is not displayed in 3D when opened in Google Earth. When we manually change the “altitudeMode” values to “absolute” in the content of the KML file, the objects gain a real 3D image.

For example, the output of a service like “http://localhost:8080/geoserver/deneme/wms/kml?service=wms&amp;request=GetMap&amp;version=1.1.1&amp;format=application/vnd.google-earth.kml+xml&amp;height=426&amp;width=768&amp;transparent=false&amp;srs=EPSG:4326&amp;format_options=extrude:true;altitudeMode:absolute”:

<LookAt>
<longitude></longitude>
<latitude>
</latitude>
<altitude></altitude>
<heading>0.0</heading>
<tilt>0.0</tilt>
<range>2.622813407704994</range>
<altitudeMode>absolute</altitudeMode>
</LookAt>

<MultiGeometry>
<Polygon>
<extrude>1</extrude>
<altitudeMode>relativeToGround</altitudeMode>
<outerBoundaryIs>
<LinearRing>
<coordinates>
*******</coordinates>
</LinearRing>
</outerBoundaryIs>
</Polygon>

Red bold marked place can be changed parametrically.

Add Comment

Add Comment

Get Jira notifications on your phone! Download the Jira Cloud app for Android or iOS


This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100165-sha1:f51af71)

Atlassian logo