Opened 14 years ago

Closed 13 years ago

#3118 closed enhancement (wontfix)

GdalTools (warp): add support for ntv2 grid and +towgs84 transformations

Reported by: lutra Owned by: brushtyler
Priority: major: does not work as expected Milestone: Version 1.7.0
Component: GDALTools Version: Trunk
Keywords: Cc: pcav badams
Must Fix for Release: Yes Platform: All
Platform Version: Awaiting user input: no

Description

Hi Giuseppe, this is the new description for the old ticket available in the gdal tools tracker.

https://trac.faunalia.it/GdalTools-plugin/ticket/57

Please have a look also to the new description of ticket that describes the same enhancement request, but for vectors.

https://trac.osgeo.org/qgis/ticket/2913#comment:3


in qgis:

*) a new menu to allow a user import ntv2 grids (.gsb files): the same files need to be copied in the proper system location, for example "/etc/proj" for linux. The same menu would serve to import grids for vectors transformation (see #2913).

in the "warp" tool:

*) add a dropdown to let the user choose the appropriate ntv2 grid, among the ones available in the proper system folder

*) if the user chooses a ntv2 grid the underlying gdalwarp operation MUST always add the "+wktext" parameter in the source srs definition

*) if the user chooses a ntv2 grid the underlying gdalwarp operation MUST always add the "+towgs84=0,0,0" parameter in the target srs definition, if this srs is a projected one

*) add a field to let the user write manually +towgs84 parameters in case he/she don't want/need to use ntv2 grids. This field and the ntv2 dropdown need to be mutually exclusive.

g) make the windows where the command shows, while the users chooses the options, editable. I know there is already a ticket about this.

Change History (13)

comment:1 by badams, 13 years ago

I loaded r14423. The 4 vector projections now import in the correct location so thats a good start.

Projections are not sticking for a shape or mapinfo export. They seem to reload in the right place, just with the wrong projection attached.

comment:2 by badams, 13 years ago

How is this bug fix progressing? I haven't seen any updates for a long time.

comment:3 by lutra, 13 years ago

see also #3099

in reply to:  2 comment:4 by lutra, 13 years ago

Replying to badams:

How is this bug fix progressing? I haven't seen any updates for a long time.

no idea, meanwhile I compiled trunk and the indirect methods* do still work.

* copy the ntv2 grids in the proper system folder, create the proper custom CRS then use them for datum transformation (for vectors a middle passage is needed due to the lack of the "source srs" filed in the "save as..." dialogs).

comment:5 by badams, 13 years ago

I loaded r14495.

I'm not convinced its splitting AGD84 fron AGD66. There is only a few meters difference which dosn't seem to be accounted for.

To get AGD84, AGD66 and GDA94 to plot together I need to allow on the fly reprojection. This changes everything to WGS72 (is that a bit dodgy? I'd never even heard of that projection). From here, everything seems to get exported as WGS72 lat long as opposed to the projection assigned on import(not sure about this, the prj files don't make alot of sense but they don't look right)

When I go to Vector >> Data management tools >> Define current projection no projection is shown. Does this imply the projection isn't sticking? It never has in the past.

If I try and open the attribute table to see whats going on QGIS crashes.

Sorry, not many positives in that.

in reply to:  5 ; comment:6 by brushtyler, 13 years ago

Replying to badams:

I loaded r14495.

I'm not convinced its splitting AGD84 fron AGD66. There is only a few meters difference which dosn't seem to be accounted for.

This problem doesn't seem related to GdalTools, so would be useful if you write it on ML. AFAIK there was a discussion about it few months ago, but I don't remember anything else.

When I go to Vector >> Data management tools >> Define current projection no projection is shown. Does this imply the projection isn't sticking? It never has in the past.

If I try and open the attribute table to see whats going on QGIS crashes.

Ask on dev-ML, crashes are bad news so we should fix it before releasing the 1.6 if someone can confirm, but again it's not related to GdalTools.

in reply to:  6 ; comment:7 by badams, 13 years ago

Replying to brushtyler:

Replying to badams:

I loaded r14495.

I'm not convinced its splitting AGD84 fron AGD66. There is only a few meters difference which dosn't seem to be accounted for.

This problem doesn't seem related to GdalTools, so would be useful if you write it on ML. AFAIK there was a discussion about it few months ago, but I don't remember anything else.

Will do. Whats ML.AFAIK?

When I go to Vector >> Data management tools >> Define current projection no projection is shown. Does this imply the projection isn't sticking? It never has in the past.

If I try and open the attribute table to see whats going on QGIS crashes.

Ask on dev-ML, crashes are bad news so we should fix it before releasing the 1.6 if someone can confirm, but again it's not related to GdalTools.

in reply to:  7 comment:8 by jef, 13 years ago

Replying to badams:

This problem doesn't seem related to GdalTools, so would be useful if you write it on ML. AFAIK there was a discussion about it few months ago, but I don't remember anything else.

Will do. Whats ML.AFAIK?

ML = mailing list

AFAIK = as far as I know

in reply to:  6 comment:9 by lutra, 13 years ago

This problem doesn't seem related to GdalTools, so would be useful if you write it on ML. AFAIK there was a discussion about it few months ago, but I don't remember anything else.

No, this problems are not related to gdal tools and to this ticket. This ticket was opened to ask add a few enhancements to the gdal tools GUI in order to allow users use ntv2 grids in a more straightforward way.

in reply to:  5 ; comment:10 by lutra, 13 years ago

Hi Brett,

beside the fact that this is not the right ticket where to continue this interesting discussion, I'm not following you.

A few commits that have been done recently have been reversed.

The "indirect" method (see #3099) still works.

I don't understand where this WGS72 comes out. :)

Replying to badams:

I loaded r14495.

I'm not convinced its splitting AGD84 fron AGD66. There is only a few meters difference which dosn't seem to be accounted for.

To get AGD84, AGD66 and GDA94 to plot together I need to allow on the fly reprojection. This changes everything to WGS72 (is that a bit dodgy? I'd never even heard of that projection). From here, everything seems to get exported as WGS72 lat long as opposed to the projection assigned on import(not sure about this, the prj files don't make alot of sense but they don't look right)

When I go to Vector >> Data management tools >> Define current projection no projection is shown. Does this imply the projection isn't sticking? It never has in the past.

If I try and open the attribute table to see whats going on QGIS crashes.

Sorry, not many positives in that.

in reply to:  10 comment:11 by badams, 13 years ago

Replying to lutra:

Hi Brett,

beside the fact that this is not the right ticket where to continue this interesting discussion, I'm not following you.

A few commits that have been done recently have been reversed.

The "indirect" method (see #3099) still works.

Not last time I checked (r14495). It imports correctly(or should I say, it put things in the right place), nothing else.

I don't understand where this WGS72 comes out. :)

Replying to badams:

I loaded r14495.

I'm not convinced its splitting AGD84 fron AGD66. There is only a few meters difference which dosn't seem to be accounted for.

To get AGD84, AGD66 and GDA94 to plot together I need to allow on the fly reprojection. This changes everything to WGS72 (is that a bit dodgy? I'd never even heard of that projection). From here, everything seems to get exported as WGS72 lat long as opposed to the projection assigned on import(not sure about this, the prj files don't make alot of sense but they don't look right)

When I go to Vector >> Data management tools >> Define current projection no projection is shown. Does this imply the projection isn't sticking? It never has in the past.

If I try and open the attribute table to see whats going on QGIS crashes.

Sorry, not many positives in that.

comment:12 by borysiasty, 13 years ago

Component: Python plugins and bindingsGDALTools

comment:13 by lutra, 13 years ago

Resolution: wontfix
Status: newclosed

A tool to handle raster/vector datum transformations involving NTv2 grids and towgs84 parameters is going to be developed as separate tool. It will be available in the next weeks.

Note: See TracTickets for help on using tickets.