Opened 14 years ago
Closed 13 years ago
#3501 closed enhancement (fixed)
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 (6)
comment:1 by , 14 years ago
Component: | MapServer C Library → Output-KML |
---|
comment:2 by , 14 years ago
Type: | defect → enhancement |
---|
comment:3 by , 13 years ago
comment:4 by , 13 years ago
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.
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.