I'm trying to execute a REST-based query to a WFS-G Gazeteer service (as described at: http://frameworkwfs.usgs.gov/wfsg/) to query for a location name, but haven't been successul. Can anyone assist in pointing out my missteps?
I'm using this as a reference: http://frameworkwfs.usgs.gov/framework/wfs/wfs.cgi?datastore=GNIS&request=GetCapabilities
I tried to simplify to the barest essentials:
var query = '<Query typeName="iso19112:SI_LocationInstance" srsName="EPSG:4326"><ogc:Filter><ogc:PropertyIsEqualTo><ogc:PropertyName>iso19112:SI_LocationInstance/alternativeGeographicIdentifiers/alternativeGeographicIdentifier/name</ogc:PropertyName><ogc:Literal>Hawaii</ogc:Literal></ogc:PropertyIsEqualTo></ogc:Filter></Query>'
var wfsgService = http://frameworkwfs.usgs.gov/framework/wfs/wfs.cgi?datastore=GNIS&service=wfs&version=1.1.0&request=GetFeature&typename=iso19112:SI_LocationInstance&maxFeatures=50&filter=';
$.get(wfsgService + encodeURIComponent(query));
(generates:) http://frameworkwfs.usgs.gov/framework/wfs/wfs.cgi?datastore=GNIS&service=WFS&version=1.1.0&typename=iso19112:SI_LocationInstance&request=GetFeature&Filter=%3CQuery%20typeName%3D%22iso19112%3ASI_LocationInstance%22%20srsName%3D%22EPSG%3A4326%22%3E%3Cogc%3AFilter%3E%3Cogc%3APropertyIsEqualTo%3E%3Cogc%3APropertyName%3Eiso19112%3ASI_LocationInstance%2FalternativeGeographicIdentifiers%2FalternativeGeographicIdentifier%2Fname%3C%2Fogc%3APropertyName%3E%3Cogc%3ALiteral%3EHawaii%3C%2Fogc%3ALiteral%3E%3C%2Fogc%3APropertyIsEqualTo%3E%3C%2Fogc%3AFilter%3E%3C%2FQuery%3E
