вторник 03 мартаadmin

What is Ogre?

KMZ files are obtained from web servers, unzipped, and the KML files within the KMZ file are separated and converted to their original format. KMZ files contain many different files containing overlays, images, 3D models, and more at root document levels. I have a Shapefile that contains several thousand polygons. I need to read from this file in C# and output a list of WKT formatted strings. I looked at DotSpatial and the 'CatFood' ESRI Shapefile Reader.I can get either to load the shapefile just fine, but I cannot figure out how to then export as WKT.

Ogre is a web client (service) that translates spatial files into GeoJSON using the ogr2ogr command line tool for use in JavaScript web applications and frameworks.

What formats does it support?

Currently Ogre supports the following transformations:

TypeSingle File FormatZipped (.zip) File FormatNotes
BNA.bna-
CSV.csv-Common spatial columns (e.g. lon, lat, the_geom) will be translated, for less common, use a VRT file
DGN.dgn-
DXF.dxf-
ESRI Shapefile-.shp, .dbf, and .shx (.prj optional)
GeoConcept.gxt or .txt-
GeoJSON.json or .geojson-
GeoRSS.rss, .georss, or .xml-
GML.gml.gml and .xsd
GMT.gmt-
GPX.gpx-
Interlis 1.itf.itf and .ili (.fmt optional)
KML / KMZ.kml or .kmz-
MapInfo-.tab, .map, .id, and .dat
S-57.000.000 (.001-.00N optional)
TIGER-at least an .rt1
VRT-.vrt with any other spatial fileFor more information on how to use VRT files, see the full VRT documentation

Accessing Ogre using a POST request

You can perform Ogre transformations directly by making a HTTP POST request:

Convert to GeoJSON

http://ogre.adc4gis.com/convert with the following params:
  • upload - the file being uploaded
  • sourceSrs (optional) - the original projection
  • targetSrs (optional) - the target projection
  • forcePlainText (optional) - force `text/plain` instead of `application/json`
  • skipFailures (optional) - skip failures
  • callback (optional) - a JSONP callback function name

Convert from GeoJSON to Shapefile (or specified format)

http://ogre.adc4gis.com/convertJson with one of the following params:

Download lagu stinky mungkinkah. Download Stinky - Mungkinkah mp3 lengkap dengan lirik dan chord lagunya dari album Unknown Album dalam genre pop. Plus gratis lirik dan chord lagunya.

  • json - text of the GeoJSON file
  • jsonUrl - the URL for a remote GeoJSON file
  • outputName (optional) - the name for the resulting zip file
  • skipFailures (optional) - skip failures
  • format (optional) - File format supported by the ogr2ogr wrapper

Where can I watch the project status, report issues, contribute, or fork the code?

Issues and feature requests can be submitted here and to watch, fork and/or contribute to the project, visit the github page.

'Orc Head' drawing by Jason J. Patterson

Geo::Converter::WKT2KML - Simple converter between WKT and KML

wkt2kml($wkt)

Returns KML geometry fragment. Intel 82579v gigabit driver windows 10.

kml2wkt($kml_fragment)

Returns WKT.

wkt2kmlparser
wkt2kmlformatter
coordformatter
kml2wktbuilder
coordbuilder
Exporter
XML::Simple
Test::Base
XML::Parser

This module is under test phase, need many test case to find bug. Send test cases are welcome.

OHTSUKA Ko-hei <nene@kokogiko.net>

Copyright (c) 2008, OHTSUKA Ko-hei <nene@kokogiko.net>. All rights reserved.

This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic.

BECAUSE THIS SOFTWARE IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE SOFTWARE, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE SOFTWARE 'AS IS' WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE SOFTWARE IS WITH YOU. SHOULD THE SOFTWARE PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR, OR CORRECTION.

IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE SOFTWARE AS PERMITTED BY THE ABOVE LICENCE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE SOFTWARE (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE SOFTWARE TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.

To install Geo::Converter::WKT2KML, simply copy and paste either of the commands in to your terminal

For more information on module installation please visit the detailed CPAN module installation guide.