This topic is locked

Using Spatial Data Types

4/17/2009 10:33:58 AM
PHPRunner General questions
M
marke author

Hi
I have an application that uses mySQL spatial data types. I can read the data as text by modifying the SELECT statement to be something like SELECT asText(myfield). This is fine for viewing but doesn't help me when it comes to adding/editing values into this field. MySQL uses the GeomFromText function to convert text to its internal spatial representation - is there anyway I can amend the INSERT and UPDATE functions to allow me to use this function in the PHPRunner events or output code.
a long shot I know - but it would help a lot if I could find a way round this problem.
thanks
Mark

J
Jane 4/20/2009

Mark,
here are some tips:

  1. remove these fields from update query in the Before record added/updated events,
  2. and update it manually in theAfter record added/After record updatedevents.