Re: [OSM-dev-fr] Génération de tuiles vectorielles avec OpenMapTiles

2019-11-08 Thread Frédéric Rodrigo

Le 04/11/2019 à 00:03, François de Metz a écrit :

On Wed, Oct 30, 2019 at 12:06:48PM +0100, Frédéric Rodrigo wrote:

Le 29/10/2019 à 11:16, François de Metz a écrit :

On Tue, Oct 29, 2019 at 09:24:40AM +0100, Frédéric Rodrigo wrote:

Ce sur quoi je suis en train de travailler est de plus haut niveau. Un peu
comme un tileserver-gl mais mais avec calcule à la volé. Ça sert les tuiles
vecto, les styles, et la version rasteur le tout avec du cache.

Pour l'instant je n'ai pas utilisé postile, j'attends qu'il produise le
tilejson (mais ça devrait arriver
https://github.com/Oslandia/postile/issues/2 )

Le but est de le publier, mais là c'est pas encore très sec, je peux le
communiquer sur demande.

Ca parait top !

Je résume la discussion, j'importe et met à jour les données dans le postgres, 
et je génère directement les tuiles à partir de celui ci, sans pré-génération.

Si ton projet permet de cacher et d'invalider les zones mise à jour, ca 
m'intéresse beaucoup.

François


Le projet est maintenant disponible sur github

https://github.com/makinacorpus/makina-maps

Ça devrait être possible de l'installer et de le lancer ;)


Par contre l'invalidation du cache n'est pas encore là.

Hello,

Top ! J'ai fini par prendre le temps de l'installer et de le tester et cela 
fonctionne bien. Merci !

Je vais avancer sur mon import et la mise à jour des données et reviendrai 
dessus.



Il y a maintenant le support de la mise à jour et de l'invalidation du 
cache.




___
dev-fr mailing list
dev-fr@openstreetmap.org
https://lists.openstreetmap.org/listinfo/dev-fr


Re: [OSM-dev] Issue with way id 742619958 / changeset 76711047 from 2019-11-06T15:32:03Z (Invalid layer value)

2019-11-08 Thread Simon Poole

Am 08.11.2019 um 17:41 schrieb Michael Reichert:
>
> strings (up to 256 characters). 
255



signature.asc
Description: OpenPGP digital signature
___
dev mailing list
dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] Issue with way id 742619958 / changeset 76711047 from 2019-11-06T15:32:03Z (Invalid layer value)

2019-11-08 Thread Michael Reichert
Hi Bart,

Am 08.11.19 um 17:04 schrieb Bart Smienk:
> I've found out my OSM Tile Server has stopped updating and osm2pgsql
> (v1.2) gives off the following error:
> 
> DB writer thread failed due to ERROR: result COPY_END for
> planet_osm_line failed: ERROR:  invalid input syntax for integer: "-"
> CONTEXT:  COPY planet_osm_line, line 1437, column layer: "-"
> 
> Looking through its changefile, the following entry can be found:
> 
>      uid="978786" user="padvinder" changeset="76711047">
>   
>   
>   
>   
>   
>     
> 
> This seems to be malformed, as the layer should've never been "-", as
> this is not a valid integer.

It is valid from API point of view as any tags are just a pair of
strings (up to 256 characters). The OSM API is living freedom of
tagging, it does care how your keys and values look like except some
basic checks such as length of the strings.

> You can see this for yourself at:
> https://planet.openstreetmap.org/replication/minute/003/747/729.osc.gz
> Also more information on the layer key is over here:
> https://wiki.openstreetmap.org/wiki/Key:layer
> 
> Not sure where to make the actual bug report, so I'm mailing the dev
> mailgroup, does anyone of you know where this issue should be posted so
> this issue won't present itself again in future replication files?

It is an Osm2pgsql bug which should check that valid integers are
written via PostgreSQL COPY into a integer column. The bug tracker is at
https://github.com/openstreetmap/osm2pgsql/issues

I cannot reproduce your bug. I tried the master branch (currently equal
to 1.2.0 release).

This does not lead to the bug you observed:
./osm2pgsql -d osm2pgsqldev \
--style ~/git/openstreetmap-carto/openstreetmap-carto.style \
--tag-transform ~/git/openstreetmap-carto/openstreetmap-carto.lua \
--cache 10 w742619958.osm

And even using C tag transform works:
./osm2pgsql -d osm2pgsqldev \
--style ~/git/openstreetmap-carto/openstreetmap-carto.style \
--cache 10 w742619958.osm

Using the Osm2pgsql style file (and C tag transforms) works as well:
./osm2pgsql -d osm2pgsqldev --style ../default.style --cache 10
/tmp/w742619958.osm

The input file is (without personal metadata which does not change
anything here):

http://www.openstreetmap.org/copyright;
license="http://opendatacommons.org/licenses/odbl/1-0/;>
 
 
 
  
  
  
  
  
 


All three commands import the way into the database but the layer column
is empty as expected for the first and the second one.

How can your bug be reproduced?

Best regards

Michael



-- 
Michael Reichert  www.geofabrik.de
Geofabrik GmbHHandelsregister: HRB Mannheim 703657
Amalienstr. 44Geschaeftsfuehrung: C. Karch, F. Ramm
76133 Karlsruhe   Tel: 0721-1803560-3
reich...@geofabrik.de Fax: 0721-1803560-9



signature.asc
Description: OpenPGP digital signature
___
dev mailing list
dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] Issue with way id 742619958 / changeset 76711047 from 2019-11-06T15:32:03Z (Invalid layer value)

2019-11-08 Thread Maarten Deen

On 2019-11-08 17:04, Bart Smienk wrote:

Hi,

I've found out my OSM Tile Server has stopped updating and osm2pgsql
(v1.2) gives off the following error:

DB writer thread failed due to ERROR: result COPY_END for
planet_osm_line failed: ERROR:  invalid input syntax for integer: "-"
CONTEXT:  COPY planet_osm_line, line 1437, column layer: "-"

Looking through its changefile, the following entry can be found:


  
  
  
  
  


This seems to be malformed, as the layer should've never been "-", as
this is not a valid integer.
You can see this for yourself at:
https://planet.openstreetmap.org/replication/minute/003/747/729.osc.gz
Also more information on the layer key is over here:
https://wiki.openstreetmap.org/wiki/Key:layer

Not sure where to make the actual bug report, so I'm mailing the dev
mailgroup, does anyone of you know where this issue should be posted
so this issue won't present itself again in future replication files?


The changeset data gives Go Map!! as editor which can be found on 
GitHub: https://github.com/bryceco/GoMap


But as you can see on taginfo there are lots of non-integer values in 
OSM.

https://taginfo.openstreetmap.org/keys/?key=layer#values
So the tile server software should also do some checking and error 
handling if it requires an integer. I'm surprised that osm2pgsql 
apparently has a check on key/value pairs and sees this as an error.


Regards,
Maarten

___
dev mailing list
dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] Issue with way id 742619958 / changeset 76711047 from 2019-11-06T15:32:03Z (Invalid layer value)

2019-11-08 Thread Pierre Béland via dev
I corrected the layer from (-) to (-1).  Such values should probably be spotted 
by the API and rejected as errors.

 
Pierre 
 

Le vendredi 8 novembre 2019 11 h 11 min 03 s UTC−5, Bart Smienk 
 a écrit :  
 
 Hi,

I've found out my OSM Tile Server has stopped updating and osm2pgsql 
(v1.2) gives off the following error:

DB writer thread failed due to ERROR: result COPY_END for 
planet_osm_line failed: ERROR:  invalid input syntax for integer: "-"
CONTEXT:  COPY planet_osm_line, line 1437, column layer: "-"

Looking through its changefile, the following entry can be found:

    
      
      
      
      
      
    

This seems to be malformed, as the layer should've never been "-", as 
this is not a valid integer.
You can see this for yourself at: 
https://planet.openstreetmap.org/replication/minute/003/747/729.osc.gz
Also more information on the layer key is over here: 
https://wiki.openstreetmap.org/wiki/Key:layer

Not sure where to make the actual bug report, so I'm mailing the dev 
mailgroup, does anyone of you know where this issue should be posted so 
this issue won't present itself again in future replication files?

Let me know.

Kind regards,
Bart Smienk

___
dev mailing list
dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/dev
  ___
dev mailing list
dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/dev


[OSM-dev] Issue with way id 742619958 / changeset 76711047 from 2019-11-06T15:32:03Z (Invalid layer value)

2019-11-08 Thread Bart Smienk

Hi,

I've found out my OSM Tile Server has stopped updating and osm2pgsql 
(v1.2) gives off the following error:


DB writer thread failed due to ERROR: result COPY_END for 
planet_osm_line failed: ERROR:  invalid input syntax for integer: "-"

CONTEXT:  COPY planet_osm_line, line 1437, column layer: "-"

Looking through its changefile, the following entry can be found:

uid="978786" user="padvinder" changeset="76711047">

  
  
  
  
  


This seems to be malformed, as the layer should've never been "-", as 
this is not a valid integer.
You can see this for yourself at: 
https://planet.openstreetmap.org/replication/minute/003/747/729.osc.gz
Also more information on the layer key is over here: 
https://wiki.openstreetmap.org/wiki/Key:layer


Not sure where to make the actual bug report, so I'm mailing the dev 
mailgroup, does anyone of you know where this issue should be posted so 
this issue won't present itself again in future replication files?


Let me know.

Kind regards,
Bart Smienk

___
dev mailing list
dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/dev