Code

Opened 3 years ago

Closed 3 years ago

Last modified 3 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: UI/UX:

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 3 years ago.

Download all attachments as: .zip

Change History (8)

Changed 3 years ago by cnorthwood

comment:1 Changed 3 years ago by russellm

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Triage Stage changed from Unreviewed to Accepted

comment:2 Changed 3 years ago by jbronn

  • milestone set to 1.3
  • Owner changed from nobody to jbronn
  • Patch needs improvement set
  • Status changed from new to assigned

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 follow-up: Changed 3 years ago by jbronn

  • milestone changed from 1.3 to 1.4

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

comment:4 in reply to: ↑ 3 Changed 3 years ago by jbronn

  • milestone changed from 1.4 to 1.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 Changed 3 years ago by jbronn

  • Resolution set to fixed
  • Status changed from assigned to closed

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 Changed 3 years ago by jbronn

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 Changed 3 years ago by jacob

  • milestone 1.3 deleted

Milestone 1.3 deleted

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.