Opened 14 years ago

Closed 14 years ago

Last modified 13 years ago

#15533 closed (fixed)

OSMGeoAdmin fails on Fedora 14

Reported by: cnorthwood Owned by: jbronn
Component: GIS Version: 1.2
Severity: Keywords:
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: yes
Easy pickings: no UI/UX: no

Description

When trying to render a model in the admin using OSMGeoAdmin, it fails with an SRSException. This appears to be because the GDAL bundled with Fedora doesn't use the 900913 SRID for the Google projection, but the "official" 3857 one.

I've attached a patch (against 15704) which will attempt to transform using 3857 if a transformation using the 900913 transform fails. This appears to fix my issue.

Attachments (1)

osmgeoadminfix.diff (1.1 KB ) - added by cnorthwood 14 years ago.

Download all attachments as: .zip

Change History (8)

by cnorthwood, 14 years ago

Attachment: osmgeoadminfix.diff added

comment:1 by Russell Keith-Magee, 14 years ago

Triage Stage: UnreviewedAccepted

comment:2 by jbronn, 14 years ago

milestone: 1.3
Owner: changed from nobody to jbronn
Patch needs improvement: set
Status: newassigned

Apparently the Fedora packagers didn't like the licensing of the cubewerx_extra.wkt file where 900913 lives. 3857 was added in GDAL 1.7, thus we need to try and support previous versions.

I agree this is a bug, but I'm -1 on the patch implementation. The right thing to do would be to introspect on the GDAL version, and use 3857 when 1.7+ is used, and 900913 otherwise.

comment:3 by jbronn, 14 years ago

milestone: 1.31.4

OpenLayers will not support 3857 until 2.11, so I'm moving the milestone to 1.4.

in reply to:  3 comment:4 by jbronn, 14 years ago

milestone: 1.41.3

Replying to jbronn:

OpenLayers will not support 3857 until 2.11, so I'm moving the milestone to 1.4.

After talking with Christopher Schmidt, a one line JavaScript fix is enough until OpenLayers 2.11 is released. Initial tests look good, should be in trunk and backported soon.

comment:5 by jbronn, 14 years ago

Resolution: fixed
Status: assignedclosed

In [15845]:

Fixed #15533 -- Now use 3857 as spherical mercator projection instead of deprecated 900913 on platforms that support it. Thanks to cnorthwood for bug report and Christopher Schmidt for OpenLayers JavaScript workaround.

comment:6 by jbronn, 14 years ago

In [15846]:

[1.2.X] Fixed #15533 -- Now use 3857 as spherical mercator projection instead of deprecated 900913 on platforms that support it. Thanks to cnorthwood for bug report and Christopher Schmidt for OpenLayers JavaScript workaround.

Backport of r15845 from trunk.

comment:7 by Jacob, 13 years ago

milestone: 1.3

Milestone 1.3 deleted

Note: See TracTickets for help on using tickets.
Back to Top