Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [request]

in this context refers to an HTTP(S) request between a client and a service providing geospatial data, or data processing

1
vote
1answer
155 views

Using output statistics in ArcGIS REST API query?

I am using an API to pull in some Web Mapping Service Layer data to my script. The API query has a max count limit of 1000 on returned features per request. There are 2 attributes I am trying to use ...
0
votes
1answer
290 views

Request a WFS layer using OpenLayers

I am new to OpenLayers and GeoServer... can someone please help me to show a WFS layer... here is my code: const vectorSource = new ol.source.Vector({ format: new ol.format.GeoJSON(), url: ...
2
votes
0answers
1k views

SSL handshake error when downloading images

I'm learning the Planet API and going through the tutorials posted online. When I attempt to perform an image search, download, etc. I get an SSL handshake error. Some example commands I am calling ...
2
votes
2answers
843 views

405 Method not Allowed on uploading a shapefile via REST API on GeoServer

I'm using PHP cURL to upload a Shapefile to GeoServer. It works fine in a development server. But when I deploy to Stage server and I try the same I get: 405 Method Not Allowed The requested ...
1
vote
1answer
10k views

''More than one row returned by a subquery used as an expression'' postgres error

I am trying to realize a postgres request : select distinct nom_reg_12 from region_15,repartition where st_intersects(region_15.geom, (select geom from ...
0
votes
1answer
100 views

add a shapefile layer to a specific postgis table

I have a question about Postgis: There is a way(extension) to import a shapefile and add it directly to a specific table (not database), if not there is a request to joint vertically two tables like :...
0
votes
1answer
119 views

Very slow response when requesting shapefile from GeoServer

I face a speed issue related to GeoServer. More specifically in my web application when I click the following URL, it takes several seconds in order for the browser to receive the file. This happen ...
2
votes
0answers
343 views

Interpolate line and locate point on line with Leaflet

I want to make a location tool in a leaflet web map. In fact, I create a wep map application with Leaflet in which we can find those layers: Bing aerial layer POI = Points layer which contains ...
1
vote
2answers
272 views

How to specify content in a WCS GetCapabilities request

I have the following GetCapabilities request to a GeoServer WCS service: http://fast.openearth.eu/geoserver/Netherlands_Study_Site_Paulina/wcs?service=WCS&version=1.1.0&request=...
0
votes
1answer
667 views

Geoserver WFS request resultType=hits

I try get number of features through WFS request: $.ajax('http://x.x.x.x/geoserver/wfs',{ type: 'GET', data: { service: 'WFS', version: '1....
3
votes
2answers
1k views

No module named requests

I'm developing a QGIS Plugin with python. I need to do a request to a REST server. But when I try to use request module "No module named requests" error displayed. requests module is installed in my ...
0
votes
1answer
143 views

Updating Secure service on Portal for ArcGIS with PortalPy and requests?

I'm using the below Portalpy code to update my secure Feature Services on ESRI Portal which have a stored password. The return on print post_url in the script is: https://somedomain.com/portal/...
2
votes
1answer
1k views

Leaflet: Map tile request, hidden key/secret via proxy

I would like to request a Leaflet tilelayer without exposing my API key and secret. For example, using the UrtheCast API (but would apply to other similar APIs that embed api_key and api_secret in the ...
0
votes
1answer
321 views

Enabling or disabling WMS capabilities with python

I am trying to enable Feature Access for all of my services on an ArcGISServer with python. Below is my code. The variablejson is the Feature Access dictionary. How do I make the post targeting ...
3
votes
2answers
551 views

Specify default width and height used by Geoserver's layer preview page

Currently whenever I try to preview any WMS layer under Geoserver's layer preview page &width=768&height=339 automatically gets set in the request. I'd like to change these values. Is there ...
4
votes
3answers
1k views

Adding Layer using esriRequest Response in ArcGIS API for JavaScript?

For various reasons I need to add layers to a map object using a response returned by an esriRequest to an ArcGIS Server. One reason being the data will change constantly and hard coding FeatureLayer ...
1
vote
0answers
514 views

How to access a feature by specific field value using python ogr in an efficient way?

I have one point layer and one polygon layer with a common identifier attribute field called "N", same objects amounts but Feature IDs (FID) are different. I have to iterate on the first one and what ...
1
vote
0answers
87 views

What counts as a service request in ArcGIS for Server 10.3.1?

We've just updated our services to two new servers (Windows 2012) running ArcGIS for Server 10.3.1. I'm trying to setup some statistics to monitor the usage on our new services, however I am having ...
3
votes
1answer
1k views

Unable to add attachment to ArcGIS Online feature service using Python and REST API

I am attempting to use Python to add attachments to an ArcGIS Online hosted feature service, but I'm getting an 'Unable to add attachment to the feature.' message when I run the following code: ...
2
votes
1answer
918 views

GetLegendGraphic request string is too long

I am setting the SLD Body of a WMS layer on the client side. I set the style in JSON and I have some functions that convert the JSON to SLD (OpenLayers functions). It works fine for displaying the ...
2
votes
1answer
2k views

How to make a WFS request to GeoServer with OpenLayers 3

This is OpenLayers 2 code I'm upgrading to OpenLayers 3 (OL3). A set of filters (for example fromDate and toDate to for query) are created and inserted. How can I do this in OpenLayers 3? I have a ...
1
vote
1answer
124 views

how to send question to QGIS mailing list [closed]

I am not sure but everytime I post any question to QGIS mailing list, I get the below message? Am i doing something wrong? You are not allowed to post to this mailing list, and your message has been ...
1
vote
1answer
1k views

Error XMLHttpRequest cannot load openlayers geocode

I'll make a page for viewing routes with openlayers, postgresql / postgis and pgrouting. The part of the seat is already ok, I'm using OSM data. The image below is to illustrate what I'm doing now: a ...
1
vote
0answers
69 views

No 'Access-Control-Allow-Origin' header is present on the requested resource. Using Geoserver + Openlayers [duplicate]

This is my code to open a WFS layer from geoserver: <!DOCTYPE html> <html lang='en'> <head> <meta charset='utf-8' /> <title>My OpenLayers Map</title> <...
0
votes
1answer
1k views

Read GeoJSON with openlayers

I generated a GeoJSON from a table in EPSG:WGS84 in postgis SELECT ST_AsGeoJSON(geom) FROM "onibus" I put this file into the www folder on my server. I'm running geoserver locally. My pages are also ...
1
vote
1answer
2k views

OpenLayers doesn't proxy WMS requests to Geoserver

I had an issue with WMS requests from OpenLayers to Geoserver via Proxy.php. My OL version is 2.12 and my Geoserver is 2.4.0. I set the variable OpenLayers.ProxyHost as shown in OL documentation, but ...
1
vote
1answer
76 views

GeoGratis API, 'OR'ing categories in a single request

I am a developer trying to work with the GeoGratis web API, provided here: http://geogratis.gc.ca/api/en I want to make a request like this: http://geogratis.gc.ca/api/en/nrcan-rncan/ess-sst/-/OR/(...
2
votes
1answer
1k views

OpenLayers: cache WFS Request for Vector Layer

In our mobile application, we'd like to use the map offline. Actually, we don't care about tiles, but we want the user to be able to see some Vector layers. Here is a piece of code: ...
3
votes
2answers
876 views

How to show just some labels based on feature intersection of layers?

I'm trying to use "expression based" labeling in QGIS, but I'm stuck with a particular case. I managed to use it for a project with the help of other topics and FAQ but I'm not skilled enough to ...
0
votes
1answer
2k views

OSRM API - nearest point fed into routing

I am using the OSRM API to (1) determine the nearest point on a road segment from a give random point with http://server:5000/nearest?loc=_lat_,_lon_ The returned coordinates are used then as an ...
1
vote
2answers
2k views

mapquest geocoding - i can not get the (lon,lat) returned from the API

I just started using the mapQuest Geocoding API and I created a code for searching addresses. The following code alerts "OK" but I can not alert the (lat, lon) coords, even I tried with so many ...
5
votes
2answers
2k views

How do I parse getStyle request?

I am having problem parsing http://localhost:8080/geoserver/wms?request=GetStyles&layers=topp%3Astates&service=wms&version=1.1.1 getStyle response from geoserver of layer topp:states. ...
1
vote
0answers
618 views

Add WFS layer to Openlayers2 map

(UPDATE QUESTION) I have a problem with WFS request, mine is as follows: var wfs = new OpenLayers.Layer.Vector("WFS",{ strategies: [new OpenLayers.Strategy.Fixed()], ...
2
votes
1answer
2k views

How to preload tiles in Leaflet?

I'm trying to make a user controlled cross-layer animation in Leaflet. I have about 70 tileLayer.wms layers, that need to be preloaded on the map before animation can run. The question is - is there ...
2
votes
0answers
602 views

OpenLayers BBOX sending double requests

I've implemented a openlayers bbox strategy on a vector layer. I have my server return a nice jsonp object wrapped in the callback given by the request. The problem is that during normal use of the ...
3
votes
3answers
1k views

How can I tell mapserver to ignore a filter that is set in a mapfile?

How can I tell mapserver to ignore a filter that is set in a mapfile? I am displaying a wms layer with point features using mapserver. In one of the layers in my mapfile I have defined a filter ...
10
votes
1answer
4k views

Is it possible to setup fiddler to capture requests from QGIS

I want to know if it is possible setup fiddler to capture WMS/WFS requests from QGIS and how to do it. Fiddler is capturing the requests from MapInfo and I don't remember making any setup in fiddler ...
2
votes
2answers
5k views

OpenLayers WFS protocol: work with filters if the protocol is defined out of layer constructor

follow question:wfs-load-feature-check the scenario is: i am trying to load a WFS layer, since it takes a while to load all features, I want to give user a notice while waiting for response. the ...
6
votes
3answers
10k views

OpenLayers load WFS vector layer: how to check whether all features are returned from server?

My app takes several seconds to return all features of a WFS layer from server, I am wondering whether there is a way to check whether all features are returned in coding, so that we can add a loading-...