Opened 20 years ago

Last modified 20 years ago

#820 new enhancement

get field types function

Reported by: monicasocol@… Owned by: mapserverbugs
Priority: high Milestone:
Component: MapScript-PHP Version: unspecified
Severity: minor Keywords:
Cc: sgillies@…

Description

Function that returns the field types for fields in a shape file. This is 
necessary for creation of any tabular queries on-the-fly. 
There is a function defined into PHP 5 (dbase_get_header_info), but mapscript 
does not support PHP version 5, so there is no way to use it.

Change History (2)

comment:1 by sgillies@…, 20 years ago

There is an itemObj structure in mapprimitive.h but I can't find anywhere that
it is used.  Was there a time when someone thought of changing layerObj items
from char **items to itemObj *items?

comment:2 by dmorissette, 20 years ago

dependson: 462
Yes, I started work on this several months ago in bug 462 but never found time
to finish it. I'll see if I could wrap this up quickly today (probably not), but
if you want to tackle this then I could send you the diff for the stuff that I
haven't committed to CVS yet (there is still more work to do, it's not just a
matter of committing to CVS).

I won't close this bug yet since bug 462 was focused on WFS and didn't include
plans to expose the types in MapScript.
Note: See TracTickets for help on using tickets.