New answers tagged wkt
Using R, you can convert between WKB and WKT using the packages rgeos and wkb. Example: # load packages library(rgeos) library(wkb) # create raw vector representing WKB geometry wkb <- as.raw(c(0x01, 0x01, 0x00, 0x00, 0x00, 0xcd, 0xcc, 0xcc, 0xcc, 0x17, 0x0d, 0x22, 0x41, 0xb8, 0x1e, 0x85, 0x9b, 0xcb, 0x40, 0x52, 0x41)) ...
Found one online that might be helpful converting WKT to GeoJson and allowing preview online: http://orielo.com/projects/wkt2geojson
It looks like a new and better supported JS WKB parsing library has since appeared. https://github.com/cschwarz/wkx I've been able to use it to convert WKB directly from postgres into JS objects that can be mapped in the browser. You'll need to include https://github.com/cschwarz/wkx/blob/master/dist/wkx.js in your webpage for this to work. // Required ...
Top 50 recent answers are included