[Freegis-list] ShapeLib and Delphi

Lewie Dekker lewiemy at putra.net.my
Tue Jul 15 10:36:19 CEST 2003


Hello Jakob,

Yes, I did get it to work.

First I had to discover that I should use the ShpApi129.pas module.
Even then, it took me quite some time figuring out what was wrong with my 
earlier versions, but apparently shapelib cannot handle dynamic pascal 
arrays! That still looks mighty silly to me, and I'll try fiddling with 
compiler settings, but for now you will have to statically declare your 
array sizes up-front. They do not have to be the exact size of the data. 
Just setting the remaining parts to 0 will work, and maybe even without 
that, because you tell the procedure how many coordinates to expect anyway.

I will send you separately a small demo app that will hopefully show you 
how to get going.

Regards,
Lewie


A.J.F.M. "Lewie" Dekker
Database Specialist
ASEAN Regional Centre for Biodiversity Conservation
P.O.Box 35015
College, Laguna 4031, Philippines

website:        www.arcbc.org
e-mail: database at arcbc.org

Tel:  +63 49 536-4042/1659/3989
Fax: +63 49 536-2865/3173 (also voice)




More information about the Freegis-list mailing list

This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)