FW: Opening shapefiles with mapscript ms_newShapefileObj coprupting my shapefiles

Janeks Kamerovskis janeks.kamerovskis at SILVA.LV
Mon Nov 1 04:09:50 PST 2004


Or probably the right question is how to:
"Pass type as -1 to open an existing file for read-only access,
  and type=-2 to open an existing file for update (append)." (from Docs)
As I understood, that types is php constants...

Janeks

-----Original Message-----
From: Janeks Kamerovskis [mailto:janeks.kamerovskis at silva.lv]
Sent: Monday, November 01, 2004 2:05 PM
To: MAPSERVER-USERS at LISTS.UMN.EDU
Subject: Opening shapefiles with mapscript ms_newShapefileObj coprupting
my shapefiles
Importance: High


Hi,

I am using:
MapServer Version  MapServer version 4.4.0-beta1 OUTPUT=GIF OUTPUT=PNG
OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF SUPPORTS=PROJ
SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT
SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER INPUT=POSTGIS
INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE
PHP MapScript Version  ($Revision: 1.212 $ $Date: 2004/10/22 02:44:03 $)

Following code lines damaging my shapefiles so that stays only with 100
bytes:

******code*********

$myShapeFile = ms_newShapefileObj($pathFile, MS_SHP_POLYGON);

$myShapeFile->free();

^^^^^^code^^^^^^^^^


Looking forward for your answer,
Janeks



More information about the MapServer-users mailing list