gvSIG bugs #1098

Numeric scale for geographic coordinate systems (i.e. EPSG:4326) is wrong when you add a view in map

Added by María Maluenda over 11 years ago. Updated over 10 years ago.

Status:Closed% Done:

0%

Priority:NormalSpent time:-
Assignee:Juan Lucas Domínguez
Category:Document layout
Target version:2.1.0-2217-devel
Severity: Add-on version:
gvSIG version:2.0.0 Add-on build:
gvSIG build:2052 Add-on resolve version:
Operative System: Add-on resolve build:
Keywords: Proyecto:
Has patch:No Hito:
Add-on name:Unknown

Description

Numeric scale for geographic coordinate systems (i.e. EPSG:4326) is wrong when you add a view(4326) in map, the scale also appears incorrect.
1.- Open gvSIG
2.- Open new view
3.- Change properties of View:Change current projection to EPSG 4326
4.- Add layer (http://downloads.gvsig.org/download/geodata/vector/SHP2D/esp_4326.zip)
5.- Click Show menu/ Select project for open the project manager dialog box
6.- Open new Map
7.- Insert the view in mapa (Insert view tool)
8.- Insert scale in map (Insert scale tool)
The scale that appears is incorrect.
----------------------------------
La escala numérica de sistemas de coordenadas geográficas (EPSG: 4326) es incorrecta cuando se agrega una vista (4326) en el mapa, la escala también resulta errónea.
1 -. Abrir gvSIG
2 -. Abrir una Vista
3 - Cambiar las propiedades de la Vista. Cambiar proyección actual a EPSG: 4326
4 -. Añadir capa (http://downloads.gvsig.org/download/geodata/vector/SHP2D/esp_4326.zip)
5 -. Haga clic en menu Show / Seleccionar proyecto para abrir el cuadro de diálogo de Gestor de proyectos
6 -. Abrir un nuevo mapa
7 -. Insertar la vista en el mapa (herramienta Insertar Vista)
8 -. Insertar escala
La escala que aparece no es correcta.

History

#1 Updated by María Maluenda over 11 years ago

In gvSIG 1.11 with View and layer in EPSG 4326, also appears incorrect the scale of the map.

#2 Updated by Juan Lucas Domínguez over 10 years ago

  • Assignee set to Juan Lucas Domínguez

#3 Updated by Juan Lucas Domínguez over 10 years ago

  • Status changed from New to Fixed
  • Target version set to 2.1.0-2223-rc1

Fixed computation of scale in layout document plugin.
gvsig-app-document-layout:r88

======

This clarifies the current (and strange) behavior of the getScale(minx, maxx, pixels, dpi) method of IProjection. This should be changed (minx and maxx should be in map units instead of meters or simply remove the method from the API).
gvsig-jcrs:r207
gvsig-desktop:r40983

#4 Updated by Joaquín del Cerro Murciano over 10 years ago

  • Target version changed from 2.1.0-2223-rc1 to 2.1.0-2217-devel

#5 Updated by Álvaro Anguix over 10 years ago

  • Status changed from Fixed to Closed

Also available in: Atom PDF