If I try to import data from WFS service https://mrdata.usgs.gov/services/ca? into qGIS, it is working normally. But when I try to make html/js file on local machine using WFS service functionallity, I have no success. I got WMS to work using ol.
This is the code I used:
WFS
Does anyone have any idea what is the problem here?
updated
I've tried it with XMLHttpRequest object, different url and still no success.
Is it possible that GML from the site is not in the correct structure or am I missing something in the readFeatures block of code.
Here is my block of code, if I try it this way, the result is couple of features near crossover of Greenwich and equator, if I try with different projection (uncomment projection key in view), the result is couple of features at south pole, if I try with uncommented readFeatures block, I get no visual result of features, just osm map.
No comments:
Post a Comment