<html><head><style>body{font-family:Helvetica,Arial;font-size:13px}</style></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;">I’ve been looking over the code, and I think I can make importFromWkb consume ISO inputs with relatively minor changes. (during the geometry type determination in the concrete types, it looks easy enough to add a little logic to deal with ISO type numbers)</div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;">For exportToWkb, I’m wondering if maybe an optional parameter (wkbVariant?) that defaults to wkbVariantOGC would be sufficient?</div> <div id="bloop_sign_1386887673008470016" class="bloop_sign"><div><br></div><div>It also seems the wkb reader/writer have little handling for empty geometry types. I’d like to add some in, if that’s OK.</div><div><br></div><div>Fortunately the only substantial difference for ISO WKB is the type number.</div><div><br></div><div>I’m starting an isowkb branch on my git repo to hold this piece of work, I don’t think it’ll be very big.</div><div><br></div><div>Then I’ll start asking about ‘m’ dimensions :)</div><div><br></div><div>P.</div><div><br></div><span style="font-family:helvetica,arial;font-size:13px"></span>-- <br>Paul Ramsey<br>http://cleverelephant.ca<div>http://postgis.net</div></div> <br><p style="color:#A0A0A8;">On December 12, 2013 at 2:33:41 PM, Even Rouault (<a href="mailto://even.rouault@mines-paris.org">even.rouault@mines-paris.org</a>) wrote:</p> <blockquote type="cite" class="clean_bq"><span><div><div>Le jeudi 12 décembre 2013 21:36:42, Paul Ramsey a écrit :
<br>> Hey all,
<br>> Is there already a facility for writing out ISO-standard WKB in GDAL? The
<br>> biggest difference is the wkbGeometryType number for the case of 3d
<br>> features. OGR currently uses the old extended SFSQL adopted by PostGIS.
<br>> ISO (naturally) did their own thing. As far as I can see, there’s no
<br>> support there now, or is there? P.
<br>
<br>Hi Paul,
<br>
<br>no, there's no support for ISO WKB yet. We still stick to
<br>http://home.gdal.org/projects/opengis/twohalfdsf.html
<br>
<br>I can imagine we could have exportToISOWkb() method in OGRGeometry*. Or we
<br>could add an extra boolean argument bISOWkb to the existing exportToWkb(). Not
<br>sure about WkbSize() : does the size of ISO WKB blobs differ from the unofficial
<br>WKB ?
<br>
<br>Even
<br>
<br>--
<br>Geospatial professional services
<br>http://even.rouault.free.fr/services.html
<br></div></div></span></blockquote></body></html>