Bonjour,
I coudn’t find a way to georeference a vector (with arbitrary X Y coordinates) by using either a WMS or a raster layer. Any advice ?
Merci.
Jacki
On 17/08/18 07:58, Jacki Pilon wrote:
Bonjour,
I coudn't find a way to georeference a vector (with arbitrary X Y coordinates) by using either a WMS or a raster layer. Any advice ?
https://grass.osgeo.org/grass74/manuals/g.gui.gcp.html
It allows you to georeference a vector. If you want to use a WMS as background you probably have to import it first using r.in.wms.
Moritz
[Please keep discussions on the list.]
Am 18. August 2018 20:59:03 MESZ schrieb Jacki Pilon <jacki.pilon@gmail.com>:
Thank you Moritz. Unfortunately I cannot go further since I have bad
responses from the OSM servers like :
https://osm.geobretagne.fr/gwc01/service=wms
You will have to be much more precise about what exactly you do and what exactly are the messages you receive.
Otherwise it will be difficult for anyone to help you.
Moritz
Yours,
Jacki
Le ven. 17 août 2018 à 13:01, Moritz Lennert
<mlennert@club.worldonline.be>
a écrit :On 17/08/18 07:58, Jacki Pilon wrote:
> Bonjour,
> I coudn't find a way to georeference a vector (with arbitrary X Y
> coordinates) by using either a WMS or a raster layer. Any advice ?https://grass.osgeo.org/grass74/manuals/g.gui.gcp.html
It allows you to georeference a vector. If you want to use a WMS as
background you probably have to import it first using r.in.wms.Moritz
Well, I start with a CSV file containing records of numbered things (houses, parcells…) having a noun (a proper noun) and X, Y coordinates values. These names and locations have been recorded from an old paper map (X and Y are in millimeters). The geographic coverage of the map is small (around 2 x 3 km, printed onto a 210 x 300 mm page).
The map shows hundreds of things worth being recorded.
I would like to georeference this set of “things” in order to display them in position, overlaid on a general map.
A few of them (for example chapels, churches, crossroads…) can be relatively easily located on modern, georeferenced, maps and hence, be used as ground control points.
I first build a vector layer in importing this ascii file in QGIS, and I could see a correct result, points at relative good positions and labels with the nouns.
But now, I have troubles in using the QGIS georeferencer, as it seems to accept only rasters (not vectors) and these rasters are supposed to be files from the computer. I would prefer to use a VMS multilayer map that would allow to take benefit of more than one single layer in the process of defining the ground control points.
.
Thanks for your attention and for your help.
Jacki
Le dim. 19 août 2018 à 11:31, Moritz Lennert <mlennert@club.worldonline.be> a écrit :
[Please keep discussions on the list.]
Am 18. August 2018 20:59:03 MESZ schrieb Jacki Pilon <jacki.pilon@gmail.com>:
Thank you Moritz. Unfortunately I cannot go further since I have bad
responses from the OSM servers like :
https://osm.geobretagne.fr/gwc01/service=wmsYou will have to be much more precise about what exactly you do and what exactly are the messages you receive.
Otherwise it will be difficult for anyone to help you.Moritz
Yours,
Jacki
Le ven. 17 août 2018 à 13:01, Moritz Lennert
<mlennert@club.worldonline.be>
a écrit :On 17/08/18 07:58, Jacki Pilon wrote:
Bonjour,
I coudn’t find a way to georeference a vector (with arbitrary X Y
coordinates) by using either a WMS or a raster layer. Any advice ?https://grass.osgeo.org/grass74/manuals/g.gui.gcp.html
It allows you to georeference a vector. If you want to use a WMS as
background you probably have to import it first using r.in.wms.Moritz
On 20/08/18 00:08, Jacki Pilon wrote:
Well, I start with a CSV file containing records of numbered things (houses, parcells...) having a noun (a proper noun) and X, Y coordinates values. These names and locations have been recorded from an old paper map (X and Y are in millimeters). The geographic coverage of the map is small (around 2 x 3 km, printed onto a 210 x 300 mm page).
The map shows hundreds of things worth being recorded.
I would like to georeference this set of "things" in order to display them in position, overlaid on a general map.
A few of them (for example chapels, churches, crossroads...) can be relatively easily located on modern, georeferenced, maps and hence, be used as ground control points.
I first build a vector layer in importing this ascii file in QGIS, and I could see a correct result, points at relative good positions and labels with the nouns.
But now, I have troubles in using the QGIS georeferencer, as it seems to accept only rasters (not vectors) and these rasters are supposed to be files from the computer. I would prefer to use a VMS multilayer map that would allow to take benefit of more than one single layer in the process of defining the ground control points.
If you are working with QGIS then this is not the right mailing list for you. You should use the dedicated QGIS mailing lists.
If you want to use GRASS, then you can use the tool I indicated, i.e. g.gui.gcp. You can also look at v.rectify, or a combination of m.transform and v.transform.
Moritz
I wanted to use GRASS because of it flexibility but I have now an installation problem (MS-Window7sp2). I tried both 32 and 64 bits versions.
1) The 32 bits versions crashed at the beginning :
Cleaning up temporary files…
Starting GRASS GIS…
WARNING: Concurrent mapset locking is not supported on Windows
/ / __ / | / / / / __/ / /
/ / __/ // / /| | _ \ \ / / __ / / _
/ // / , / ___ |/ // / / // // / / /
_// |// |/// _///_/
Welcome to GRASS GIS 7.4.0
GRASS GIS homepage: http://grass.osgeo.org
This version running through: Command Shell (C:\Windows\system32\cmd.exe)
Help is available with the command: g.manual -i
See the licence terms with: g.version -c
See citation options with: g.version -x
If required, restart the GUI with: g.gui wxpython
When ready to quit enter: exit
Launching GUI in the background, please wait…
Microsoft Windows [version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. Tous droits réservés.
C:\Users\Jacki>Traceback (most recent call last):
File “C:\Program Files (x86)\GRASS GIS 7.4.0\gui\wxpython\wxgui.py”, line 167, in sys.exit(main())
File “C:\Program Files (x86)\GRASS GIS 7.4.0\gui\wxpython\wxgui.py”, line 154, in main app = GMApp(workspaceFile)
File “C:\Program Files (x86)\GRASS GIS 7.4.0\gui\wxpython\wxgui.py”, line 48,in init wx.App.init(self, False)
File “C:\Program Files (x86)\GRASS GIS 7.4.0\Python27\lib\site-packages\wx-2.8-msw-unicode\wx_core.py”, line 7981, in init self._BootstrapApp()
File “C:\Program Files (x86)\GRASS GIS 7.4.0\Python27\lib\site-packages\wx-2.8-msw-unicode\wx_core.py”, line 7555, in _BootstrapApp return core.PyApp__BootstrapApp(*args, **kwargs)
File “C:\Program Files (x86)\GRASS GIS 7.4.0\gui\wxpython\wxgui.py”, line 101, in OnInit workspace=self.workspaceFile)
File “C:\Program Files (x86)\GRASS GIS 7.4.0\gui\wxpython\lmgr\frame.py”, line 142, in init self.notebook = self._createNoteBook()
File “C:\Program Files (x86)\GRASS GIS 7.4.0\gui\wxpython\lmgr\frame.py”, line 337, in _createNoteBook gcstyle=GC_PROMPT)
File “C:\Program Files (x86)\GRASS GIS 7.4.0\gui\wxpython\gui_core\goutput.py”, line 118, in init self.cmdPrompt = GPromptSTC(parent=self, menuModel=self._menuModel)
File “C:\Program Files (x86)\GRASS GIS 7.4.0\gui\wxpython\gui_core\prompt.py”, line 143, in init GPrompt.init(self, parent=parent, menuModel=menuModel)
File “C:\Program Files (x86)\GRASS GIS 7.4.0\gui\wxpython\gui_core\prompt.py”, line 57, in init self.mapList = self._getListOfMaps()
File “C:\Program Files (x86)\GRASS GIS 7.4.0\gui\wxpython\gui_core\prompt.py”, line 101, in _getListOfMaps result[‘raster’] = grass.list_strings(‘raster’)
File “C:\Program Files (x86)\GRASS GIS 7.4.0\etc\python\grass\script\core.py”, line 1226, in list_strings mapset=mapset).splitlines():
File “C:\Program Files (x86)\GRASS GIS 7.4.0\etc\python\grass\script\core.py”, line 476, in read_command return handle_errors(returncode, stdout, args, kwargs)
File “C:\Program Files (x86)\GRASS GIS 7.4.0\etc\python\grass\script\core.py”, line 332, in handle_errors returncode=returncode)
grass.exceptions.CalledModuleError: Module run None [‘g.list’, ‘–q’, ‘-m’, ‘type=raster’] ended with error
Process ended with non-zero return code -1073741511. See errors in the (error) output.
2) the 64 bits version went further, and the install seems correct, but :
v.in.vms gives a traceback :
Welcome to GRASS GIS 7.4.0
GRASS GIS homepage: http://grass.osgeo.org
This version running through: Command Shell (C:\Windows\system32\cmd.exe)
Help is available with the command: g.manual -i
See the licence terms with: g.version -c
See citation options with: g.version -x
If required, restart the GUI with: g.gui wxpython
When ready to quit enter: exit
Launching GUI in the background, please wait…
Microsoft Windows [version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. Tous droits réservés.
C:\Users\Jacki>Traceback (most recent call last):
File “C:\Program Files\GRASS GIS 7.4.0/gui/scripts/d.wms_wrapper.py”, line 214, in sys.exit(main())
File “C:\Program Files\GRASS GIS 7.4.0/gui/scripts/d.wms_wrapper.py”, line 207, in main temp_map = wms.GetMap(options, flags)
File “C:\Program Files\GRASS GIS 7.4.0\etc\r.in.wms\wms_base.py”, line 211, in GetMap self._initializeParameters(options, flags)
File “C:\Program Files\GRASS GIS 7.4.0\etc\r.in.wms\wms_base.py”, line 157, in _initializeParameters self.region[‘cols’] /
KeyError: ‘cols’
GRASS_INFO_END(5848,1)
I must confess that I don’t know how to escape from this situation… (this is why I turned to QGIS, but without satisfactory response).
Is this a problem with Windows 7 ? with Python ? with the installation script ? What is your opinion ?
Sorry to take your time… and thanks, anyway.
Yours,
Jacki
This is more a question for our windows gurus...
On 20/08/18 16:41, Jacki Pilon wrote:
I wanted to use GRASS because of it flexibility but I have now an installation problem (MS-Window7sp2). I tried both 32 and 64 bits versions.
*
1) The 32 bits versions crashed at the beginning :*
Cleaning up temporary files...
Starting GRASS GIS...
WARNING: Concurrent mapset locking is not supported on Windows\_\_\_\_\_\_\_\_\_\_ \_\_\_ \_\_\_\_\_\_\_\_\_\_ \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_ / \_\_\_\_/ \_\_ \\/ | / \_\_\_/ \_\_\_/ / \_\_\_\_/ \_/ \_\_\_/ / / \_\_/ /\_/ / /| | \\\_\_ \\\\\_ \\ / / \_\_ / / \\\_\_ \\ / /\_/ / \_, \_/ \_\_\_ |\_\_\_/ /\_\_/ / / /\_/ // / \_\_\_/ / \\\_\_\_\_/\_/ |\_/\_/ |\_/\_\_\_\_/\_\_\_\_/ \\\_\_\_\_/\_\_\_//\_\_\_\_/
Welcome to GRASS GIS 7.4.0
GRASS GIS homepage: http://grass.osgeo.org
This version running through: Command Shell (C:\Windows\system32\cmd.exe)
Help is available with the command: g.manual -i
See the licence terms with: g.version -c
See citation options with: g.version -x
If required, restart the GUI with: g.gui wxpython
When ready to quit enter: exitLaunching <wxpython> GUI in the background, please wait...
Microsoft Windows [version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. Tous droits réservés.C:\Users\Jacki>Traceback (most recent call last):
File "C:\Program Files (x86)\GRASS GIS 7.4.0\gui\wxpython\wxgui.py", line 167, in <module> sys.exit(main())
File "C:\Program Files (x86)\GRASS GIS 7.4.0\gui\wxpython\wxgui.py", line 154, in main app = GMApp(workspaceFile)
File "C:\Program Files (x86)\GRASS GIS 7.4.0\gui\wxpython\wxgui.py", line 48,in __init__ wx.App.__init__(self, False)
File "C:\Program Files (x86)\GRASS GIS 7.4.0\Python27\lib\site-packages\wx-2.8-msw-unicode\wx\_core.py", line 7981, in __init__ self._BootstrapApp()
File "C:\Program Files (x86)\GRASS GIS 7.4.0\Python27\lib\site-packages\wx-2.8-msw-unicode\wx\_core.py", line 7555, in _BootstrapApp return _core_.PyApp__BootstrapApp(*args, **kwargs)
File "C:\Program Files (x86)\GRASS GIS 7.4.0\gui\wxpython\wxgui.py", line 101, in OnInit workspace=self.workspaceFile)
File "C:\Program Files (x86)\GRASS GIS 7.4.0\gui\wxpython\lmgr\frame.py", line 142, in __init__ self.notebook = self._createNoteBook()
File "C:\Program Files (x86)\GRASS GIS 7.4.0\gui\wxpython\lmgr\frame.py", line 337, in _createNoteBook gcstyle=GC_PROMPT)
File "C:\Program Files (x86)\GRASS GIS 7.4.0\gui\wxpython\gui_core\goutput.py", line 118, in __init__ self.cmdPrompt = GPromptSTC(parent=self, menuModel=self._menuModel)
File "C:\Program Files (x86)\GRASS GIS 7.4.0\gui\wxpython\gui_core\prompt.py", line 143, in __init__ GPrompt.__init__(self, parent=parent, menuModel=menuModel)
File "C:\Program Files (x86)\GRASS GIS 7.4.0\gui\wxpython\gui_core\prompt.py", line 57, in __init__ self.mapList = self._getListOfMaps()
File "C:\Program Files (x86)\GRASS GIS 7.4.0\gui\wxpython\gui_core\prompt.py", line 101, in _getListOfMaps result['raster'] = grass.list_strings('raster')
File "C:\Program Files (x86)\GRASS GIS 7.4.0\etc\python\grass\script\core.py", line 1226, in list_strings mapset=mapset).splitlines():
File "C:\Program Files (x86)\GRASS GIS 7.4.0\etc\python\grass\script\core.py", line 476, in read_command return handle_errors(returncode, stdout, args, kwargs)
File "C:\Program Files (x86)\GRASS GIS 7.4.0\etc\python\grass\script\core.py", line 332, in handle_errors returncode=returncode)
grass.exceptions.CalledModuleError: Module run None ['g.list', '--q', '-m', 'type=raster'] ended with error
Process ended with non-zero return code -1073741511. See errors in the (error) output.*2) the 64 bits version went further, and the install seems correct, but :*
_v.in.vms gives a traceback :_
Welcome to GRASS GIS 7.4.0
GRASS GIS homepage: http://grass.osgeo.org
This version running through: Command Shell (C:\Windows\system32\cmd.exe)
Help is available with the command: g.manual -i
See the licence terms with: g.version -c
See citation options with: g.version -x
If required, restart the GUI with: g.gui wxpython
When ready to quit enter: exitLaunching <wxpython> GUI in the background, please wait...
Microsoft Windows [version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. Tous droits réservés.C:\Users\Jacki>Traceback (most recent call last):
File "C:\Program Files\GRASS GIS 7.4.0/gui/scripts/d.wms_wrapper.py", line 214, in <module> sys.exit(main())
File "C:\Program Files\GRASS GIS 7.4.0/gui/scripts/d.wms_wrapper.py", line 207, in main temp_map = wms.GetMap(options, flags)
File "C:\Program Files\GRASS GIS 7.4.0\etc\r.in.wms\wms_base.py", line 211, in GetMap self._initializeParameters(options, flags)
File "C:\Program Files\GRASS GIS 7.4.0\etc\r.in.wms\wms_base.py", line 157, in _initializeParameters self.region['cols'] /
KeyError: 'cols'
_
GRASS_INFO_END(5848,1)
_I must confess that I don't know how to escape from this situation.... (this is why I turned to QGIS, but without satisfactory response).
Is this a problem with Windows 7 ? with Python ? with the installation script ? What is your opinion ?
Sorry to take your time... and thanks, anyway.Yours,
Jacki
7.4.0\etc\python\grass\script\core.py", line 332, in handle_errors
returncode=returncode)
grass.exceptions.CalledModuleError: Module run None ['g.list', '--q',
'-m', 'type=raster'] ended with error
Process ended with non-zero return code -1073741511. See errors in the
(error) output.
see
CalledModuleError and -1073741511 return code
<https://grasswiki.osgeo.org/wiki/WinGRASS_errors#The_GRASS_GIS_exits_when_started_with_g.list_CalledModuleError_and_-1073741511_return_code>
-----
best regards
Helmut
--
Sent from: http://osgeo-org.1560.x6.nabble.com/Grass-Users-f3884509.html