GithubHelp home page GithubHelp logo

Comments (6)

arjendk avatar arjendk commented on September 10, 2024

Addition: the same goes for UTFGrid!
http://myserver.com/tiles/tileserver.php?/pc4_multi/17/67546/43194.grid.json

from tileserver-php.

arjendk avatar arjendk commented on September 10, 2024

Update: it does work correctly on my local Apache installation.

On the server phpinfo() reports:

  • PHP 5.3.3
  • "configure command" contains --without-sqlite and --without-sqlite3
  • pdo_sqlite 3.6.20
  • sqlite3 0.7-dev

Local:

  • PHP 5.5.11
  • "configure command" contains --with-sqlite=shared,/opt/lampp and --with-sqlite3=/opt/lampp
  • pdo_sqlite 3.8.3.1
  • sqlite3 0.7-dev

Apparently PHP is configured without SQLite on the server - but it does seem to work (most of the time). Could this be the problem?

from tileserver-php.

klokan avatar klokan commented on September 10, 2024

Thanks for the reports. We will try to reproduce this on our side - this sort of error is hard to fix.

What if you try to catch the exception and read the tile again?

from tileserver-php.

daliborjanak avatar daliborjanak commented on September 10, 2024

Hmm strange. Have you got error logs or something more?
Try to set base url manualy. Edit line 12 in tileserver.php:

$config['baseUrls'] = array('myserver.com/tiles');

or add to path and /tileserver.php

$config['baseUrls'] = array('myserver.com/tiles/tileserver.php');

from tileserver-php.

arjendk avatar arjendk commented on September 10, 2024

No error occured so no error was logged nor could an exception be caught. The SQLite query just didn't return anything sometimes.

We were able to solve this problem by setting the connection persistance of the database, PDO::ATTR_PERSISTENT to false (line 254). It doesn't seem to affect performance very much, as far as we can tell. Hope this helps!

from tileserver-php.

klokan avatar klokan commented on September 10, 2024

No action on our side here. Closing.

from tileserver-php.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.