Jump to content

Extension talk:CoordinateConversion

Add topic
From mediawiki.org
Latest comment: 5 years ago by Kghbln in topic Cool extension


Cool extension

[edit]

Just discovered it via WikiApiary. I guess it will be perfect to also get CH1995 support. :) [[kgh]] (talk) 10:26, 13 September 2020 (UTC)Reply

I had just created a page for it yesterday on WikiApiary, because I was curious if another site is using it as well. Do you mean "CHTRS95", Swiss Terrestrial Reference System 1995 or "CH1903+" (LV95), the updates done during the 1990s to CH1903 (LV03)? I have found the official "Approximate formulas for the transformation between Swiss projection coordinates and WGS84" so I will update the formulas to "CH1903+" soon. The error should less than 1 m. Egel (talk) 16:31, 13 September 2020 (UTC)Reply
This is how I got to know about the extension. :)
Actually I used the incorrect reference to the updates in the 90ies.
The Swiss use CH1903/LV03 and CH1903+/LV95. See the box in the bottom left at this example.
Anyhow this is not an error, it is an feature request. Take your time. I appreciate your work here. [[kgh]] (talk) 08:41, 14 September 2020 (UTC)Reply
See the test page. I'd say the CH1903 accuracy is pretty good. :) [[kgh]] (talk) 14:30, 14 September 2020 (UTC)Reply
Have you found the special page: https://sandbox.semantic-mediawiki.org/wiki/Spécial:CCTest ? Egel (talk) 15:41, 14 September 2020 (UTC)Reply
No, since it was not documented. Thanks for the pointer! Nice overview of use cases and expected results. I guess you got inspiration from the Math extension which is the only one I know of which is providing a similar test page. [[kgh]] (talk) 09:59, 15 September 2020 (UTC)Reply
Now documented the special page. [[kgh]] (talk) 10:04, 15 September 2020 (UTC)Reply

Marked as beta

[edit]

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


Is this due to lack of confidence in the code base, some known issues like incorrect conversions or for some other reason. The extension is around for some time now so ... [[kgh]] (talk) 10:27, 13 September 2020 (UTC)Reply

This is my first MediaWiki extension and one of my first PHP-projects and it is only tested on one site. In particular, it has not yet been sufficiently tested under various conditions. As far as I can tell, it doesn't give really incorrect results, but I am a bit uncertain about the accuracy; +/- 1 m, +/- 10 m, +/- 100 m? Especially because I do not know the accuracy of calculations in PHP. Egel (talk) 15:56, 13 September 2020 (UTC)Reply
Still planned functionalities are SMW / Maps compatibility and heights. It already depends a bit on Maps/SMW because it uses a library installed by those extensions. The planned / target error is 1 to 10 m. Egel (talk) 16:38, 13 September 2020 (UTC)Reply
This question was indeed just to get insight into the status of the extension. I believe other interested parties will appreciate your information here, too.
It is a really good effort. Since I am not a programmer I value a lot that you dare working on this. [[kgh]] (talk) 08:43, 14 September 2020 (UTC)Reply
Then it comes to accuracy I will once I installed the extension contact someone who will be able to assess at least for the Swiss conversions created. [[kgh]] (talk) 08:45, 14 September 2020 (UTC)Reply
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Fatal error: Uncaught ParseError: syntax error, unexpected '–' (T_STRING)

[edit]

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


I just tried to install the extension on s-mw sandbox wiki however for MW 1.35, Maps 7.20, PHP 7.2 it fails with:

Error
Fatal error: Uncaught ParseError: syntax error, unexpected '–' (T_STRING) in /../w/extensions/CoordinateConversion/includes/CH1903.php:25
Stack trace
#0 [internal function]: AutoLoader::autoload('CH1903')
#1 /../w/includes/parser/Parser.php(4864): spl_autoload_call('CH1903')
#2 /../w/extensions/CoordinateConversion/CoordinateConversion.hooks.php(25): Parser->setFunctionHook('wgs84_2ch03', Array)
#3 /../w/includes/HookContainer/HookContainer.php(320): CoordinateConversionHooks::onParserFirstCallInit(Object(Parser))
#4 /../w/includes/HookContainer/HookContainer.php(131): MediaWiki\HookContainer\HookContainer->callLegacyHook('ParserFirstCall...', Array, Array, Array)
#5 /../w/includes/HookContainer/HookRunner.php(2965): MediaWiki\HookContainer\HookContainer->run('ParserFirstCall...', Array)
#6 /../w/includes/parser/Parser.php(532): MediaWiki\HookContainer\HookRunner->onParserFirstCallInit(Object(Parser)) in /../w/includes/parser/Parser.php on line 4864

Talking about the Swiss system here perhaps caused the grump. :D [[kgh]] (talk) 08:49, 14 September 2020 (UTC)Reply

I was indeed working on the Swiss systems. It should now be usable again. Egel (talk) 10:36, 14 September 2020 (UTC)Reply
Installed now. Great and thanks a lot for your swift fix. [[kgh]] (talk) 14:15, 14 September 2020 (UTC)Reply
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.