Modify

Opened 19 hours ago

Last modified 92 minutes ago

#24737 new defect

EPSG:2272 vector data imported into JOSM appears offset from correctly aligned imagery

Reported by: eschlossb@… Owned by: team
Priority: normal Milestone:
Component: Core bugreport Version:
Keywords: projection Cc:

Description

We are using JOSM with the PASDA Philadelphia 2022 orthoimagery WMS:

https://imagery.pasda.psu.edu/arcgis/services/pasda/PhiladelphiaImagery2022/MapServer/WMSServer?SERVICE=WMS&request=getcapabilities

The imagery is native EPSG:2272 / NAD83 Pennsylvania South StatePlane, US feet.

Annotations created directly in JOSM against this imagery export correctly: when opened in QGIS over the same imagery, they align pixel-perfect.

However, vector data created in QGIS in EPSG:2272 and aligned to the same imagery appears offset when loaded into JOSM. The offset is visually noticeable, on the order of several meters, and appears slightly skewed/distorted rather than a simple uniform shift.

Expected behavior

Vector data created in QGIS in EPSG:2272 and aligned to the PASDA Philadelphia imagery should appear in the same location when loaded into JOSM against that imagery.

Actual behavior

The QGIS-created EPSG:2272 vector data appears offset from the imagery when loaded into JOSM.

Screenshot 1: QGIS-created EPSG:2272 vector aligned with imagery
No image "qgis_vector.png" attached to Ticket #1

Screenshot 2: same vector offset when loaded into JOSM
No image "josm_vector_import.png" attached to Ticket #2

Important negative test

Annotations created directly in JOSM against the same imagery, exported as .osm, and opened in QGIS align correctly with the imagery.

This suggests the issue is not with the WMS imagery alignment in JOSM and not with JOSM’s .osm export. The issue appears specific to importing or transforming externally created EPSG:2272 vector data into JOSM.

Screenshot 3: JOSM-created annotation opened in QGIS and aligned correctly
No image "josm_annotation_in_q.png" attached to Ticket #3

Relevant warning

When loading a shapefile using this CRS (2272), JOSM displays:

JOSM was unable to find a strict mathematical transformation between
'NAD_1983_StatePlane_Pennsylvania_South_FIPS_3702_Feet' and WGS84.
Do you want to try a lenient method, which will perform a non-precise
transformation (with location errors up to 1 km)?

Reproduction outline
Load the PASDA Philadelphia 2022 WMS imagery in QGIS.
Create a vector point or line in QGIS in EPSG:2272, aligned to a visible imagery feature.
Load the same imagery WMS in JOSM.
Import the QGIS-created EPSG:2272 vector data into JOSM.
Observe that the vector appears offset from the imagery.

Control test:

Digitize an annotation directly in JOSM against the imagery.
Export it from JOSM as .osm.
Open the .osm in QGIS over the same imagery.
Observe that the annotation aligns correctly.
Environment
JOSM version: 19555
Java version: 21.0.11
Operating systems tested: Windows 11 and macOS
JOSM projections tested: EPSG:3857 and EPSG:2272
Imagery source: PASDA PhiladelphiaImagery2022 WMS
Source imagery CRS: EPSG:2272 / NAD83 Pennsylvania South StatePlane, US feet
Vector source software: QGIS 3.44.10
Vector CRS: EPSG:2272

Attachments (4)

vector_in_q.png (909.4 KB ) - added by eschlossb@… 19 hours ago.
annotation_in_q.png (1.1 MB ) - added by anonymous 19 hours ago.
vector_in_josm.png (1.6 MB ) - added by anonymous 19 hours ago.
osm-to-qgis-error.png (2.2 MB ) - added by eschlossb@… 93 minutes ago.

Change History (5)

by eschlossb@…, 19 hours ago

Attachment: vector_in_q.png added

by anonymous, 19 hours ago

Attachment: annotation_in_q.png added

by anonymous, 19 hours ago

Attachment: vector_in_josm.png added

by eschlossb@…, 93 minutes ago

Attachment: osm-to-qgis-error.png added

comment:1 by anonymous, 92 minutes ago

Here is more on the error. A sample annotation was made in JOSM and immediately exported as a .osm file and loaded into QGIS. Substantial offset was introduced somewhere along the way here.


Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The owner will remain team.
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from team to the specified user.
Next status will be 'needinfo'. The owner will be changed from team to eschlossb@….
as duplicate The resolution will be set to duplicate. Next status will be 'closed'. The specified ticket will be cross-referenced with this ticket.
The owner will be changed from team to anonymous. Next status will be 'assigned'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.