Opened 4 years ago

Closed 4 years ago

#2740 closed defect (fixed)

v.in.ogr: wrong projection check when importing geometry column from table with multiple geometry columns

Reported by: mlennert Owned by: martinl
Priority: normal Milestone: 7.0.2
Component: Vector Version: svn-trunk
Keywords: v.in.ogr geometry columns Cc: grass-dev@…
CPU: Unspecified Platform: Unspecified

Description

r63604 introduced the possibility to import from data sources with multiple geometry columns (gdal RFC41).

However, AFAIU, the projection check has not been changed and so the projection is gotten from the layer, not the field (aka geometry column).

It seems to me that the gathering of information concerning the geometry column in lines 870ff of main.c needs to be moved higher up to before getting the projection (lines 543ff), so that the projection can be gotten from the geometry column and not from the layer.

But I'm not 100% sure of understanding the code correctly, so this needs confirmation.

Change History (3)

comment:1 Changed 4 years ago by martinl

Cc: grass-dev@… added
Owner: changed from grass-dev@… to martinl
Status: newassigned

Please try out r66184. After some testing could be backport to relbr70.

comment:2 in reply to:  1 ; Changed 4 years ago by mlennert

Replying to martinl:

Please try out r66184. After some testing could be backport to relbr70.

Works nicely for my case.

Thanks !

Moritz

comment:3 in reply to:  2 Changed 4 years ago by martinl

Resolution: fixed
Status: assignedclosed

Replying to mlennert:

Replying to martinl:

Please try out r66184. After some testing could be backport to relbr70.

Works nicely for my case.

perfect, backported in r66187. Closing.

Note: See TracTickets for help on using tickets.