Most Popular

1500 questions
16
votes
0 answers

Servers that implement OGC Geo/Time OpenSearch

The OGC is has published the "OpenSearch Geo and Time Extensions". That specification is based on, but extends, the OpenSearch Geo extension and OpenSearch Time extension. As it turns out, I'm working on an open source (C#) implementation of the…
BradHards
  • 12,881
  • 2
  • 37
  • 70
16
votes
1 answer

sql server spatial index performance

I have a table with around 2 million records in it. I create a spatial index, using the defaults other than the bounding box. I've been noticing that some queries are extremely fast, and some are extremely slow. The determining factor appears to…
mdm20
  • 261
  • 1
  • 4
16
votes
3 answers

Color-code a Leaflet polyline based on additional values, e.g. altitude, speed,

I'd like to draw a GPX-track on a Leaflet map. The polyline shouldn't have only one color, but I'd like to show certain values like altitude, speed, heart-rate, temperature, cadence, slope color-coded. Of course only one value can be visualized at…
hgoebl
  • 338
  • 1
  • 3
  • 9
16
votes
1 answer

Importing shapefile to PostGIS using Python and ogr

I just export a PostGIS Table to shp using this tips but I'm not able to import a shp to PostGIS using the same library(ogr). Any idea?
franco_b
  • 522
  • 1
  • 6
  • 15
16
votes
4 answers

Removing band from raster in QGIS

When I process a raster in QGIS it creates a second band. It appears that the band has no useful data. I like to use the Raster Colours Tool and it will not accept a raster with anything more than one band. How do I remove the extra band?
BWill
  • 1,772
  • 1
  • 16
  • 27
16
votes
2 answers

How to access Shapefile metadata using OGR?

I'm trying to use ogrinfo to get some details on a shapefile I downloaded. Currently, the only way I know how to do this is to load it into QGIS and manually click around to find any information on it, like opening the attribute table. I just…
dvreed77
  • 373
  • 2
  • 4
  • 7
16
votes
9 answers

Open source tool to convert a DEM to a 3D model

I would like to convert a DEM (Digitial Elevation Model) file (e.g. from SRTM) into a 3D model that I can then edit with regular 3D modeling tools (e.g. Meshlab/Blender/etc.). However I'm using Ubuntu Linux. So, is there any open source programmes /…
Amandasaurus
  • 892
  • 3
  • 10
  • 20
16
votes
4 answers

What is the best way to programmatically convert between WKT and Proj4 string?

Some shapefiles have a .prj file associated with it, and the .prj file contains the projection info of the shapefile in the format of WKT. Sometimes I need to convert WKT to proj4 string, and sometimes I need to convert it back. Is there any…
16
votes
7 answers

Getting extent of layer in QGIS

Is there a way to get the extent (bbox) of a vector layer in QGIS? I see that I can update the extent, but I am looking for the actual coordinates of the extent.
ustroetz
  • 7,994
  • 10
  • 72
  • 118
16
votes
4 answers

Simplifying adjacent polygons using QGIS Simplify Geometries tool

I have a big Shapefile with 200,000 polygons but the file is too big for the application that will use it. I would like to generalise these polygons and create much smaller file. I have tried to do this in QGIS using "Simplify Geometries" tool. I…
David
  • 169
  • 1
  • 1
  • 4
16
votes
5 answers

Seeking Python library (other than ArcPy) for geoprocessing such as buffer?

Excluding ArcPy, is there any python library which can do geoprocessing, such as buffer/intersect, with shapefiles?
Mingshu
  • 511
  • 6
  • 16
16
votes
7 answers

Getting latitude and longitude of projected point using ArcPy?

I have a point feature in a feature class that is being accessed by ArcPy. The point is projected but I need to find an efficient means to get the unprojected latitude and longitude for this point. Is there a method other than reprojecting…
Kenton W
  • 1,085
  • 1
  • 11
  • 16
16
votes
14 answers

Labels not appearing on any layer in ArcMap?

Not sure what the issue is, but I'm unable to get labels to display in ArcMap 10. The obvious things are accounted for (as far as I know). Labels are set in Properties, layers are checked to label in the TOC. I've even restarted to see if that would…
Jacques Tardie
  • 930
  • 1
  • 11
  • 25
16
votes
5 answers

Setting composer layout units to inches in QGIS

I open a new composer and select ANSI A for my paper. The notation after the name is "Letter; 8.5inx11in", but the width and height are displayed in mm, and the units selection is grayed out, so I can't change it. The rulers at the top and left of…
Llaves
  • 5,963
  • 5
  • 31
  • 56
16
votes
3 answers

Clipping line layer based on polygons with QGIS?

I have a line layer and a polygon layer. Both files have the same SRS. I want in a new shape file only the lines covered by the polygons. I tried in QGIS the Vector -> Geoprocessing -> Clip tool but I only get an empty shapefile. How do I do this…
ustroetz
  • 7,994
  • 10
  • 72
  • 118