[Mapserver-users] mapscript shapefileObj

Michael Schulz mschulz at webgis.de
Thu Apr 10 05:58:11 EDT 2003


Ok, obviously i didn't look too hard in the sources, shapefileObj takes
now:

  shapefileObj(char *filename, char *shapepath, int type)

Cheers, Michael




Michael Schulz schrieb:

> Hi,
>
> i have run into a error with my applications using python/mapscript.
> With one of the latest nightlies the new shapefileObj() function
> complains it needs 3 arguments instead of 2 !?
>
> >>> from mapscript import *
> >>> r = shapefileObj("c:\\tonne\test.shp",MS_SHAPE_POINT)
> Traceback (most recent call last):
>   File "<stdin>", line 1, in ?
>   File "C:\programme\zope_jupiter\bin\DLLs\mapscript.py", line 359, in
> __init__
>     self.this = apply(_mapscript.new_shapefileObj,args)
> TypeError: new_shapefileObj() takes exactly 3 arguments (2 given)
>
> Can anybody reproduce this error? TIA, Michael
>
> --
> -----------------------------------------------------------
> Michael Schulz                                in medias res
> Dipl.-Geologe                              Gesellschaft für
>                                 Informationstechnologie mbH
>                              Sautierstr. 38, 79104 Freiburg
>                                      0761 55695-95 (Fax 96)
> mschulz at webgis.de                             www.webgis.de
>
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users at lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users

--
-----------------------------------------------------------
Michael Schulz                                in medias res
Dipl.-Geologe                              Gesellschaft für
                                Informationstechnologie mbH
                             Sautierstr. 38, 79104 Freiburg
                                     0761 55695-95 (Fax 96)
mschulz at webgis.de                             www.webgis.de





More information about the mapserver-users mailing list