Skip to content

Commit

Permalink
Merge pull request #30 from tuomas777/fix-address-import-output-format
Browse files Browse the repository at this point in the history
Force WFS output format to JSON in Helsinki address importer
  • Loading branch information
Rikuoja authored Mar 3, 2020
2 parents c819677 + 9726031 commit 6e04df4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions munigeo/importer/helsinki.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,8 +309,10 @@ def import_plans(self):

@db.transaction.atomic
def import_addresses(self):

wfs_url = 'http://kartta.hel.fi/ws/geoserver/avoindata/wfs?SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&TYPENAME=avoindata:PKS_osoiteluettelo&SRSNAME=EPSG:3067'
wfs_url = 'http://kartta.hel.fi/ws/geoserver/avoindata/wfs?' \
'SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&' \
'TYPENAME=avoindata:PKS_osoiteluettelo&' \
'SRSNAME=EPSG:3067&outputFormat=application/json'
self.logger.info("Loading master data from WFS datasource")
ds = DataSource(wfs_url)
lyr = ds[0]
Expand Down

0 comments on commit 6e04df4

Please sign in to comment.