New answers tagged

1

If you have many shps, you may merge them together. If their table schema is the same you may symbolize the merged shp by categories, see steps below. Right click on layer name in the Layers panel and select Properties Select the Style tab, Categorized drop down, and select the field that has the lake name names defined in the Column drop down Then click ...


0

If you already created individual shapefiles, you could use the Merge Shapefiles to One... tool from the toolbar (Vector > Data Management Tools > Merge Shapefiles to One...) to merge all your shapefiles. If each shapefile contains a Name field, the final merged shapefile will also contain a Name field with all lakes and their associated name. You can ...


3

Just Add Features in your lake shapefile, you should be able to add as many Lakes as you want in the shapefile, add the attributes of the lakes as required (either on first creating the shapefile or later on by editing the attribute table) You can assign names to the lakes or categorize them anyway you want by adding an column in the attribute table (By ...


2

If you don't have a 3D Analyst license, you can do this: Add the CSV file to ArcMap, right-click on it and select Display XY data. Select appropriate values in the shown dialog, press OK. A new featureclass will be added to the map. Right-click on that, select Data, Export Data. Alternatively, in ArcCatalog, right-click on the CSV file, select Create ...


1

What about to use ASCII 3D to feature class tool? If your point doesn't have Z value, you could use for Z value for expample value 1. I assume you have only X and Y values.


0

as the DBMS sqlite is part of the android universe, it may be possible to use the spatial extension spatialite, which has it's own spatial index to query vector data in a given extent. Possibly a starting point: How to build Android spatialite?


2

Probably the CRS of your layer is not WGS84. First Save your layer using Save as ... from the popup menu of the layer, select WGS84 (EPSG:4326). After it in the new layer you will have latitude, longitude using $x and $y. Be careful about the projection setting of your original layer. If it is false the result of Save as will be false too. You can see and ...


0

I am answering my own question. I have determined that the ordering of layers in the Layer List Panel does not control layer ordering on the map unless 'Control rendering order' is disabled in the Layer Order Panel. Both panels can be displayed by left clicking on View of the main window's menu then selecting Panels from the drop down menu.


0

Is it too big a technical problem to have an orthographic projection pre-loaded, that can be re-centred to any view?


0

In ArcGIS, use the tool Copy Features select "Environment", then select Z Values, "disabled" Do the same with M Values to be sure. The resulting shape file should open in Matlab.


2

This is what fiona module would do, but in a sense you are then adding some GIS functionnalities to Python. Further GIS-like analysis on the geometries can then be performed using shapely.


2

This should normally work out of the box. Make sure that the imported GPX file layer is EPSG:4326 (lat/lon degrees). You can save it to the shapefile in any CRS you want. Please do not use Set Layer CRS in this step. For the Openstreetmap background, you can use the Openlayers plugin or the new QuickMap Services plugin. Openlayers requires the project CRS ...


1

After hours of trial and error, I found a solution that I answered here: How to merge and dissolve adjacent polygons and sum up their attributes in QGIS?


2

Thanks to the comment of @Ed Rollason I used the Topology checker to understand where was my problem. Ok, as I said, my layers overlap. But they overlap like a zipper (one on top of each other). After trying many tools (union, difference, merge, dissolve) without success, I found a video that explains the v.clean tool of the Process Toolbox. In QGIS ...


2

I'd check the following: first of all, I'd like to be sure that source data are OK, by comparing them with official/cadastral data I'd try to use the qgis openlayers plugin to check if the transformation to 3857/900913 works properly for both 23031 and 25831 Try to reproject using QGIS, just saving the shapefile with the target srid. If using QGIS works ...


4

You should be able to dissolve based on the landcover attribute rather than area. This will dissolve adjacent polygons which share an attribute. You can then calculate the area of the polygons in the attribute table using the field calculator.


0

Here is a link to a crowdsourced shapefile. http://geocoder.ca/?freedata=1 Canada Post is suing over this: http://geocoder.ca/?sued=1 I don't see how Canada Post can claim copyright over addresses submitted to a crowdsourced project, but I am not a lawyer and this is not legal advice.


0

Three things to check when you cannot see the Attachments (paper clip) icon in the Attributes window are: That you are using a Standard or Advanced level license - you cannot add/edit/delete attachments with a Basic license That you have started editing That you have the attributes of the correct layer active within your Attributes window


1

GeoServerRESTReader reader; GeoServerRESTStoreManager storeManager; reader = new GeoServerRESTReader(RESTURL, RESTUSER, RESTPW); storeManager = new GeoServerRESTStoreManager( new URL(RESTURL), RESTUSER, RESTPW); RESTDataStore rds = reader.getDatastore(workSpaceName, storeName); GSDirectoryOfShapefilesDatastoreEncoder update = new ...


5

As many users stated this question has no distinct answer. The results of an analysis may incomplete or fetch the wrong points, dependent on the definition of what should be considered as a corner. The simplest possibility would be the comparison of angles between adjacent points. As this question is familiar with this I will pick up this code fragment. ...


2

You need to determine the azimuth of the polyline segment next to the point. It is possible to calculate this value and save it to an attribute, or calculate it as an expression which give the azimuth as result. How to use the following Python script: Point layer and line layer are added to the legend (in the script named bridges and trails) and change ...


2

If you have an Advanced license, you might try the Eliminate Tool, in Data Management, Generalization. Here is the tool description, "Eliminates polygons by merging them with neighboring polygons that have the largest area or the longest shared border."


1

I've resolved this proble following procedure at this link. How to convert coordinates from meters to decimal degrees?


1

I've found a fix for now. I'm using the Mapbox API and it comes with mustache.js baked in. Therefore, when using the L.mapbox.template() function, mustache.js will skip over any blank values and finish rendering the DOM.


0

This (http://www.diva-gis.org/gdata) site is great for getting administrative data from all over the world including Europe. You can get data at different administrative levels as well (e.g., Country, State, County).


1

I'm not sure what low level I/O conflict was taking place, but the shapefile was in a folder that was set to sync with a cloud storage provider. I was writing to file at least every 30 seconds and the sync utility was dutifully attempting to keep up. It seems this would occasionally cause QgsFeatureIterator to grab a bad chunk of data and, after looking at ...


3

Yes, using the command line ogr2ogr tool. For example, given a "roads.shp" file, you could convert it using the following: ogr2ogr -f GML roads.gml roads.shp ogr2ogr provides a large array of options, so you might want to review them prior to executing. You can also use the tool to create only a subset of the input data and also reproject the output.


4

Some of the geoprocessing tools in ArcGIS respect output coordinate system environment setting, but not this one. You need to run the Project tool beforehand creating a projected shapefile first (use the WGS 1984 GCS). This will create a new shapefile on the disk with coordinates defined in lat/long.


1

You can use the build in import plugin that is installed when you install the PostGis extension in PostGres You can find it under Plugins in the menu and is called the PostGIS Shapefile and DBF loader watch this youtube video as an example


4

You've got a few options here. QGIS can natively open and process from CSV files so if your data is already in that format, you should be fine. Otherwise, you can export it to that format or install a plugin called "Spreadsheet Layers" from the Plugins Manager. There isn't really any major benefits between spreadsheet file types, just use what's simplest for ...


0

One solution would be to convert each of your polygons to rasters. Then take the portion of cell counts in each landcover class by the total cell count from the clip. Here is an example function: PortionClassInPoly <- function(MySingleShape, MainRaster) { # Start with one shape from your list # Rasterize this shape according to the ...


1

you need to create a new field in your attribute table and call it [Z] and make it float type, then do a field calculate on it making the new field [Z] = int([X]) once you have done this, you can run the stats on the new float field [Z] and it will work. you can never get stats on a field that is a string. you will always have to convert it to int or ...


1

If i understood you correct, then you want to make a shapefile? When you have loaded your base layer map into the chosen GIS software, then you build a map by locking up the layer and editing it with your chosen vector or point. There you also apply attributes. Eventually see this video: Https://www.youtube.com/watch?v=pUnUrTzP2dw


4

You can use the following Python function below to create an excel spreadsheet report: import os from xlwt import Workbook, Borders, Font, XFStyle import arcpy def createFieldReport(fc, out_excel): """create an excel spreadsheet showing field names and alias fc -- feature class out_excel -- output excel spreadsheet (should end in .xls) """ ...


5

You can download the "official" EU administrative/statistical units from Eurostat's GISCO service. The vector layers are available as ESRI Shapefiles and Personal GDBs, at different resolutions from here. Note, in order to extract the country level polygons as below, you will need to extract all features based on the following query STAT_LEVL_ = 1 from ...


1

X-Ray for ArcGIS will do this, although it may output far more information than you require. X-Ray for ArcCatalog will help you: Develop and refine geodatabase designs Analyze the differences between two geodatabase designs Merge two different designs in to a new consolidated geodatabase design Check for reserved RDBMS field names in ...


6

Natural Earth is a great source for free data, including country and state borders, at a variety of scales. You would just need to select European countries using the attribute table.


6

You can download world countries from ArcGIS Online and then open the attribute table, select by attribute (CONTINENT = 'Europe') and then right click to export Europe as a new layer. Presumably you can do the same with other global data sets you've found.


0

I got the same error so I show the errorlog from postgres and got this: ERROR: function addgeometrycolumn(unknown, unknown, unknown, integer, unknown, integer) is not unique at character 8 HINT: Could not choose a best candidate function. You might need to add explicit type casts. STATEMENT: SELECT ...


1

Reappearance of deleted features and/or odd behaviour of shapefiles from which features have been deleted in QGIS is a known bug, see this bug report 11007 and this related question - Deleted polygons seem to revert to older versions. As well as ArcGIS having trouble with such shapefiles, when saved in QGIS as MapInfo TAB files they then cause the MapInfo ...


2

Aggregator will merge geometries based on a specified attribute. If you aren't concerned with any other attributes you can tell it not to keep other attributes, otherwise it can concatenate/sum/average those too.


2

Yes, you need to use geodatabase topology if using ArcGIS. Geodatabase topology provides an automated, rule-based solution for maintaining the spatial integrity of your GIS data. In the topology create a rule not to allow gaps and fix the gaps. It is very fast. Here is a video to get you started. https://www.youtube.com/watch?v=hIDxUcG8op0 Use a feature ...


0

This task is a bit error-prone, because your CRS look similar. So QGIS might take the wrong one when adding a shapefile to the canvas. Check the assigned custom CRS and layer extent for all layers in every step. The geology shapefile has to be reprojected to the district CRS, and the reprojected geology has to overlap the original district shapefile when ...


1

I am not expert in qgis, but I would create a new empty shapefile specifying the same projections of the geology shapefile, then copy the districts geometries into that new shapefile and try clipping again the geology with the new districts in the same CRS. Also, when you do this copy and paste operation (hope it's possible in qgis but I guess it is), make ...


2

You can speed up the manual clean up process a bit by creating a virtual field on your final layer and populating it with the area of each feature ($area in field calculator). Then sort the attribute table by this field. You will probable find lots of records at the top with zero or close to zero areas, and these can be deleted quickly from within the ...


1

I think you're asking the same thing here as in your other question How to combine two polyline shapefile together. See my answer to that question.


3

Use the MMQGIS plugin to Combine -> Merge Layers, selecting your two polyline layers A and B as the inputs, and save the output as Layer C. Then use Vector -> Geometry Tools -> Lines to Polygons on Layer C and you will have your inner boundaries as polygons.


2

In QGIS merge the two polyline layers into one polyline shape file. Use the GRASS plug-in to create polygons from borders, unfortunately GRASS plug-in is not available in QGIS 2.8, so upgrade to QGIS 2.12 or use standalone GRASS (I give the GRASS command name in brackets): Create a new GRASS location Import the shape file into GRASS(v.in.ogr) Convert ...


2

I guess its because you have a typo in your schema properties : 'intLanes': ':str' should be changed to 'intLanes': 'str' (the colon before str).


1

EDIT: there is actually a simpler answer. Compute the intersection between your two layers (Vector > Geoprocessing tools > Intersect), then use the Group Stats plugin to compute statistics on the constituencies. You can even compute the total area of Natura 2000 sites per constituency. Minor issue: it will only take into account Natura 2000 sites that ...



Top 50 recent answers are included