Skip to main content

All Questions

Tagged with or
Filter by
Sorted by
Tagged with
9 votes
4 answers
6k views

What is the cause of 'tearing' of polygons (artifacts) using R, ggplot and geom_polygon?

Thanks to the answer given in this question I have been able to subset and draw a map of electoral divisions in part of the UK, in this case Pembrokeshire. The resulting data frame is large and ...
SlowLearner's user avatar
  • 1,249
9 votes
1 answer
9k views

Saving layer as shapefile using PyQGIS

Using QGIS 3.4.4, I'm trying to save a layer as shapefile with the following code: import os import qgis.core working_folder = r'C:\myFolder' fc_Prospect = os.path.join(working_folder, Equipment.gdb|...
Pitrako Junior's user avatar
8 votes
4 answers
13k views

Updating Attributes using Pyshp

Is it possible to update an attribute field in a shapefile using pyshp ? I went through their documentation and all they show is how to create new attribute rather than editing or updating an already ...
Sibi's user avatar
  • 1,097
8 votes
3 answers
19k views

How to convert coverage (.adf) to shapefile?

Is there any tool or software except ArcGIS which I can use for converting coverage (.adf) files to shapefiles?
againstflow's user avatar
  • 5,054
8 votes
3 answers
8k views

Generating shapefile containing UTM grid (graticule)?

I'm looking for a shapefile containing an 1000m or 2000m UTM grid ("graticule"). All I was about to find on the web is a 10000m UTM grid (here: http://en.giswiki.net/wiki/UTM) and I am aware that a ...
Name's user avatar
  • 890
8 votes
1 answer
10k views

Is there a QGIS bezier curve tool?

I'm a recent convert to QGIS but have been confused about the lack of support for drawing curved shapefiles, especially when Arc has almost too many. A lot of the work that our consultancy do is based ...
aheigins's user avatar
  • 213
8 votes
2 answers
7k views

better way to duplicate a layer using ogr in python?

I'm splitting a large shapefile into many smaller ones using ogr. I'd like to just copy all of the field and layer config information from the original. Here's how I'm doing it now: src = ogr.Open('...
user2076663's user avatar
8 votes
2 answers
6k views

2010 Census Tiger County shp file with defined coastal land area

I am looking for a 2010 Census Tiger Shape file that hugs the coastline and doesn't include the ocean in county boundaries. I have a pre 2010 file that did this and I can't seem to find a 2010 ...
Glenn's user avatar
  • 808
8 votes
2 answers
4k views

Control the colors of a shapefile

I have a Shapefile with road data. Sometimes the roads are blue, sometimes they are green. I didn't used to mind, but now I'm tiling everything so I need to control the colors. I'm loading it with ...
patrick's user avatar
  • 2,730
8 votes
1 answer
6k views

Open .qgz files to edit file paths

I have hundreds of QGIS projects that have been built over years and many different QGIS versions. Now I need to move them to another server and I want to be able to edit the project files to show the ...
Johanna's user avatar
  • 1,225
7 votes
2 answers
9k views

Changing shapefile longitude from -180 - 180 to 0 - 360?

I have a shapefile of world countries, with longitude between -180° and 180°. How can I change the shapefile (eg. with ogr2ogr) for having longitude between 0 and 360°. Following OSGEO/Trac ...
Bruno von Paris's user avatar
7 votes
4 answers
15k views

Tool for converting .shp file to .tab file?

I am searching for any free tool which can convert ShapeFile (.shp) to MapInfo (.tab) file.
user1899's user avatar
  • 1,437
7 votes
4 answers
9k views

Export to a Shapefile and maintain Domain Coded Values

I maintain a complex parcel fabric that uses coded value domains for a few fields. These are short integer fields with values from 1 - 6. These values represent say 1:Integrated Registered Survey Plan,...
Cody Brown's user avatar
  • 4,387
7 votes
3 answers
855 views

Checking what changed inside updated shapefile

I am using different shapefiles from open data in Switzerland. They have just updated the whole set. My question is: how to compared two layers (new and old version)? I would like to know the ...
sweet.sugar.cola's user avatar
7 votes
2 answers
6k views

QGIS split vector layer gives me GPKG files but I need shp files

QGIS 3.6.0 I am new to QGIS software and not very technical on its deep workings. I am trying to split a .shp file using split vector layer. I need .shp file outputs but it auto creates .gpkg files. ...
Will's user avatar
  • 71
6 votes
2 answers
34k views

Exporting shapefile to Google Earth format (*.kmz) using QGIS?

Is there a way to export a shapefile to Google Earth format (*.kmz) using QGIS?
user17426's user avatar
6 votes
2 answers
2k views

Splitting vector layer into shapefiles (not geopackage) using QGIS?

Using QGIS 3.6.3, I have a layer with ten polygons. I want to use split vector layer to split the file into ten shapefiles, But the result output file is a Geopackage. How can I get ten shapefiles by ...
Zhipeng Zheng's user avatar
6 votes
2 answers
20k views

Specifying precision and scale of new field using ArcPy?

I'm wanting to create a field with a maximum of 1 decimal place and then calculate a value into it: (I know that all my values are < 10) arcpy.AddField_management('C:/shapefile.shp', 'myField', "...
Random Geo guy's user avatar
6 votes
4 answers
22k views

Change shapefile coordinate system using Python

I am struggling with Python and Kartograph.py. I'd like to change coordinate system of the whole shapefile from EPSG:5514 to EPSG:4326. Found some code in here working for points, but I don't know how ...
vesimies.h's user avatar
6 votes
1 answer
5k 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 ...
jotamon's user avatar
  • 1,786
6 votes
3 answers
11k views

Creating missing dbf file for shapefile

I have a shapefile (shp) that is missing its dbf. I tried to load this into PostGIS using shp2pgsql and got the error. could not open shapename.dbf I opened it in QGIS, without issue, and when I ...
John Powell's user avatar
  • 13.7k
5 votes
4 answers
24k views

UK coastline shapefile?

I'm looking for a shapefile for the coastline of the UK. I'm guessing the Ordnance Survey 'geo-portal' is the best place to get this, but whenever I go to the Ordnance Survey site I get the shakes. (...
Richard's user avatar
  • 3,329
5 votes
1 answer
2k views

Create dynamic filename, based on attribute value, for output of QGIS model

Basic idea Every user running a model selects a folder where the output of the model, a raster, should be stored as a file. The filename should be created automatically, based on an attribute value (...
Babel's user avatar
  • 75k
5 votes
3 answers
2k views

Producing singlepart featureclass with unique IDs for each spatially non-connected polygon?

What is the best method to convert a singlepart shapefile (i.e. one record that contains several non-connected polygons) into a mutlipart shapefile? For clarification the original question asked how ...
GeoPy's user avatar
  • 603
5 votes
2 answers
5k views

Select by attributes within the fiona Python module

Is it possible to select polygons from a shapefile based upon their attributes using the Fiona Python module? I can't seem to find anything in the docs, but it seems like a strange thing not to be ...
robintw's user avatar
  • 4,014
5 votes
1 answer
19k views

How to import shapefile into SQL Server 2008 R2 using only SQL scripts?

I am trying to import some shapefiles into SQL Server 2008 R2. I found this useful tool called Shape2SQL however I am not sure how I can import shapefile directly using only SQL scripts as this is ...
Jeff's user avatar
  • 175
4 votes
2 answers
4k views

How to find out the co-ordinate system using .prj file

I'm very new to GIS concepts. Is there a way or procedure of finding out whether the co-ordinate system is in UTM, latitude/longitude or in stateplane using .prj file? My .prj file contains the ...
Sibi's user avatar
  • 1,097
4 votes
3 answers
2k views

How to transfer data from spreadsheet into shapefile?

I am looking at Deprivation in the UK and there is some good data in the form of spreadsheets on this website http://www.communities.gov.uk/publications/corporate/statistics/indices2010 I would like ...
dpc1989's user avatar
  • 265
4 votes
2 answers
3k views

Is there a way to download and edit an OSM file in QGIS?

I am working with OSM maps in QGIS. I am looking for a way to extract a shapefile of roads, or buildings, from OSM so I will be able to edit them.
Nitzan Matan's user avatar
  • 2,867
3 votes
2 answers
6k views

Converting from shapefile or raster formats to LAS? [closed]

I am looking for a solution to convert either from ESRI shapefile format to LAS or from a common raster format to LAS. I have access to following software: ArcGIS 10.2 for Desktop (arcinfo with ...
Jordan Walker's user avatar
3 votes
4 answers
3k views

Filtering out labels surrounding active feature in Atlas

Let me put it this way, if I’ve tried data-defined rendering and the common featureid expression and it’s still not working - and I think one or both options should - what basic thing could I be ...
brvee's user avatar
  • 31
3 votes
2 answers
3k views

Split By Attributes creates no Shapefiles?

I want to create for each polygon of a shapefile a separate shapefile with the Split By Attributes tool. Input is a polygon shapefile and as split field I choose the ID. This tool works fine but in ...
David's user avatar
  • 393
3 votes
1 answer
1k views

Most efficient way to batch clip in FME?

I have one large shapefile and 100 smaller shapefiles that are smaller areas within the large shapefile. Using the Clipper transformer, I want to clip the large shapefile using each of the smaller ...
whatIS's user avatar
  • 121
3 votes
1 answer
1k views

nx_spatial does not read all shapefile features

I have a polyline shapefile for a road network. The roads are split at every intersection (node), e.g. if two roads intersect at one point, then they are split into four links(edges). So using the ...
Asif Rehan's user avatar
2 votes
2 answers
1k views

Why does ESRI make me store my DBF doubles as strings?

As far as I can tell I have to store all numeric values in a shapefile's associated DBF file as strings (yes, the N type is essentially a string). Can anyone confirm that ESRI does not support the use ...
Random Geo guy's user avatar
2 votes
3 answers
4k views

"Clip" hole into Shapefile

I want to clip a hole into a shapefile. The underlaying shapefile (greenish) consists of many polygons. The overlaying (red) is only one polygon. When I use the clip tool I get this or this ...
four-eyes's user avatar
  • 3,480
2 votes
1 answer
505 views

Joining 2 layers by location doesn't join desired fields from attributes tables

I have 2 layers that I'm trying to join by location: 1 is a point layer (CRS 4326) and the other is a shapefile layer (CRS 4326). The shapefile layer has a field in the attribute table whose values I ...
gulfy's user avatar
  • 63
2 votes
2 answers
910 views

"Phantom" features showing up in QGIS?

I am using QGIS 2.4 on Windows 8.1. I have a project in which I have been digitizing from OpenMaps. Last night I was doing some more digitizing, saved, and closed the program. When I opened it this ...
wild_ecology's user avatar
2 votes
3 answers
4k views

Storing two kinds of point geometry in shapefile or creating multipoint shapefiles? [closed]

Following How many interior and exterior rings can a polygon have in a standard ArcGIS shapefile?, can I have a mixture of two kinds of geometry in a shapefile of type point. Just like I have about ...
Sepideh Abadpour's user avatar
2 votes
1 answer
343 views

ST_Distance does not give nearest node

I am trying to find the nearest point on the road network closest to a given point. I imported the road network into PostGIS from QGIS and am using the SQL window in QGIS DB Manager to query the road ...
Chintan Pathak's user avatar
2 votes
1 answer
3k views

How to create a 3D shapefile from a raster?

I´m trying to make a 3D shapefile from a raster feature but not working. Tried already to run the command in OSGeo4W but nothing happen. I'm using the Qgis 1.8.0 Lisboa. The purpose is to get a final ...
Jorge Marques's user avatar
1 vote
1 answer
3k views

How to have a nullable field included in a shapefile using the Geotools library?

I am trying to add a new field to a shapefile and need it to store null values. But by using SimpleFeatureTypeBuilder from the Geotools library and then using the Add command, it is not giving the ...
viji's user avatar
  • 23
1 vote
2 answers
2k views

QGIS rounds up the coordinates to six decimals when saving layer changes

I have the problem that when I create a new point (in a point layer) or a new line (in a line layer of course) and I save the changes to the layer (so NOT the project save) then QGIS rounds up the ...
Tudor's user avatar
  • 87
1 vote
1 answer
1k views

Version problems with Geotools CSV2SHP example

I'm trying to use the CSV2SHP tutorial. I spent some time trying to get it to run but using v10.x of Geotools causes the shapefile to be output with no geometries. For instance if I open it in QGIS, ...
PeteBrew's user avatar
  • 133
0 votes
2 answers
4k views

Vertical lines in a polygon shapefile [closed]

I am working with a GIS problem using a single input of a polygon shapefile. Consider an irregular polygon. I want to draw vertical lines across the extent of the polygon at equal spacing. How I ...
Akhil's user avatar
  • 1,445
0 votes
1 answer
1k views

Clip global data by polygon using rioxarray fails (off by 180 longitude)

I want to extract CMIP6 climate data within polygons defined by a selection of the Large Marine Ecosystems of the world. The data(CMIP6) are found in ranges from 0 to 360 degrees longitude, while my ...
Trond Kristiansen's user avatar
36 votes
5 answers
10k views

Advantages of using spatialite over shapefile? [closed]

I found spatialite more useful than shapefiles as it does not have the limitations of shapefile and it is also portable. Many people here use shapefiles to exchange data and even the experts do not ...
neogeomat's user avatar
  • 8,390
35 votes
6 answers
60k views

Free tool to convert ArcGIS layer package (*.lpk) to shapefile (*.shp)?

I have received a *.lpk file from Esri's ArcGIS platform that I would like to convert to a shapefile. How can I do this, using only free software?
Zach's user avatar
  • 843
23 votes
7 answers
6k views

Alternatives to Shapefiles as open-source, cross platform dataset types [closed]

I am working on software that is very ESRI oriented, but a future version will likely not be using ESRI software. It uses Shapefiles and Geodatabases. I'm planning on getting all of my data to ...
Tanner's user avatar
  • 7,404
23 votes
3 answers
42k views

How can I get the proj4 string or EPSG code from a shapefile .prj file? [duplicate]

I have to work with a shapefile defined in an unusual projection, which my GIS software does not know about. How can I get the proj4 definition or the EPSG code for the projection?
rudivonstaden's user avatar

1 2 3
4
5
18