Skip to main content
Solved

Blob field in SQL Server to usable Geometry

  • September 26, 2019
  • 6 replies
  • 117 views

Forum|alt.badge.img

Hello, I have a BLOB field, it is supposedly multiple points that form a polyline, but I cannot export the blob into a usable geometry. I have tried GeometryReplacer and GeometryExtractor but I have not been able to get usable results. I attached an excel file with the BLOBs

Best answer by david_r

The only way I was able to get the GeometryReplacer to return anything else than an error was by first removing the "0x" prefix and treat it like a QlikMaps Encoded Polyline. However the result doesn't make much sense (to me):

I think the key here is to know how the geometry is encoded in the blob, or at the very least know which software is used to manipulate it.

View original
Did this help you find an answer to your question?

6 replies

daveatsafe
Safer
Forum|alt.badge.img+19
  • Safer
  • September 26, 2019

Hi @morijlumos,

Do you know what format the BLOB geometry is in?


Forum|alt.badge.img
  • Author
  • September 26, 2019
daveatsafe wrote:

Hi @morijlumos,

Do you know what format the BLOB geometry is in?

It is varbinary(max)


Forum|alt.badge.img
  • Author
  • September 26, 2019
daveatsafe wrote:

Hi @morijlumos,

Do you know what format the BLOB geometry is in?

I am fairly certain it is supposed to be points


daveatsafe
Safer
Forum|alt.badge.img+19
  • Safer
  • September 26, 2019
morijlumos wrote:

I am fairly certain it is supposed to be points

From that info, it appears to be a set of points in each record, but the key thing to know is how is it binary encoded. The GeometryReplacer in FME supports several kinds of binary geometries: FME Binary (likely not the case), OGC WKB and SQL Server Binary. I have tried all those, and none of them seem to be the encoding used.


david_r
Celebrity
  • Best Answer
  • September 27, 2019

The only way I was able to get the GeometryReplacer to return anything else than an error was by first removing the "0x" prefix and treat it like a QlikMaps Encoded Polyline. However the result doesn't make much sense (to me):

I think the key here is to know how the geometry is encoded in the blob, or at the very least know which software is used to manipulate it.


Forum|alt.badge.img
  • Author
  • September 27, 2019

Thanks! It looks like after all that there doesn't seem to be much useable data in there at all, or its something that ESRI doesn't want to show us!


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings