OpenDevelopmentMekong / wp-odm_theme

Wordpress child theme for ODM, based on jeo
https://opendevelopmentmekong.net
5 stars 4 forks source link

WMS layer does not show up on website #1246

Closed punwath closed 6 years ago

punwath commented 6 years ago

I am trying to replace ODC map layer with WMS. Unfortunately those layer does not show up on the website (Interactive map). I have check the WMS layer already and it is working fine on GeoSever. For example, GeoServer WMS layer:

Those 2 layers are working on Geoserver but when I put them to map explorer it does not show up. Layer on website: -Airport https://opendevelopmentcambodia.net/wp-admin/post.php?post=74224&action=edit -Pre school: https://opendevelopmentcambodia.net/wp-admin/post.php?post=99171&action=edit

On the other hand, yesterday, I drafted a WMS layer on the website and it is working,: https://opendevelopmentcambodia.net/wp-admin/post.php?post=112697&action=edit

acorbi commented 6 years ago

@punwath I have checked the airport layer and noticed that it is actually rendering but the projection seems to be wrong and that is why the POIs are rendered incorrectly, if you zoom out a couple of levels, you will see:

screenshot from 2018-01-10 10-30-50

I see that the layers is rendering fine on geoserver. So maybe this is an issue with the projection on the mapping logic. @Huyeng can you take a look at it?

prustar commented 6 years ago

@Huyeng @punwath @acorbi -- This has happened a few times now. I think we should define the projection in WP and ensure that all the Geoserver layers match this. We then need to update the wikis to include the projections for users so that they know what projection to assign their datasets.

Suggest to use CRS - WGS 84 and EPSG:4326 as this is the most commonly used international standard.

National datasets can still be provided in other file formats (shp etc) in localised projections and made available to the user if you would like to maintain this option.

Huyeng commented 6 years ago

In coding, the CRS has been defined as EPSG:4326, but i don't know why the projection won't convert. Anyways, I would like to suggest to publish the correct project on geoserver to ensure that all layers published on geoserver have the consistent projection.

prustar commented 6 years ago

@Huyeng - yes thanks for doing this.