osm-fr / osmose-backend

Part of osmose that runs the analysis, and send the results to the frontend.
GNU General Public License v3.0
87 stars 109 forks source link

Look for missing fire hydrants in Jura, France #543

Open pyrog opened 5 years ago

pyrog commented 5 years ago

Open Data for fire hydrants in Jura are available in several format and projections: https://www.ideobfc.fr/geonetwork/srv/fre/catalog.search#/metadata/79884cd2-9ffb-44bb-b610-4572df87d0b2

catpei osm tags
POTEAU INCENDIE emergency=fire_hydrant
fire_hydrant:type=pillar
BOUCHE INCENDIE emergency=fire_hydrant
fire_hydrant:type=underground
RESERVE ARTIFICIELLE emergency=water_tank
RESERVE NATURELLE emergency=water_pond
dispopei osm tags
DISPONIBLE emergency=*
DISPONIBLE RESTREINT emergency=*
INDISPONIBLE disused:emergency=*
typepei osm tags
BI 100 fire_hydrant:diameter=100 // underground hydrant
NR non renseigné ?
PA // poteau d'aspiration
PA 100 fire_hydrant:diameter=100
PA 150 fire_hydrant:diameter=150
PI // poteau incendie
PI 70 fire_hydrant:diameter=70
PI 80 fire_hydrant:diameter=80
PI 100 fire_hydrant:diameter=100
PI100 fire_hydrant:diameter=100
PI 150 fire_hydrant:diameter=150
RAA // réserve artificielle aérienne ?
// water tank (reservoir)
RAE // réserve artificielle enterrée ?
/ underground water tank
RAS // réserve artificielle souterraine ?
// floppy water tank
RN // réserve naturelle ?
// pond, lac, river, canal
numsdis osm tags
v ref:SDIS39=v

(An old? csv parser for hydrants in switzerland is available)

        # CSV header :
        #gid,numcarto,numsdis,catpei,dispopei,typepei,insee,adressepei,precigeo,dernierct,derniervi,debit,pression,volume,diamcond,anomalie1,anomalie2,anomalie3,anomalie4,anomalie5,anomalie6,datadate

        self.defaultTag = {
            "source": "SDIS 39 - 2019"
        }
        self.defaultTagMapping = {
            "ref:SDIS39": "numsdis",
        }
frodrigo commented 5 years ago

Duplicate #413 All available data source should be listed and if it's normed or not.

frodrigo commented 5 years ago

Can you try to write a full analyser, based on other codes? even if you do not test it.

pyrog commented 5 years ago

Yes.

It seem that Osmose import only files in CSV format ? (OD in CSV don't have lat, lon, but fine in geojson, shp...)

Is it possible to test simply the analyzer ?

frodrigo commented 5 years ago

No, Osmose can load from geojson or shapefile: https://github.com/osm-fr/osmose-backend/blob/master/analysers/Analyser_Merge.py#L465-L499

You can test the analyser with docker: https://github.com/osm-fr/osmose-backend/tree/master/docker