Readme.txt 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. This directory contains example ESQLC programs which demonstrate how
  2. to insert and fetch geometry data to and from a database using the
  3. Informix Spatial DataBlade.
  4. I. Directory contents
  5. =====================
  6. 1. Programs which demonstrate how to load all geometry types
  7. -------------------------------------------------------------------------
  8. load_shapes.ec - Creates a table with an ST_Geometry column and
  9. inserts examples of all geometry types in ESRI
  10. shape format, using the SE_GeomFromShape function.
  11. load_wkb.ec - Creates a table with an ST_Geometry column and
  12. inserts examples of all geometry types in OGIS
  13. WKB format, using the ST_GeomFromWKB function.
  14. geomfromshape.ec - Inserts a polygon into a table in ESRI shape format
  15. using the SE_GeomFromShape function.
  16. geomfromwkb.ec - Inserts a polygon into a table in OGIS WKB format
  17. using the ST_GeomFromWKB function.
  18. 2. Programs which demonstrate how to fetch geometry data
  19. -------------------------------------------------------------------------
  20. asbinary.ec - Retrieves data in OGIS WKB format.
  21. asshape.ec - Retrieves data in ESRI shape format.
  22. 3. Common code, used by all of the above programs
  23. -------------------------------------------------------------------------
  24. commfuncs.h - Header file containing data structure definitions,
  25. constants and function prototypes
  26. commfuncs.c - Functions which serialize and de-serialize
  27. numeric data, swapping bytes if necessary
  28. exp_chk.ec - Error handler functions.
  29. shapefuncs.c - Functions for converting geometry data to and from
  30. ESRI shape format.
  31. wkbfuncs.c - Functions for converting geometry data to and from
  32. OpenGIS Well-Known Binary format.
  33. 4. Other files
  34. -------------------------------------------------------------------------
  35. Readme.txt - This file.
  36. Makefile - Makefile for compiling all programs on Unix platforms.
  37. cleanup.sql - SQL script for dropping tables created by demo programs.
  38. II. Setting up and running the demos
  39. ====================================
  40. 1. Running the Makefile
  41. -----------------------
  42. You can use the Makefile to compile each demo program individually or
  43. compile them all at one time. To compile only a single demo, pass its
  44. name as a command-line argument to make. Not passing any command-line
  45. argument will cause all the demo programs to be compiled.
  46. To successfully run the Makefile, you need to have the INFORMIXDIR
  47. environment variable set to the directory where the Client-SDK is
  48. installed.
  49. The Makefile is configured for Solaris platforms. You might need
  50. to change it slightly for other platforms.
  51. 2. Command-line arguments
  52. -------------------------
  53. The demo programs all take a database name and an optional SRID as
  54. command-line arguments. If you do not specify an SRID, the programs
  55. will use SRID = 0, which is pre-loaded into the spatial_references
  56. table when you register the Spatial DataBlade in a database.