Jump to content

Extension talk:CoordinateConversion

About this board

Kghbln (talkcontribs)

Just discovered it via WikiApiary. I guess it will be perfect to also get CH1995 support. :)

Egel (talkcontribs)

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.

Kghbln (talkcontribs)

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.

Kghbln (talkcontribs)

See the test page. I'd say the CH1903 accuracy is pretty good. :)

Egel (talkcontribs)
Kghbln (talkcontribs)

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.

Kghbln (talkcontribs)

Now documented the special page.

Reply to "Cool extension"
Kghbln (talkcontribs)

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 ...

Egel (talkcontribs)

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 (talkcontribs)

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.

Kghbln (talkcontribs)

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.

Kghbln (talkcontribs)

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.

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

3
Kghbln (talkcontribs)

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

Egel (talkcontribs)

I was indeed working on the Swiss systems. It should now be usable again.

Kghbln (talkcontribs)

Installed now. Great and thanks a lot for your swift fix.

There are no older topics