[Gdal-dev] ogr2ogr: Problem with new layer type multilinestring
Frank Warmerdam
fwarmerdam at gmail.com
Thu May 19 14:01:11 EDT 2005
On 5/18/05, Möri Cédric <Cedric.Moeri at bd.so.ch> wrote:
> Hi list
>
> I have a shapefile containing linestrings (polyline) and multilinestrings
> (multi-polyline) that I'm trying to put into a PostGIS-DB using ogr2ogr.
>
> The problem is, that it always violates the check constraint geometry type.
> If I try it without the -nlt option, the geometry column is "linestring"
> and, of course, the multilinestring-objects violate the constraint. If I put
> the -nlt option to "multilinestring" the linestring objects violate the
> constraint too.
>
> I thought, that, if the -nlt option is set to mulitlinestring, it forces a
> conversion of linestring objects to multilinestrings as it does it with
> polygons/multipolygons.
Möri,
I kind of thought it would do that too, but perhaps not.
> Am I wrong or whatelse may be the issue?
>
> I am using ogr2ogr version 1.2.5.
I would suggest using "-nlt geometry" which should result in
no geometry type constraint. At least that is the intention.
Best regards,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush | Geospatial Programmer for Rent
More information about the Gdal-dev
mailing list