Ticket #3501 (closed enhancement: fixed)

Opened 3 years ago

Last modified 2 years ago

In a .map file, add a way to specify default kml output type( raster or vector)

Reported by: mraross Owned by: assefa
Priority: normal Milestone: 6.0 release
Component: Output-KML Version: unspecified
Severity: normal Keywords: kml
Cc:

Description

Add a way to specify a default kml output type (raster or vector). We need to set the default to raster since most of our map layers can't be released as vectors. We propose adding a kml_default_is_raster (true, false) element to the WEB element of a .map file. If true, a getMap request will generate a single ground overlay; false, a set of placemarks.

A kml_output_as_raster directive in a map layer should override the default.

Change History

Changed 3 years ago by mraross

  • component changed from MapServer C Library to Output-KML

Changed 3 years ago by mraross

  • type changed from defect to enhancement

Changed 2 years ago by chodgson

It seems to make more sense to me to just use the same “KML_OUTPUTASRASTER” “true” in the map-level metadata as is used in the layer-level metadata. All layers would fall back to the value set in the map if they didn't have their own setting.

I've written the code to do this change, just need to test it and I will add it here.

Changed 2 years ago by chodgson

It seems that the KML_OUTPUTASRASTER option is broken in trunk since the merge of the new 6.0 rendering code. I asked about this on mapserver irc and tbonfort suggested that Assefa was possibly working on this already. Assefa, is this true? I'd try to help but this seems pretty deep in the new rendering code which I am not familiar with.

Changed 2 years ago by assefa

I have committed the changes in r10805 and r10806

Changed 2 years ago by assefa

  • status changed from new to closed
  • resolution set to fixed

closing.

Note: See TracTickets for help on using tickets.