josephramsay / lds_replicate

Replication scripts for LDS (LINZ Data Service).
http://data.linz.govt.nz/
2 stars 1 forks source link

Switch to json format for WFS requests #12

Closed palmerj closed 11 years ago

palmerj commented 11 years ago

Was doing some testing last night from home and determined that the json output format is about 30-40% smaller in payload. So we should switch from GML2 to save customers bandwidth.

josephramsay commented 11 years ago

Its an option in the config file which is set to GML2 by default. If a customer needed to override this with GML1 (or if we changed the default) there might be issues with URL construction/parsing but I'll need to do some testing.

palmerj commented 11 years ago

Yeah definitely do some testing. But Im suggesting make the fmt json by default.

Things to test might be:

It could be there is a bug hiding in the json geometry writer within geoserver. Best way to do that is load the data into PostgreSQL via GML and then json format options, then use ST_Equals(geom1, geom2) to check.

josephramsay commented 11 years ago

GML2 is fastest followed by JSON and then GML3 but there isn't much in it ~6% & ~30% Didn't see any errors.

palmerj commented 11 years ago

This is closed. Should be using WFS 1.0.0 with GML2 and paging. This is want the default config does.