Warning: stream_socket_client(): php_network_getaddresses: getaddrinfo failed: System error in /home/mathieu/www/rodic-wp/wordpress-20160713/wp-includes/class-wp-http-streams.php on line 150

Warning: stream_socket_client(): unable to connect to ssl://rodic.fr:443 (php_network_getaddresses: getaddrinfo failed: System error) in /home/mathieu/www/rodic-wp/wordpress-20160713/wp-includes/class-wp-http-streams.php on line 150
Online conversion between geometric formats – Mathieu Rodic

Online conversion between geometric formats

Here is a simple conversion tool between different text representations for 2D geometry objects.

Supported formats are:

  • WKB, a.k.a. Well-Known Binary, in hexadecimal format
  • WKT, a.k.a. Well-Known Text
  • GeoJSON

A few sample geometries (taken from Wikipedia) are available:

  • POINT
  • LINESTRING
  • POLYGON
  • MULTIPOINT
  • MULTILINESTRING
  • MULTIPOLYGON
  • GEOMETRYCOLLECTION

This tool uses the wkx javascript library for parsing.

Have fun!


2 thoughts on “Online conversion between geometric formats

    • Haven’t thought of it… this program is kind of a draft, so it would need some rework to become a package. Feel free to do so though, I would be happy to contribute!

Leave a Reply to Eric Dalrymple Cancel reply


Warning: Unknown: open(/var/lib/php5/sessions/sess_kg6mrndq667614jsughuf9crs0, O_RDWR) failed: Permission denied (13) in Unknown on line 0

Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/lib/php5/sessions) in Unknown on line 0