This question already has an answer here:

I have a WFS in EPSG:4167. My map view has EPSG:3857. How to make the WFS work on a map view with different coordinates?

I used this to define my coordinate system from wfs:

import { register } from 'ol/proj/proj4.js';
proj4.defs("EPSG:4167", "+proj=longlat +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +no_defs");


Note it is a third party wfs, so I only can use this EPSG.

Any ideas?

My first thought is that I should get the geojson from WFS and then transform the entire geojson using proj4 lib and display it on map (I'm using openlayers). Not sure if this is the best approach.

marked as duplicate by Ian Turton Jan 17 at 8:52

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

Browse other questions tagged or ask your own question.