<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">How complex is your input file(s)?<br>
      ArcInfo coverage/E00 can have virtually any number of
      featureclasses. However, a coverage have non-redundant geometry
      with only two primary geometry sources: point and line. All other
      featureclasses (polygons, nodes, multipolys, multilines etc)
      shares the geometry using internal pointers but can (and will
      normally) have different attributes.<br>
      If I use ogr on a point-only coverage:<br>
      ogr2ogr gridp05.shp gridp05.e00<br>
      then one shapefile is created in the "working directory"<br>
      If I use ogr on a polygon coverage:<br>
      ogr2ogr grid05.shp grid05.e00<br>
      then four shapefiles (lines, polygons, labels) are created in a
      new directory named grid05.shp<br>
      <br>
      Best Regards<br>
      <br>
      Andreas<br>
      <br>
    </div>
    <blockquote
cite="mid:CAEZYbZs2hVo=Qk561iBaaDXhF-YoMf4mEUcDTfcobCVcVSCSDg@mail.gmail.com"
      type="cite">Thanks for the great explanation and help,<br>
      But still I couldn't solve my problem. Shape file which is
      generated by ogr2ogr should be under the working directory as a
      file not as a fiel under the new directory. I mean after run the
      command <br>
      I would like to see shape file under the working directory<br>
      f30c3.shp<br>
      f30c3.shx<br>
      f30c3.dbf<br>
      <br>
      This could be done by old version but for new one as I explain it
      created new directory and collect files under that directory..<br>
      <br>
      <br>
      I have written another script and it read data under working
      directory. So I have to see files under the working directory.<br>
      <br>
      Regards<br>
      Murat<br>
      <br>
      <div class="gmail_quote">2013/2/16 Eli Adam <span dir="ltr"><<a
            moz-do-not-send="true" href="mailto:eadam@co.lincoln.or.us"
            target="_blank">eadam@co.lincoln.or.us</a>></span><br>
        <blockquote class="gmail_quote" style="margin:0 0 0
          .8ex;border-left:1px #ccc solid;padding-left:1ex">
          <div class="im">On Fri, Feb 15, 2013 at 1:25 PM, Murat Beyhan
            <<a moz-do-not-send="true"
              href="mailto:muratbeyhan28@gmail.com">muratbeyhan28@gmail.com</a>>
            wrote:<br>
            > Dear All,<br>
            > I deleted existing shp file and I try but It doesn't
            create individual shp<br>
            > file under same directory. Always creates  files under
            directory<br>
            ><br>
            > avcimport f30c3.e00 f30c3<br>
            > ogr2ogr -f "ESRI Shapefile"  f30c3.shp  f30c3<br>
            > this creates file under directory of f30c3.shp and
            files as same before I<br>
            > wrote.<br>
            ><br>
            >  ls f30c3.shp/<br>
            > ARC.dbf  ARC.shp  ARC.shx  LAB.dbf  LAB.shp  LAB.shx<br>
            <br>
          </div>
          Coverages, <a moz-do-not-send="true"
            href="http://gdal.org/ogr/drv_avce00.html" target="_blank">http://gdal.org/ogr/drv_avce00.html</a>,
          can have multiple<br>
          different geometry types within one file.  It looks like your
          results<br>
          include both lines and labels.  A shapefile can not have
          multiple<br>
          geometries within one shapefile so at least one of the output<br>
          shapefiles can't have the same name.   In this case ogr2ogr is<br>
          generating one for lines (ARC.shp) and one for labels
          (LAB.shp).  This<br>
          is probably also one of the reasons that the shapefile driver
          treats a<br>
          directory as a dataset and shapefiles as layers within that<br>
          'dataset/directory'<br>
          <br>
          Best Regards, Eli<br>
          <div class="HOEnZb">
            <div class="h5"><br>
              <br>
              ><br>
              ><br>
              > Then I also used without using coverage file created
              by avcimport<br>
              > I have deleted f30c3 coverage directory and files
              created by the first<br>
              > method then apply following directly<br>
              > ogr2ogr -f "ESRI Shapefile"  f30c3.shp  f30c3.e00<br>
              > this also created directory for the shape file.<br>
              ><br>
              > it works and behave similar with previous process<br>
              > I have faced this problem for new version of Gdal
              Eli.<br>
              > old version works fine with mandriva but new version
              of gdal on ubuntu<br>
              > behave like this. So I really waiting for the
              solution of this issue.<br>
              ><br>
              ><br>
              ><br>
              > 2013/2/15 Eli Adam <<a moz-do-not-send="true"
                href="mailto:eadam@co.lincoln.or.us">eadam@co.lincoln.or.us</a>><br>
              >><br>
              >> Murat,<br>
              >><br>
              >> > I was creating shp file using ogr2ogr as
              follows<br>
              >> ><br>
              >> > avcimport file.e00 coverage<br>
              >> ><br>
              >> > ogr2ogr -f "ESRI Shapefile" file.shp
              coverage<br>
              >> ><br>
              >> > This was worked well for old version of gdal<br>
              >> ><br>
              >> > I have installed gdal 1.9 then I have faced
              such a problem<br>
              >> ><br>
              >> > the ogr2ogr command create a directory and
              shp file located unter that<br>
              >> > directory.<br>
              >> > But old version of ogr2ogr was created files
              under the same directory<br>
              >> > where<br>
              >> > you work<br>
              >><br>
              >> I think that ogr2ogr has (sometimes) created
              shapefiles in directories<br>
              >> for a long time before 1.9.<br>
              >><br>
              >> ><br>
              >> > the old version of ogr2ogr creates file.shp
              file.shx file.dbf<br>
              >> ><br>
              >> > but new version create directory under
              working directory called file.shp<br>
              >> > instead of file.shp file<br>
              >> > and the shp files located under file.shp
              directory<br>
              >> ><br>
              >> > Please let me know what is differs this
              resuts.<br>
              >> ><br>
              >> > Regards<br>
              >> > Murat<br>
              >><br>
              >> The shapefile driver page talks about this some,<br>
              >> <a moz-do-not-send="true"
                href="http://gdal.org/ogr/drv_shapefile.html"
                target="_blank">http://gdal.org/ogr/drv_shapefile.html</a><br>
              >><br>
              >> I notice similar things (this is with PostGIS
              datasource).  If the<br>
              >> output shp file is the same name as input source
              then the shp is<br>
              >> created in the specified directory.  If it is a
              different name, then I<br>
              >> get a directory.<br>
              >><br>
              >> ogr2ogr
              V:\Data\E_addendum\Assessor\2012\nbhd\nbhd_codes_2012_postgis2.shp<br>
              >> PG:"host=123.12.12.12 user=username
              dbname=mydatabase<br>
              >> password=mypassword"
              taxlots2012_union_valid_nbhd_codes_v1 -a_srs<br>
              >> "EPSG:2913"<br>
              >><br>
              >> creates a directory and then the shp (and the shp
              has the name of the<br>
              >> original datasource), i.e.<br>
              >><br>
              >>
V:\Data\E_addendum\Assessor\2012\nbhd\nbhd_codes_2012_postgis2.shp\taxlots2012_union_valid_nbhd_codes_v1.dbf,<br>
              >> .shp, etc<br>
              >><br>
              >> ogr2ogr<br>
              >>
V:\Data\E_addendum\Assessor\2012\nbhd\taxlots2012_union_valid_nbhd_codes_v1.shp<br>
              >> PG:"host=123.12.12.12 user=username
              dbname=mydatabase_template<br>
              >> password=mypassword"
              taxlots2012_union_valid_nbhd_codes_v1 -a_srs<br>
              >> "EPSG:2913"<br>
              >><br>
              >> creates the named shp in the directory.<br>
              >><br>
              >> I have occasionally found this a minor annoyance.
               Is there a config<br>
              >> or creation option to change this?  A search of
              the email archives<br>
              >> didn't turn anything up for me.<br>
              >><br>
              >> Eli<br>
              ><br>
              ><br>
            </div>
          </div>
        </blockquote>
      </div>
      <br>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
gdal-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/gdal-dev">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a></pre>
    </blockquote>
  </body>
</html>