1
vote
1answer
149 views

How to perform intersect operations in the Field Calculator in QGIS?

How to use the Intersect function? How would I specify to REPLACE layer1.field1 with layer2.field2 WHEN layer1.geometry INTERSECTS layer2.geometry Is that feasible in QGIS?
2
votes
0answers
238 views

How to copy the contents of an attribute from one vector layer to another one that touches it or intersects it?

I have 2 layers that intersect, called layer A and layer B. Layer A has an attribute (X) that I want to copy wholesale (for the whole layer) to layer B, so that when object A1 intersects object B1, ...
5
votes
2answers
2k views

OGR merge shapefiles of different geom type into a single GeoJSON feature collection

I'd like to merge shapefiles of different geometry types into a single geojson feature collection, but OGR says it doesn't support update of GeoJSON files: $ ogr2ogr -f GeoJSON -t_srs crs:84 -lco ...
3
votes
2answers
595 views

Partial Map Pixel Projections

I have the following: A PNG or JPG of a random width and height, in pixels, that represents a partial map of the world (i.e. a rectangle of the United States). The four corners of this image are ...
1
vote
1answer
165 views

Problem loading raster QGIS 2.0

I am very new at GIS. I am trying to load a raster so that I can complete a tutorial on georeferencing. The raster file is a jpeg. However, whenever I try to load the raster, it gives me solid colored ...
3
votes
1answer
325 views

Routing with osm2po - starting from middle of the street

I'm currently looking at using osm2po's java library to build a simple application that builds a shortest path between my favorite bars :) However, I'd like to start at any location, not at an ...
1
vote
1answer
219 views

Access attributes on featureCollection

The geoJSON-String: { "type": "FeatureCollection", "features": [ { "type": "Feature", "properties": {"title": "Standort 1 "}, "geometry": { "type": "Point", ...
2
votes
1answer
363 views

Batch Update Fields in Field Calculator or Model

I have a dataset of block-level census data that I clipped to an Illinois State Senate district. To update the data (e.g. for population) I'm applying an area multiplier, i.e taking the area of each ...
2
votes
0answers
528 views

Finding coordinates from a nested grid as a numpy array

So this is a pretty basic question, but I'm trying to figure it out. I've written a script that allows a user to read in a raster and provide a cell resolution, and outputs the amount of cells ...
4
votes
1answer
2k views

How to configure base layers in Geonetwork

I am trying to get an instance of Geonetwork configured but I can't get base layers to display in the Map Viewer as shown below: I think problem has to do with the fact that I installed Geoserver ...
4
votes
3answers
124 views

What meter resolution are US Census Block Shapes?

I'm creating a map layer that supports up to zoom level 14 and I want to know what resolution US Census blocks are? At zoom level 14 each pixel is approximately 16 meters. I am wondering if I can ...
3
votes
1answer
4k views

How to Use Custom Basemaps with BasemapToggle widget?

I'm trying to upgrade my app from version 3.3 to version 3.7 of the JavaScript API and am switching out the basemap gallery for the new BasemapToggle widget. I have two custom basemaps that I want to ...
1
vote
1answer
418 views

How To Show Percentages By Coloring Polygons in QGIS?

I am trying to produce a map with QGIS that has counties shaded according to the percentage of people born in a US Region. For example, counties with a high percentage of people born in the South ...
1
vote
1answer
492 views

PostGIS: Select FROM AS with WHERE not working

Maybe it's just because it's a Friday afternoon, but why can't I use the last WHERE in the following query? The ORDER BY works, but when I include the WHERE, I get an error saying "column line_geom ...
2
votes
1answer
1k views

How do I upgrade from PostGIS 2.0 to 2.1?

I'm using homebrew on OSX. I have a working postgres 9.2 + postgis 2.0 database installed. The main problem is that the 9.2 dump contains all the postgis 2.0 tables and functions, which don't need to ...
1
vote
2answers
82 views

How to remove features from geojson by mouse selection?

There are these unnecessary lines in my geojson: You see, not all the borderline was deleted when I merged two countries. Is there any way to quickly select and remove the features in a practical ...
3
votes
1answer
245 views

Interactive Web Maps That Update as Users Change Attributes

I want to create an interactive map where users can go to the website, click on a polygon in the map, and have a chioce of three options. When they click one, it will change the color and update the ...
2
votes
1answer
64 views

Cannot get the LocalFeatureService to start when transporting code and data

I have a C# project that uses a LocalFeatureService, a LocalGeoprocessingService and a LocalMapService. Everything runs fine when I run it at my own machine. However, when I transport the code and ...
1
vote
1answer
570 views

raster to ascii in QGIS

I have a raster file (DEM or .tif), but I need to transform it into a .txt file (ascii). How can I do this in QGis (Quantum Gis)? Thank you so much!
1
vote
1answer
521 views

Editor to work on GML files

I am looking for a good way to work on GML files and would appreciate some personal experience. At the moment I am using nXML or SGML mode for Emacs but I wouldnt mind having an IDE/Emacs mode/... ...
4
votes
1answer
214 views

Linux Tool to visualize CityGML file

I am looking for a linux program that allows me to visualize CityGML models (3D). I have tried a whole bunch so far (most of them via wine but also native ones) but I couldn't get a single one of them ...
1
vote
1answer
195 views

Can't solve “OperationNotSupported” error on WFS GetFeature request

I'm working on a web map viewer using OpenLayers, ExtJS, GeoExt and GXP. I've added a LayerTree (gxp_layertree) that shows layers from various WMS servers from different GeoServer versions. I've also ...
2
votes
1answer
587 views

How can I use wms service layers to edit in openlayers?

I'm new to openlayers. I'd like to edit a feature layer of wms service in openlayers. I created a wms service using ArcGIS server 10. I couldn't use the wms layers to edit using the openlayers ...
3
votes
0answers
723 views

Move shapefile from one folder to another using python [closed]

I'm working with shapefiles and using the ArcPy library. My script is creating a new shapefile based on a join and I want to know how to move the newly joined-shapefile from the environment location ...
5
votes
1answer
1k views

Buffer polygon inward by percentage of area [duplicate]

I would like to buffer a polygon inward by a percentage of its area, using the polygons below as an example. How could I shrink each polygon inward resulting in a 35% reduction of area? I am using ...
3
votes
3answers
1k views

A linestring merger algorithm

I'd like to merge linestrings which touch, but do not cross. The linestrings share the same SRID and come from a PostgreSQL 9.2/PostGIS 1.5 database. Within the table I query are several line strings, ...
2
votes
0answers
89 views

Get distance after path distance allocation

I use ArcGIS 10.1 in Windows XP. I have a two point feature data sets One containing a single point P1 and another containing multiple points Pm. I computed the minimum-distance path from P1 to each ...
4
votes
1answer
446 views

intersection between two multipolygons yielding anomalous GeometryCollection object full of LineString's & Polygon's (trying to get intersect area)

Normally when I call the #intersection method on a multipolygon to find the intersection shape on another multipolygon I get a multipolygon returned back to me. Either that or something else I can ...
1
vote
1answer
513 views

Openlayers SelectControl add multiple Layers

Heres my code to add an SelectControl with Popup for an existing layer add startup map.addLayer(window.markerLayer); window.markerLayer.events.on({ }); // Popup für Marker window.selectControl ...
4
votes
2answers
114 views

Good algorithm to detect “wrong” features in a vectorial coverage

I am working with a bunch of shapefiles. Each shapefile consisting in rectangles with an integer attribute representing the strength of a signal. I serve these vector files as overlays on a base map, ...
2
votes
1answer
216 views

Does the MapInfo centroid function guarantee a centroid within the polygon?

I wish to calculate the centroids of a large number of building polygons in OS MasterMap using MapInfo. MapInfo calculates the centroid using the object's Minimum Bounding Rectangle. Theoretically ...
8
votes
1answer
180 views

Why are date vaules displaying a trailing 'Z' when layers are published with Geoserver and a PostGIS data store?

I have published various layers using Geoserver 2.2.x with a PostGIS 2.0.1 (PostgreSQL 9.1.x) data store. Fields that only have date values and not time/timestamp related values are stored as date. ...
3
votes
1answer
327 views

IO Performance of ArcPy in virtual machine

The following script just copies a file into RAM, performs some simple operations and writes the result back to hard disc: import arcpy import random import time arcpy.management.Delete("in_memory") ...
3
votes
2answers
481 views

Calculating Z-scores using ModelBuilder in ArcGIS Desktop?

I am trying to take the natural log and then calculate z-scores on cell values in several composite band GRID rasters in ArcGIS Desktop. I am not fluent in Python and do not see a way to automate ...
2
votes
1answer
228 views

heat map of density ratio of 2 layers of points

I have 2 vector layers of points: one with a point for each house in the city (thanks to osm.org), roughly equivalent to population one with a point for each case of cholera in the city I'm trying ...
5
votes
1answer
802 views

Using the Processing Framework in QGIS 2.0

I am writing a plugin for QGIS 2.0, and I want to use the processing framework to call some functions. When I open the pyhton console inside QGIS, I am able to call it like this: >> import ...
5
votes
1answer
519 views

Why does ManageR and rpy2 not work in QGIS (1.8.0-Lisboa)?

I have been trying to get R scripts to function and ManageR to work within QGIS (1.8.0-Lisboa). (Windows 7). Python2.7.5. Two problems indicated that R was not working in QGis. First - when I run an ...
3
votes
1answer
742 views

Symbology for Open Street Map [OSM] Data in MapInfo [tab] format

I have shapefiles for the different SOM layers which I have translated into TABs but I am now trying to symbolise them in a similar style to OSM online. Is there a way to easily apply the OSM ...
1
vote
0answers
165 views

Efficient computation of path profile with Numpy and GDAL

I have numpy array with SRTM elevation data and I need calculate path profiles - vectors with elevation data from one point (transmitter) to every points of my map. Here's my current solution: def ...
6
votes
1answer
78 views

Geoserver and PostGis output [closed]

I have a peculiar rendering of a small table in PostGis of polygones (imported from a shape file) from Geoserver (layer preview with OpenLayers) The object are just cloned ... Would you give me a ...
3
votes
1answer
2k views

What expressions for QGIS field-calculator?

I do not understand what language I have to use in field-calculator and labels on QGIS: SQL or Python? And where I can find the possible script/expressions to use? in the image you can see the ...
5
votes
1answer
184 views

Finding the best locations for bee hives within a specified area (QGIS)

I would like to find fixed positions for bee hives within an orchard to ensure complete pollination of the trees. Is there a way to do this in QGIS? Example: The orchard area is 2 hectares (I have a ...
1
vote
0answers
187 views

AttributeError: Error in getting tool information when using TableToTable tool

I am trying to use the arcpy.TableToTable_conversion tool in my python script, but seem to be getting the following error on the line arcpy.TableToTable_conversion("FINAL_NLPG", ...
2
votes
1answer
47 views

Where did XYTools go [duplicate]

Where can I find the repository for XYTools plugin? I have tried several repositories and got messages that it was permanently removed!
3
votes
1answer
570 views

Colorify polygons in a pythonic way in Qgis

I want to addd a Layer and give the layer a color for the border and for the filling. With the code below i am possible to achieve a color for the border, but a did not found a solution to give a ...
1
vote
0answers
150 views

Csv To Shape Error

I have found a usefull tool to convert csv files into shape files with geotools: http : // docs.geotools.org/latest/userguide/tutorial/feature/csv2shp.html#create-a-shapefile-from-a-featurecollection ...
1
vote
3answers
394 views

How to register as versioned using SDELayer?

This is the normal process using ArcCatalog : I want to automate this process using sdeLayer or any tools - does anybody have an idea as to how to do it? there is an application sdelayer ...
2
votes
1answer
369 views

Why do tiles seems to jump around when using ArcGIS cache layer in Openlayers? [closed]

I am use Openlayers to add ArcGIS tilecache layers using arcgiscache class or another way which is jsonp. I can show the map properly, but when I pan, zoom or drag the map, the tiles seem to jump ...
4
votes
2answers
1k views

Sum many netCDF rasters

For the first time, I am using NetCDF data files containing daily data about soil moisture at a global level. I want to be able to obtain monthly mean value of soil moisture for each grid cell. ...
1
vote
1answer
90 views

CalculateField_management

How to put the field from arcpy.GetParameterAsText() into the expression here: CalculateField_management(in_table, field, expression, {expression_type}, {code_block}) Now it is like ...

15 30 50 per page