ms_newShapefileObj gives error in mapserver 4.4.2
SUBSCRIBE MAPSERVER-USERS Joukje
joukje.de.haan at ARIS.NL
Thu Jul 7 07:55:06 PDT 2005
Hi,
Yes, the shapefile exists. Mapserver is able to draw the layer based
on this shapefile. Also, extracting attribute values from the dbf with
php/mapscript is no problem at all.
The same code on another machine (with mapscript 4.0.1/php 4.3.11)
can still open the exact same shapefile. Strange, isn't it?
Maybe you have any further ideas?
Joukje
On Thu, 7 Jul 2005 09:55:06 -0400, Julien-Samuel Lacroix
<jlacroix at DMSOLUTIONS.CA> wrote:
>Hi,
>This error message can be output if MapServer is not able to open
>gspplan/bespreek.shp or gspplan/bespreek.dbf. From there you have 3
>things to check:
>Does the shapefile exist?
>Does this shapefile have a DBF associated with it?
>Is the files are readable by the web user?
>
>Julien
>
>
>On 07/07/2005 06:15 AM, Joukje wrote:
>> Hi list,
>>
>> I have a problem with opening a shapefile in php/mapscript since we
started
>> using mapserver 4.4.2. (php 4.1.2) instead of 4.0.1 (php 4.3.11).
>>
>> The following line of php now returns an error:
>>
>> $objShapefile = ms_newShapefileObj("gspplan/bespreek", -2);
>>
>> -->
>> Warning: [MapServer Error]: msSHPOpenFile(): (gspplan/bespreek)
>> in /project/gspvg/wwwontw/page/object_attributes_edit.phtml on line 80
>>
>> Fatal error: Failed to open shapefile gspplan/bespreek
>> in /project/gspvg/wwwontw/page/object_attributes_edit.phtml on line 80
>> --
>>
>> I also tried opening the shapefile with the full pathname, but the same
>> error occurred. Does anyone have an idea what the causes this problem?
>>
>> Thanks!
>>
>> Joukje
>>
>
>--
>------------------------------------------------------------
>Julien-Samuel Lacroix jlacroix at dmsolutions.ca
>DM Solutions Group http://www.dmsolutions.ca/
>------------------------------------------------------------
More information about the MapServer-users
mailing list