A command used to retrieve information from a database

learn more… | top users | synonyms

5
votes
1answer
67 views

How to build a query/expression to select specific points within a buffer? (in QGIS)

I have a point layer in QGIS. Each point represents a tree and each tree has information about its height as an attribute. I would like to build a query/expression to select all those trees that have ...
1
vote
1answer
36 views

query.where statement using date range in JS API fails with IE 11 but works fine with Chrome and Firefox

My aim to display point data from a feature layer on ArcGIS for JS map interface. I am successful doing so in Chrome and Firefox, however when I include date in a where condition of a query execute it ...
-1
votes
0answers
18 views

Is there a way to perform toolbox queries on temporary files?

I have temporary files and cannot for some reason make them a permanent raster file, and so need to perform some toolbox queries, build attribute table, zonal statistics etc. but cannot?
2
votes
2answers
57 views

Selecting more than 1,000 features from AGOL hosted feature service?

When data from a cloud-hosted feature service is loaded into ArcMap, it queries the first 1,000 features "to enhance performance"... I, however, need to see all the features. How can I add all ...
3
votes
1answer
74 views

Distance in meters between two geographic coordinates

I want to determine the distance in meters between two geographic coordinates. The points are: Lat (deg) Lon (deg) A: -33.3930906 -70.5452765 B: -33.3993212 -70.5468767 So if i calc the ...
0
votes
0answers
11 views

What are the standard ways of querying raster layers for information?

My use case involves loading raster maps as a layer on a base map (built in Mapbox/Leaflet) such as: http://landcover.usgs.gov/global_climatology.php or http://due.esrin.esa.int/page_globcover.php ...
0
votes
1answer
32 views

How can I add a new layer, then remove previous layer from a Leaflet/CartdoDB map without the map clearing everything

I am new to CartoDB/Leaflet. Here's my fiddle... http://jsfiddle.net/zippyferguson/fLkqgf4q/1/ If you click the play button, I want it to load data to the map year by year from 1966 to 2015 from a ...
0
votes
1answer
32 views

Arc 10.2.2 crashes when adding query layer?

I'm trying to add a query layer from an Oracle database into a blank 10.2.2. map. I enter the query, validate, finish, and the software thinks for a second and then just winks out. No error ...
1
vote
1answer
30 views

Creating a menu interface to update an sde feature class in ArcMap using arcpy?

I work in electrical utilities and we have stacks of paper records that need to be updated into an existing SDE feature class attribute table. My problem is that someone in the city's GIS office would ...
1
vote
1answer
41 views

Making table from MySQL query with ArcPy?

I am trying to interact directly with data from a MySQL database in ArcMap using Python. So far, I have successfully connected the database using the MySQLdb.connect() function and have successfully ...
2
votes
1answer
41 views

QGIS and intersections

I have MultiLineString geometry data from an ESRI shapefile. I also have a polygon (region) that I have created in QGIS using the drawing tools. When I attempt to find the intersection between the ...
1
vote
1answer
34 views

Postgis/SpatiaLite SQL query to connect MySQL, Access or Oracle database

In SpatiaLite or Postgis, how can one create a SQL query to read a table from a MySql or Oracle database? I don't know **the correct SQL syntax to connect to a table in a MySql or Oracle database ...
1
vote
0answers
25 views

Shape comparison language (SCL) - get shapes which intersect extent border

I am trying to write a SCL string for my ArcGIS query, which should return only shapes which are intersected by a border of a rectangular shape (extent). So far the closest I've got is the following: ...
0
votes
3answers
73 views

Pass GeoJSON from .NET to Javascript

My .NET/OpenLayers/GeoServer/PostGres-PostGIS application allows users to create custom queries to get data from my PostGIS tables. The queries are called in .NET (not javascript) using a web method ...
1
vote
1answer
70 views

PostGIS Query To OpenLayers

I am trying to get data from a PostGIS datatable using .NET, pass it to javascript, create a layer in OpenLayers and add the PostGIS data to the layer. I can successfully query from the ...
1
vote
1answer
52 views

How to make a SQL query that would sum multiple records in ArcGIS?

I've got a large file geodatabase that contains a polyline feature class of water-pipes. The feature class have many fields, but the ones that I'm interested in is that of the water-pipe's Length and ...
3
votes
2answers
65 views

Copy/convert selection into filter/query builder of QGIS?

Can anyone tell me if it is possible (and how) to convert or copy a selection on a layer (that has not been created through "select by expression", but instead by irregular selections from a canvas, ...
1
vote
0answers
29 views

Find points within X distance with a specific variable

I am trying to use QGIS to find points within 5 meters of each other that all have a value of <50% for a given parameter that has been loaded through a CSV file. I looked in to doing it with a ...
1
vote
0answers
31 views

Overpass output city name instead of coordinates?

I did a query to look for certain things. However it only outputs the lat and long coordinates, there is no city data available. I'd like to have the city it belongs to / closest city though. I know ...
2
votes
2answers
59 views

Count Distinct with Where clause in OGR

I am looking to run a query in OGR to write back all instances where there is only one record of an attribute. I was thinking that I would use the following: ogrinfo -dialect sqlite -sql "SELECT ...
5
votes
1answer
97 views

ESRI Javascript FeatureLayer Select by Attributes

I am trying to select a group of features in an ESRI javascript API featureLayer by attribute. The call errors out. My code is as follows. Here is the layer definition: var fieldDefs = [{ ...
1
vote
1answer
44 views

Delete polygonal features in one layer outside polygon feature of another layer in PostGIS

For deleting polygonal features in one layer (~1000000 features) outside polygon feature of another layer (one feature) in PostGIS I use query: DELETE FROM layer WHERE layer.id IN (SELECT a.id FROM ...
0
votes
0answers
35 views

Publish postgis raster based on column value in geoserver

I have a postgis raster table with the following columns: rid, rast, year, plant I created a wms layer in geoserver pointing to the table and successfully serve out the raster when the table only has ...
0
votes
0answers
47 views

Overpass-API Ability to download the nodes and ways that intersect the ways of one relation

i am trying to do a query that will detect if a node or way that is included in a relation is also referenced by other ways,nodes or relations. Not sure if this is possbile, i had tried to do this ...
0
votes
1answer
50 views

Dojo Promise/All Array Not Populating InfoTemplate in ArcGIS Javascript

Using dojo/promise/all I'm attempting to populate an infoTemplate with results from a queryTask which runs later in the script. Our app returns an XY value from a geocoded address search and queries ...
1
vote
0answers
17 views

How to show neighboring polygons and polygon in which point exists

We have a table which has polygon related data stored. For finding if a point (long,lat) is within that polygon I am using following query in mysql SET @vasantKunjSectorC = 'polygon((77.161266 ...
2
votes
2answers
124 views

Selecting features within polygon from another layer using R or Python?

For Selecting features within polygon from another layer using QGIS? the solution was to: use the "Vector->Research tools->Select by Location" However, I would like to know how to do the same ...
1
vote
1answer
35 views

Query across layers of SHP files?

I would like to query features from a SHP vector that intersect with features from another vector. Pseudocode: "Name" IS intersects( countries) How would be the valid query composed?
1
vote
0answers
32 views

Partial extents for ArcGIS android geodatabase creation

I know how to create and download a geodatabase copy of a FeatureServer from arcgis rest services. I also know how to pass LayerQuery to the geodatabase task to filter layer objects and features. ...
-1
votes
2answers
138 views

Sql Query in Postgresql

I am trying to execute a query but I am stuck. I have two tables A and B. The a table has columns gid, geometry(line-string) and value which cells is empty , the B table has got 3 columns gid, ...
5
votes
2answers
275 views

QGIS Filtering Multiple Values using Query Builder

I am a complete beginner in QGIS, so I'm sorry if I don't use the right terminology. In the "Query Builder" I can currently filter on value from the "Values List", but I'd like to be able to filter ...
1
vote
1answer
32 views

Cannot find table in geodatabase

I was using the Make Query Table tool in ArcGIS. Once the tool finishes running, the result (a table whose name I specify) is automatically added to the Table of Contents and I can view the data ...
1
vote
0answers
45 views

Python code and modelbuilder [closed]

I am working with ArcGIS 10.2 and using python to use the function for zoom to selected feature. I need to have this zoom to selected feature work for any project and I also need drop down menus for ...
0
votes
1answer
443 views

SQL Server Spatial Querying

I am looking for ways to learn querying for SQL Server Spatial (2008/2012). I have a table created from Shape2SQL and have been trying to run a simple intersection query to get results from that ...
1
vote
1answer
73 views

How can I query for a list of specific road types in the same Overpass query?

I'm trying to query for a number of specific road types in the same request, and I can't get the syntax right at all. Can anyone alter the following query to select "motorway", "trunk" and "primary" ...
1
vote
1answer
51 views

Selecting entities based on first character of the attribute field being letter using QGIS?

I would like to select entities whose addresses are incomplete, i.e. the first character is a letter instead of being a number. Does QGIS have an "is numeric" -type function to accomplish this? Not ...
0
votes
0answers
64 views

GeoExplorer Querying Tool

Are there any ways to add more query options in GeoExplorer? The query options available are limited to: "=", "<>", "<", ">", "<=", ">=", "like" and "between".
0
votes
0answers
13 views

postgres 9.2 update query on a subset

I wish to make an update using CASE, on a subset of a table. This subset is based on a spatial query. It looks like : update t1 set f1 = CASE WHEN... WHEN... END FROM (select * from ...
0
votes
0answers
24 views

Geoext - Load Attribute table automatically

May be it is a basic question. I am new to Geoext programming. I have developed a web application using Geoext with East - Table of content, Center- Map display and South - Grid panel I am able to ...
2
votes
2answers
54 views

3D queryable GIS

I've used GIS for many years, and now I'm moving into 3D GIS, but I have some questions. Say I have a 3D model of a viliage, I can get this into Blender, but I want to be able to run GIS type ...
0
votes
1answer
81 views

Selecting features by attribute in Leaflet

Is there a way to select an individual feature based on an attribute from a FeatureGroup in Leaflet? For example, when selecting a feature based on a click event, I will do something like, function ...
1
vote
1answer
82 views

Error #1064 from MySQL searching database for results near lat/long

I'm trying to run a SQL query to search for a term and a users location. I need help to search my database for locations near a user with the description of 'X'. The users location (lat, long) is ...
1
vote
0answers
64 views

Query to merge simplified polygons according to the map scale-factor

I'm trying to construct a view in PostgreSQL that simplify polygons according to the map scale-factor. Basically I was reading this thread ...
1
vote
1answer
30 views

ArcMap Georefencing - sheet/image problem

I have a problem and I wanted to know if anyone else had experienced this. I think it is some type of bug as it doesn't occur all the time. The problem is when I am georeferencing some 'tiff' images, ...
0
votes
3answers
81 views

Selecting parcels in vector map from raster layer using ArcGIS for Desktop?

I am relatively new to Arcgis and I am stuck. I have a parcel map (vector) and a land cover map(raster). My land cover map is only 1's and 0's, flood and no flood. I want to be able to highlight or ...
2
votes
1answer
75 views

Looking to find (or build) a particular Python geoprocessing tool

So here is my situation: There is a large area (a wildlife refuge) of nearly 200,00 acres that we have loads of spatial data for, from habitat management projects from the past several years. My boss ...
0
votes
0answers
52 views

Insensitive case query in Geotools to WFS

I'm trying to make an insensitive case query from Geotools to WFS (Web feature service) datasource,I used FilterFactory2 with the method like(Expression expr, String pattern, String wildcard, String ...
0
votes
1answer
88 views

arcgis 10.2 how to order query results

is there a way to order the returned results of a query task? this: query.where = "COD > 0"; works fine, but this: query.where = "COD > 0 order by COD"; throws: dojo.io.script error ...
0
votes
0answers
192 views

Multi-level filtering with Web app builder query widget

I have options to use web app builder and web app builder developers edition to design a query task to find a street number. For example, I have got 4 villages and each villages have 10 streets. In ...
2
votes
1answer
33 views

Postgis spatial query st_disjoint

I have 2 layers that I want to compare. I wish to retrieve the features in the layer 1 that have no part in common with the features in the layer 2. I try queries like that but do not returns me the ...