[Gdal-dev] Problem on creating a simple point shapefile with OGR

Zheng, Lin ERDC-TEC-VA Lin.Zheng at erdc.usace.army.mil
Fri Mar 3 09:45:52 EST 2006


Hi Julien,
    Thank you for your help.  I think it works now.  Will this make a
directory full of shapefiles or just a single shapefile?
    Thank you again.
 
Lin Zheng

________________________________

From: Julien Demaria [mailto:dem at acri-st.fr]
Sent: Fri 3/3/2006 8:38 AM
To: Zheng, Lin ERDC-TEC-VA
Cc: gdal-dev at lists.maptools.org
Subject: Re: [Gdal-dev] Problem on creating a simple point shapefile with OGR



Lin,

This is a common error you get when the output file (.shp .shx and .dbf)
already exists, remove it first and it'll works.


Julien


Zheng, Lin ERDC-TEC-VA a écrit :
> Hi All,
>     I am a newbie on OGR.  I read the OGR API tutorial and tried to
> compile the "writing to OGR" example with Microsoft Visual C++ 6.0,
> where a single shapefile is created using OGR.  The program compiled
> successfully, but when after I ran it, it returned:
>                     "ERROR 1: point_out.shp is not a directory.
>                      Creation of output file failed."
>    I also read through the documentation on ESRI shapefile, and it
> specifically said that it is possible to use one of the files (.shp,
> .shx or .dbf) in a shapefile set as the dataset name.  Did I forget to
> add something?  Can anyone please help me?
> 
>         Thank you very much.
> 
>    Lin Zheng
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Gdal-dev mailing list
> Gdal-dev at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/gdal-dev


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20060303/3889ecc6/attachment.html


More information about the Gdal-dev mailing list