I am using OpenLayers application and sending WMS query to my geoserver. My polygon is sending to server and gets intersected features.
var feature = Mypolygon; var filter = new OpenLayers.Filter.Spatial({ type: OpenLayers.Filter.Spatial.INTERSECTS, value: feature.geometry });var protocol = new OpenLayers.Protocol.WFS({ version: "1.1.0", url: "http://mydomain/geoserver/wfs", featureType: "my_points", featureNS: "http://www.openplans.org", geometryName: "the_geom"});wfsProtocol.read({ filter: filter, callback: function (e) {}})This way is working to query geoserver WFS service. But I need to send query to a ArcGIS rest service. Mypolygon will be sent to ArcGIS service and get intersected polygons.
http://mapservices/arcgis/rest/services/Mypoints/MapServer/0I can use ajax call to Arcgis Rest, but how can I send Mypolygon as a parameter?is this possible?
أكثر...
var feature = Mypolygon; var filter = new OpenLayers.Filter.Spatial({ type: OpenLayers.Filter.Spatial.INTERSECTS, value: feature.geometry });var protocol = new OpenLayers.Protocol.WFS({ version: "1.1.0", url: "http://mydomain/geoserver/wfs", featureType: "my_points", featureNS: "http://www.openplans.org", geometryName: "the_geom"});wfsProtocol.read({ filter: filter, callback: function (e) {}})This way is working to query geoserver WFS service. But I need to send query to a ArcGIS rest service. Mypolygon will be sent to ArcGIS service and get intersected polygons.
http://mapservices/arcgis/rest/services/Mypoints/MapServer/0I can use ajax call to Arcgis Rest, but how can I send Mypolygon as a parameter?is this possible?
أكثر...