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.
Do I want to anthing extra in windoes 7?
or
is there any other tool there for exporting layer?
thanks to all
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-tp5132498p5132702.html
Sent from the GeoServer - User mailing list archive at Nabble.com.
Hi Mano,
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.
···
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 <mano3688@anonymised.com> 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
C:\FWTools2.2.8\bin\ogr2ogr.exe
C:\FWTools2.2.8\data
MapInfo File
OGR-TAB
.tab
MapInfo File
OGR-MIF
.mif
-dsco
FORMAT=MIF
CSV
OGR-CSV
.csv
KML
OGR-KML
.kml
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
Geoserver-users@anonymised.comsts.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
Thanks Jonathan,
I will check my ogr intsalltion. For ogr installtion I used FWTools only.
I have problem in windows 7 64 bit server machine only. In windows xp
machine the export option is working fine.
I am thinking is there any configuration issue because I used ogr2og2.xml
file for for getting kml and csv file as zipped format.
The export option does not working if xml does not exist in geoserver/data
folder in my windows xp machine.
In windows 7, kml and csv file exporting is working even if the xml file
exist or does exist but getting nulll as download window titlt and file name
like above snapshot which one above I attached.
I tried using FWTools 2.4.7 also ,layer exporting option does not working.
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
is this application running on windows 7 ?
Thanks to all
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-tp5132498p5133168.html
Sent from the GeoServer - User mailing list archive at Nabble.com.