Hi,

can you try in this way.

( you can download jar file based on geoserver version).

you can download jar file from the link
http://sourceforge.net/projects/geoserver/files/GeoServer%20Extensions/2.1.1/geoserver-2.1.1-ogr-plugin.zip/download.

And then put jar file into  C:\Tomcat7.0.19\webapps\geoserver\WEB-INF\lib
directory.

After that yo have to write xml file and then put into
C:\Tomcat7.0.19\webapps\geoserver\data.

ogr2ogr.xml

<OgrConfiguration>
   <ogr2ogrLocation>C:\Program
Files\FWTools2.4.7\bin\ogr2ogr.exe</ogr2ogrLocation>
  <gdalData>C:\Program Files\FWTools2.4.7\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>

Finally you restart the tomcat server and the check.
(e.g)
Export kml file
window.open('http:localhost:8080/geoserver/panama/wms?service=WFS&srs=EPSG:4326&version=1.0.0&request=GetFeature&typeName='+exportContextMenu+'&outputFormat=OGR-KML','_parent');


--
View this message in context: 
http://osgeo-org.1560.n6.nabble.com/ogr2ogr-extension-problem-tp4975909p4975930.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to