Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A non well formed numeric value encountered - Wrong polygon data #6

Open
Okspen opened this issue Nov 6, 2017 · 0 comments
Open

A non well formed numeric value encountered - Wrong polygon data #6

Okspen opened this issue Nov 6, 2017 · 0 comments

Comments

@Okspen
Copy link

Okspen commented Nov 6, 2017

Hi. Thanks for the project!

The issue concerns PHP 7.1 and the "A non well formed numeric value encountered" notice.

It occurs here: offline-country-reverse-geocoder.php:80. $pointY appears to have a ) in the end.

Looks like the problem is in the wrong polygon data. It can be checked by looking for 41.871933000000126) in polygons.properties file.

I have solved the problem by trimming $pointX and $pointY.
$pointX = trim($pointX, '()');
$pointY = trim($pointY, '()');

Thanks

ariselseng added a commit to ariselseng/offline-country-reverse-geocoder that referenced this issue Jan 22, 2018
@elefher elefher mentioned this issue Apr 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant