Adrian, There is something wrong with the file you gave. So the problem seems with ogr2ogr (at least with yours).
Please try a clean start without using the -append option and try again. Let me know as many details as you can, even if you get a correct result. On Tue, Sep 22, 2009 at 11:10 PM, Adrián Ribao Martínez <[email protected]> wrote: > Hello Chaitanya, > > I attach the files to this mail. > > Thank you very much for your help! > > Best regards, > > Adrian > > On Martes, 22 de Septiembre de 2009 18:28:37 usted escribió: >> Adrian, >> >> May be the problem is not with the shapefile. Provide a copy of the >> shapefile you generated to me. >> >> Shapefile field names have some limitations. They cannot be longer >> than 10 chars. http://www.gdal.org/ogr/drv_shapefile.html >> >> On Tue, Sep 22, 2009 at 9:09 PM, Adrián Ribao Martínez <[email protected]> >> wrote: >> > On Martes, 22 de Septiembre de 2009 12:41:12 usted escribió: >> >> Adrian, >> >> >> >> I see the complete map, one similar to the wikipedia version. >> >> I did this with the latest daily snapshot of gdal with the command: >> >> ogr2ogr -f "ESRI Shapefile" limits limits.gml -nlt multipolygon >> > >> > The version of gdal is 1.6.2 under debian linux. I can see it better in >> > other editors but I still have some problems, the names of the ddbb won't >> > match the features. And when I import it to the ddbb I get the same result >> > as I posted before. http://imgur.com/HDpRp >> > >> > I'm using geodjango and postgis 1.3. >> > >> > Regards, >> > >> > Adrian. >> > >> > >> >> Please provide the GDAL version you used and see if you can open the >> >> shapefile in a different application. >> >> >> >> On Tue, Sep 22, 2009 at 3:30 PM, Adrián Ribao Martínez <[email protected]> >> >> wrote: >> >> > >> >> > On Martes, 22 de Septiembre de 2009 11:42:44 usted escribió: >> >> > > Adrian, >> >> > > >> >> > > The GML file has only one geometry per feature, as far as I looked. I >> >> > > was >> >> > > able to convert the gml file to shapefile format. It showed >> >> > > boundaries of >> >> > > different places in Spain including some islands. >> >> > >> >> > Are you seeing this map? http://imgur.com/HDpRp >> >> > >> >> > This is wrong, the map is not complete, it should be like this: >> >> > http://en.wikipedia.org/wiki/File:Spain_met.png >> >> > >> >> > Regards, >> >> > >> >> > Adrian >> >> > >> >> > > I did not use the -append option. >> >> > > >> >> > > On Mon, Sep 21, 2009 at 11:08 PM, Adrián Ribao Martínez >> >> > > <[email protected]>wrote: >> >> > > >> >> > > > Hello everybody, >> >> > > > >> >> > > > I have a problem converting a gml file into .shp. I'm using this >> >> > > > command: >> >> > > > >> >> > > > ogr2ogr -append -f "ESRI Shapefile" limits limits.gml -nlt >> >> > > > multipolygon >> >> > > > >> >> > > > >> >> > > > but it's not working, it seems that only one geometry per feature is >> >> > > > converted. What am I doing wrong? >> >> > > > >> >> > > > >> >> > > > You can have a look at the gml file here: >> >> > > > http://groups.google.com/group/geodjango/web/limits.gml.tar.gz >> >> > > > >> >> > > > Thank you very much, I've spent all day with this without success. >> >> > > > >> >> > > > Regards, >> >> > > > >> >> > > > Adrian >> >> > > > >> >> > > > _______________________________________________ >> >> > > > gdal-dev mailing list >> >> > > > [email protected] >> >> > > > http://lists.osgeo.org/mailman/listinfo/gdal-dev >> >> > > > >> >> > > >> >> > > >> >> > > >> >> > > >> >> >> >> >> >> >> >> -- >> >> Best regards, >> >> Chaitanya kumar CH. >> >> >> > >> >> >> >> > -- Best regards, Chaitanya kumar CH. _______________________________________________ gdal-dev mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/gdal-dev
