Hi Mano,
Using GeoServer 2.4.3 nothing extra is needed to download KMZ files
(compressed KML's). It comes as standard.

Try the following URL for example:

http://maps.warwickshire.gov.uk/gs/Public_Data_DB/wms?service=WMS&version=1.1.0&request=GetMap&layers=Public_Data_DB:CARE_HOMES_WSHIRE&styles=&bbox=404938.115504549,240904.541047672,454203.46866687,303101.727288308&width=405&height=512&srs=EPSG:27700&format=application%2Fvnd.google-earth.kmz+xml

I don't know if that was added since 2.2, but I doubt it (someone will
correct me I hope if I'm wrong). Maybe there's something wrong with your
OGR install? I don't have it myself.

Cheers,
Jonathan



On 1 April 2014 15:50, mano3688 <[email protected]> wrote:

> I am using
> FWTools 2.2.8.
> OS:Windows 7 64 bit
> Geoserver 2.2.2
> Tomcate 7
>
> I have download ogr jar file from
> http://geoserver.org/display/GEOS/GeoServer+2.2.2 link and added into
> geoserver/web-InF/lib folder and also I added ogr2og2.xml file into
> geoserver/data folder
>
> Sample xml
>
> <OgrConfiguration>
>    <ogr2ogrLocation>C:\FWTools2.2.8\bin\ogr2ogr.exe</ogr2ogrLocation>
>    <gdalData>C:\FWTools2.2.8\data</gdalData>
>   <formats>
>     <Format>
>       <ogrFormat>MapInfo File</ogrFormat>
>       <formatName>OGR-TAB</formatName>
>       <fileExtension>.tab</fileExtension>
>     </Format>
>     <Format>
>       <ogrFormat>MapInfo File</ogrFormat>
>       <formatName>OGR-MIF</formatName>
>       <fileExtension>.mif</fileExtension>
>       <option>-dsco</option>
>       <option>FORMAT=MIF</option>
>     </Format>
>     <Format>
>       <ogrFormat>CSV</ogrFormat>
>       <formatName>OGR-CSV</formatName>
>       <fileExtension>.csv</fileExtension>
>
>     </Format>
>     <Format>
>       <ogrFormat>KML</ogrFormat>
>       <formatName>OGR-KML</formatName>
>       <fileExtension>.kml</fileExtension>
>
>     </Format>
>   </formats>
> </OgrConfiguration>
>
> I am using code to download kml file
>
> window.open(wfsProtocol.url+'?service=WFS&srs=EPSG:4326&version='+wfsProtocol.version+'&request=GetFeature&outputFormat=OGR-KML&typeName='+layer+'&featureID='+id,'_parent');
>
> *
> But when download the wms layer as in kml and csv, I am not getting
> download
> file in zipped format.*
> *
> And also I am getting file name and title as null in the download window.*
> I have added download image here
>
> <http://osgeo-org.1560.x6.nabble.com/file/n5132498/kmlWindowDownload.png>
>
>
> Can you please help me,
> 1.how to get file name and title in download window?
> 2.how to get kml and csv as in zipped file format?
>
> Thanks and reagards,
> Mano G
>
>
>
>
> --
> View this message in context:
> http://osgeo-org.1560.x6.nabble.com/Not-able-to-download-kml-and-csv-file-in-zipped-format-in-windows-7-64-bit-tp5132498.html
> Sent from the GeoServer - User mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Geoserver-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>

-- 
This transmission is intended for the named addressee(s) only and may 
contain sensitive or protectively marked material up to RESTRICTED and 
should be handled accordingly. Unless you are the named addressee (or 
authorised to receive it for the addressee) you may not copy or use it, or 
disclose it to anyone else. If you have received this transmission in error 
please notify the sender immediately. All email traffic sent to or from us, 
including without limitation all GCSX traffic, may be subject to recording 
and/or monitoring in accordance with relevant legislation.
------------------------------------------------------------------------------
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to