|
|
@@ -121,6 +121,15 @@ function p5WFS_GetFeature(typeName, query) { // @returns Promise
|
|
|
'&REQUEST=GetFeature' +
|
|
|
'&TYPENAME=' + typeName +
|
|
|
'&SRSNAME=EPSG:3003'
|
|
|
+ ;
|
|
|
+ if ('WFS_URL' in query && query['WFS_URL'].length) {
|
|
|
+ link = query['WFS_URL']
|
|
|
+ link += ( (-1 !== query['WFS_URL'].indexOf('?')) ? '&' : '?' )
|
|
|
+ link += 'SERVICE=WFS&VERSION=1.0.0'
|
|
|
+ link += '&REQUEST=GetFeature'
|
|
|
+ link += '&TYPENAME=' + typeName
|
|
|
+ link += '&SRSNAME=EPSG:3003'
|
|
|
+ }
|
|
|
// '&Filter=<ogc:Filter><ogc:Or><ogc:PropertyIsEqualTo><ogc:PropertyName>ID</ogc:PropertyName><ogc:Literal>' + id + '</ogc:Literal></ogc:PropertyIsEqualTo></ogc:Or></ogc:Filter>'
|
|
|
var query = query || {}
|
|
|
if ('featureID' in query) link += '&featureID=' + query['featureID']
|