If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Informix > Cast ST_GEO to BLOB

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-26-05, 08:17
VitaminB VitaminB is offline
Registered User
 
Join Date: Jun 2004
Posts: 21
Cast ST_GEO to BLOB

Hi Guys,

do you have any idea how to Cast a ST_Geometry to BLOB in Informix IDS?

Thanks for all answers.

Marcus
Reply With Quote
  #2 (permalink)  
Old 09-26-05, 12:56
blackguard blackguard is offline
Registered User
 
Join Date: Sep 2002
Posts: 102
ST_Geometry::BLOB
Reply With Quote
  #3 (permalink)  
Old 09-27-05, 11:54
VitaminB VitaminB is offline
Registered User
 
Join Date: Jun 2004
Posts: 21
You can't use the normaly CAST Syntax...

"There is no function to convert ST_Geo to BLOB..."
Reply With Quote
  #4 (permalink)  
Old 10-03-05, 11:28
Frood Frood is offline
Registered User
 
Join Date: Oct 2005
Posts: 1
Casting ST_Geometry to BLOB

Marcus,

I wonder why you would want to do such a thing. I mean, you could, I suppose, but how would you interpret the BLOB once you got hold of it?

You can access any part of the ST_Geometry from the various functions supplied with the DataBlade. For example, you can access all the vertices through ST_NumPoints, ST_NumGeometries, ST_StartPoint, ST_PointN, etc.

If you really want a binary or text representation of the geometry, you could convert it to Well-Known Binary (WKB) with ST_AsBinary, or as Well-Known Text (WKT) with ST_AsText. You can find the format for each of these representations at the OGC website (http://www.opengeospatial.org/). Look in the appendix of the OpenGIS(c) Simple Features Implementation Specification for SQL.

-- Frood
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On