Opened 16 years ago

#2757 new defect

shapefileObj::add() returns record number, not MS_SUCCESS

Reported by: brage Owned by: sdlime
Priority: normal Milestone:
Component: MapScript-SWIG Version: unspecified
Severity: normal Keywords:
Cc:

Description

According to the MapScript API reference shapefileObj::add() returns MS_SUCCESS or MS_FAILURE.

In reality, it returns the return value of msSHPWriteShape() (which is record number), or MS_FAILURE on empty shapes.

Change History (0)

Note: See TracTickets for help on using tickets.