Opened 17 years ago
Closed 16 years ago
#273 closed defect (fixed)
Support for Oracle Coordinate Sytem 81989 (British National Grid)
Reported by: | crispinatime | Owned by: | |
---|---|---|---|
Priority: | low | Milestone: | |
Component: | General | Version: | 1.2.0 |
Severity: | minor | Keywords: | |
Cc: | hugueswski | External ID: |
Description
Hi,
MGOS 1.2 seems to not correctly support the UK coordinate ststem in Oracle (9i in this case) with CRSID of 81989 (using King 0.7.3 if that makes any difference). The layers preview and the maps fail with logs to MGServer (below). I have tried adding definitions to a variety of files, including the WebStudio projections.xml to try and avoid Studio2008 and the Mentor definitions - I assume there is an inconsistancy between the definition files which needs to be resolved or documented.
What I really want to do for performance is have a manual override and not do any projections on the data as I "know" it is acceptable to have the layers/maps on Arbitraty X-Y but I do not have a per-layer override for coordinate systems - worth a RFC?
I am sure Mentor going opensource will help long-term but if there is a short-term file-edit or workaround that would be much appreciated!
There was a similar error 115 fixed previously.
Crispin
ERROR 6: Failed to initialize PROJ.4 with `+ellps=airy +units=m +no_defs '. projection not named ERROR 6: Failed to initialize PROJ.4 with `+ellps=airy +units=m +no_defs '. projection not named ERROR 6: Failed to initialize PROJ.4 with `+ellps=airy +units=m +no_defs '. projection not named (2260|3516) The coordinate system is invalid. PROJCS["British National Grid", GE OGCS [ "Ordnance Survey Great Brit", DATUM ["Ordnance Survey Great Brit", SPHERO ID ["Airy 1930", 6377563.396000, 299.324965]], PRIMEM [ "Greenwich", 0.000000 ], UNIT ["Decimal Degree", 0.01745329251994330]], PROJECTION ["Transverse Mercator "], PARAMETER ["Scale_Factor", 0.999601], PARAMETER ["Central_Meridian", -2.0000 00], PARAMETER ["Latitude_Of_Origin", 49.000000], PARAMETER ["False_Easting", 40 0000.000000], PARAMETER ["False_Northing", -100000.000000], UNIT ["Meter", 1.000 000000000]] Could not create coordinate system forward transformation with specified coordin ate systems. Exception occurred in method MgCoordinateSystem.MgCoordinateSystem at line 77 in file c:\build_bond_area\mapguide_open_source_v1.2\build_18.1\mgdev\common\geome try\CoordinateSystem/CoordinateSystem.cpp ERROR 6: Failed to initialize PROJ.4 with `+ellps=airy +units=m +no_defs '. projection not named (2260|564) The coordinate system is invalid. PROJCS["British National Grid", GEO GCS [ "Ordnance Survey Great Brit", DATUM ["Ordnance Survey Great Brit", SPHEROI D ["Airy 1930", 6377563.396000, 299.324965]], PRIMEM [ "Greenwich", 0.000000 ], UNIT ["Decimal Degree", 0.01745329251994330]], PROJECTION ["Transverse Mercator" ], PARAMETER ["Scale_Factor", 0.999601], PARAMETER ["Central_Meridian", -2.00000 0], PARAMETER ["Latitude_Of_Origin", 49.000000], PARAMETER ["False_Easting", 400 000.000000], PARAMETER ["False_Northing", -100000.000000], UNIT ["Meter", 1.0000 00000000]] Could not create coordinate system forward transformation with specified coordin ate systems. Exception occurred in method MgCoordinateSystem.MgCoordinateSystem at line 77 in file c:\build_bond_area\mapguide_open_source_v1.2\build_18.1\mgdev\common\geome try\CoordinateSystem/CoordinateSystem.cpp
Change History (9)
comment:1 by , 17 years ago
Milestone: | 2.0 |
---|---|
Priority: | high → medium |
comment:2 by , 17 years ago
The coordinate system specified is not supported by the underlying Proj.4 coordinate system library used by MapGuide. However, Mentor does support it.
I tried this coordinate system with the latest Proj.4 used by the upcoming MGOS 2.0 and it still fails.
comment:3 by , 17 years ago
Thanks Bruce ... is there a way to add the definition to any of the PROJ4 support files? The "obvious" changes I applied were not successful.
comment:4 by , 17 years ago
Priority: | medium → low |
---|---|
Severity: | major → minor |
Whilst this is not closed because:
a) The error comes up horribly with a default installation b) There is no way I know to manually edit the coordinate system files to comply
I have changed to minor because of the available workaround:
i) In MapGuide Studio I can set a "coordinate system override" enabling me to viaualise the data on a map/layout (but strangely not the layer preview) and continue working.
Hopefully the future opensourcing of Mentor (it's all gone quiet about that?) will close the ticket.
comment:5 by , 17 years ago
Cc: | added |
---|
comment:6 by , 16 years ago
Crispin, have you had a chance to test this with the current 2.1? I can provide you with a new installer if you'd like.
comment:7 by , 16 years ago
Jason,
I still can't get my 2.1 IIS installer/code to register the FCGI properly - if you have a location of a MSI I can grab you know where to find me directlt... or I can wait for an official 2.1 beta (soon?)
comment:8 by , 16 years ago
Unfortunately, I haven't been able to figure out the IIS7 installer defects yet. If you'd like I can provide you with a step-by-step of setting up the handler mappings, or possibly some command-line tool parameters you could run.
comment:9 by , 16 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
All,
Tested on new CS-Map enabled MapGuide 2.1 unofficial 0.7 and KingOra 0.8.9
All OK apart from one case where featuresource is OracleSrid81989 and the mapdefinition is set to Arbitrary-XY. I can understand the message below but also think the with arbitrary-coords there should be no initialisation of a geodetic transform and coords are just passed through. As I can set a CS-override on the featuresource this is also not so important.
Crispin
<2009-05-20T11:43:22> 2560 Ajax Viewer 127.0.0.1 Administrator
Error: Failed to stylize layer: HADES_MasterMap_81989
The coordinate system initialization failed. Could not initialize the geodetic transformation.
- MgMappingUtil.StylizeLayers() line 776 file c:\osgeo\mapguide_trunk\mgdev\server\src\services\mapping\MappingUtil.cpp
Clearing milestone, no assignee.