Questions tagged [shapefile]

A vector data storage format for storing the location, shape, and attributes of geographic features. Often referred to as 'an ESRI shapefile', as ESRI developed it.

Filter by
Sorted by
Tagged with
0
votes
2answers
74 views

Reading shapefiles using for loop: Error in readOGR() : length(dsn) == 1L is not TRUE

I'm using a for loop to read in multiple shapefiles within a directory and manipulate them individually. Presently I cannot do this because the for loop results in the error: "Error in readOGR(...
0
votes
0answers
43 views

TIFF somewhat does not match with a shapefile

Two layers, one .shp and a NDVI image (from the MODIS, exported it in TIFF format from envi), have the same geographic coordinate system (GCS_WGS_1984), but they are not overlapping 100% in ArcGIS. ...
1
vote
1answer
42 views

Creating 1 hectare rectangle polygon surrounding points and dividing it into equal sized sub-quadrats in ArcGIS Desktop?

I have a set of points like this: ] I have only these points' information. Now I want to draw a boundary of this points whose size should be 1 hectare (100m x 100m). After that, I want to subdivide ...
1
vote
1answer
71 views

How to convert a jpeg map of borders into a shapefile?

I have a map of French departments from the 19th century (impossible to find in shapefile format) in jpeg format and I would like to convert it into a shapefile in order to regroup raster data and ...
1
vote
1answer
42 views

Splitting an administrative region into given number of parts

I have the following plot. I want to divide the administrative region into given number (say 20) equal parts. library(maps) data(world.cities) Pakistan <- data.frame(map("world", "Pakistan", ...
2
votes
1answer
145 views

How can we extract values from a raster and put it in a shapefile?

I just started using QGIS for a research project and I am not at all familiar with the software nor the formats used. I have a shapefile representing the different departments of France, delimited by ...
0
votes
0answers
25 views

How to create and modify a multipolygon so that it does not overlap when merging layers in QGIS?

I am new to QGIS. I need to modify a shapefile so I can add a circle in a Canadian province to be used for Tableau afterwards. I tried to use QGIS to modify the shapefile. I have created a new layer ...
1
vote
1answer
119 views

Deleting empty Geometry in shapefile using GDAL command-line GDAL utilities?

How empty geometries be deleted from shapefile using the command-line GDAL utilities?
37
votes
4answers
24k views

Simple thematic mapping of shapefile using Python?

I wish to visualize geographical data in Python, without using ArcGIS/ArcPy, and make a map. On the internet I found how to make a thematic map using Python: Here is some code that I tried: ...
8
votes
1answer
1k views

Choosing Python 3 libraries for GIS analysis? [closed]

I am trying to do some spatial data analysis in Python 3 now, and I was wondering what the best libraries are for GIS in Python 3. The Fiona library was developed with Python 3.3 but the Python 3+ ...
0
votes
0answers
66 views

How to export Google Maps zip polygon to shapefile

I have the following URL that is a zip polygon from Google Maps that I want to export to shapefile and open in QGIS. How can I do that?
1
vote
1answer
63 views

PostgreSQL - Creating DB, User privileges [closed]

I created a database named "wchiba" in postgres using : create database wchiba; Then I create a user : create a user saifeddine with password "0000"; Then I grant privileges : grant all on ...
9
votes
3answers
15k views

Converting shapefile to SVG keeping internal data?

I am very new to GIS. I found a tutorial on how to make a choropleth using Python tools. I want to follow it but use my own data and map. However the tutorial uses a US map SVG file and I need to use ...
1
vote
1answer
134 views

Extracting admin boundary data from OpenStreetMap?

I'm really just looking to get borders for cities and regions around the world. Ideally in a shapefile format. Does anyone know how I can do that from OpenStreetMap?
0
votes
1answer
33 views

password authentication failed for user “ASUS”

I'm creating table in PostgreSQL using these commands: shp2pgsql -s 32632 watershed.shp watershed > watershed.sql psql -f watershed.sql cambridge psql -f watershed.sql cambridge But I had ...
0
votes
2answers
885 views

How to add a shapefile in eCognition?

I added the shapefile from thematic layers but I am not able to view the imported shapefile in the project window on the image.
2
votes
3answers
135 views

Assigning each point name of polygon in which it lies using QGIS?

I am completely new to QGIS, and to the world of shapefiles and GIS in general. I have the shapefile of a city, divided into its districts. On top of it I add a layer from a csv, with a certain ...
17
votes
8answers
40k views

Seeking shapefile of city boundaries in US?

Where can I find a shapefile that contains boundaries for the major cities in the United States? I have tried the census website but could not find anything.
1
vote
2answers
652 views

Seeking data source for worldwide urban/statistical areas as polygons?

I am looking for a shapefile (or any format really) that has worldwide coverage of major urban areas / statistical areas as polygons with names. Similar to what the US census Bureau' Core Based ...
7
votes
3answers
2k views

Seeking urban area shapefiles for France, Germany and Belgium?

I'm trying to make a map like this for the Low Countries/Rhineland, where I basically show how spread out all the urban areas would be there if the urban areas had similar densities to American urban ...
2
votes
0answers
49 views

How to make a polygon on QGIS based on a PDF image? [closed]

I'm trying to take an image out of a PDF and make a shapefile on QGIS. How can I do that?
2
votes
1answer
53 views

Finding highest value within a shapefile or feature class using ArcGIS Desktop?

I want to find the highest value within a specific area of a shapefile feature class but am unsure about how to do this. From the attatched image, I want to find the pixel within the outlined region ...
3
votes
1answer
100 views

Overlapping polygons layer order

Is there a way in QGIS to prioritize the layering order overlapping polygons. I have a shapefile with numbers in the attribute table from 1-20. Each number is associated with its own polygon. I want ...
1
vote
1answer
150 views

What's the difference in these two shapefiles?

I'm trying to plot points on these maps in R, with points from "Coordinates" in the same folder. The WL.shp plots fine with the data, but the NG.shp (which should only be larger and of the same area +...
3
votes
2answers
74 views

Merge shapefiles with common field

I'm trying to merge several shapefile layers. Each of the layers has three attributes: CGRSName: Name of the grid cell (same for each shapefile) CGRSType: explains the type of grid (not important ...
2
votes
1answer
41 views

Merge only overlapping shapefiles using FME

I am very new to FME. I have 10 shapefiles which overlap but not from beginning to the end! Therefore I want FME to detect "segments" where there is overlapping and splits into such segments the ...
1
vote
1answer
79 views

Merging road segments into one road line in QGIS

I have a Shapefile with a road network (lines) which includes several road segments (lines). Is there any way to merge all these lines into one line using QGIS?
1
vote
2answers
151 views

Rounding coordinates to 5 decimals in GeoPandas?

I have a shapefile, which I converted into geopandas dataframe. I would like to round the coordinates to 5 decimals. Is there a method/function in geopandas that can do this? My shapefile contains ...
1
vote
0answers
200 views

Changing CRS of geometry in geopandas dataframe efficiently?

I have a shapefile which I am converting into a geopandas dataframe. The CRS of this shapefile is epsg:4326 and I want to convert this to epsg:3857. import geopandas as gp file_path = 'zip_poly.shp' ...
1
vote
2answers
70 views

Create a circle in R, and plot it in a shapefile

I want to plot a circle with a radius of 5 miles around a hospital in Massachusetts. I was using some previous answers found here, but it is not working. st_buffer shows an error. library(sp) ...
0
votes
0answers
31 views

Loading shapefile using ArcPy in Pycharm?

I want to use ArcPy and pycharm to do zonal statistics. When I loaded shapefile just as I did in the python console in arcgis, the pycharm identifies the shapefile as string type and I got the ERROR ...
0
votes
2answers
83 views

Fiona and Geopandas not applying CRS to shapefile during creation

I'm trying to create a shapefile of points from a coordinate list. But, when I use fiona to create the shapefile Arc Catalog is showing that there is no CRS. I tried to add the CRS with Geopandas and ...
0
votes
1answer
43 views

ArcMap 10.6: Is it possible to extract point values from points?

I've got three point shapes with different fields that I cannot seem to merge as I get ERROR 000229: cannot open 'name of shapefile'. Instead of solving this error, I wanted to try something different:...
9
votes
3answers
1k views

Voronoi Diagram on a given polygon using QGIS

I am trying to create a Voronoi Diagram on a specific polygon, but there is some issue when dealing with edges. Here is how I do it: Preparing the points for Voronoi and the polygon for the diagram ...
2
votes
1answer
73 views

Extracting shapefile with suburbs of a city from OSM

I never downloaded shapefiles from OpenStreetMap before and now I am trying to download a shapefile of the city of Turin (Italy) with the suburbs polygons encoded in it. I know for sure that the ...
2
votes
2answers
98 views

How do apps like zillow serve up data?

I'm a total newbie to GIS, but attempting to build an app similar to zillows that quickly serves up data based on user input. Currently, i'm collecting the data via shp files which are being store ...
1
vote
0answers
18 views

Layering grid codes visually

Is it possible to order grid codes in a shapefile visually by building a query in ArcMap? For example in symbology I have grid codes 1, 2, 4, 5 in a shapefile and I want to make it so that when the ...
0
votes
0answers
74 views

Retain field name alias in feature class when exporting to shapefile

I have a feature class in a geodatabase which I've joined a table to. The table which was joined has field names >10 chars. I will then need to export the feature class to SHP and once completed, ...
0
votes
0answers
15 views

Regarding Sec Town Range? [duplicate]

This is regarding Sec Town Range. I have received this in parcel shapefile. Is there any way to use this to index the data?
0
votes
0answers
41 views

Seeking Python implementation of contiguity constrained clustering?

I'm looking for an example of Python implementation of contiguity constrained clustering algorithm. The task I want to perform is to reduce the number of administrative zones by grouping them into as ...
-2
votes
1answer
262 views

Why don't shapefiles online contain the coastline (country borders)?

I have searched everywhere and Geofabric has the best packages of shps yet doesn't have the coastline of countries. I'm talking about the line that demarcates a country i suppose they are called ...
-1
votes
1answer
43 views

Developing Offline Android app to open shapefiles and generate maps? [closed]

I would like to create an offline Android app that can read shapefiles and generate maps as created on ArcGIS. I tend toward using Python for it. How do I go about it?
0
votes
0answers
29 views

Shapefile created from Whitebox GAT has no *. prj file?

I am new to Whitebox GAT. I found out that the shapefile I created in it does not have projection file. Did I do something wrong?
0
votes
0answers
14 views

Creating shapefile with features in GISPro?

We cannot figure out how to create a shapefile that contains the features seen within the app GISPro (by Garafa) on an iPad. I have been able to export a shapefile, but there are no features attached ...
1
vote
1answer
30 views

R: polygons' id different than @data id after load from shapefile [closed]

I loaded a shapefile in R using readOGR and I named as data.map. I can see the shape pretty well by using plot(data.map) The issue is that polygons' id (the id of the plot) is not the same with the ...
1
vote
1answer
93 views

Importing shapefile into R [closed]

I don't understand why I should choose readOGR() over readShapePoly. What are all the different ways of doing this, and why should I choose one over another?
0
votes
0answers
18 views

Shapefiles not lining up - defined projection and re-projected [duplicate]

I have shapefiles created from GPS coordinates from three different regions within a province in Canada. The raw data coordinate systems seem to me to match and when displaying xy coordinates from the ...
1
vote
1answer
522 views

How to copy values from one attribute column to another with Python/QGIS?

I have one shapefile with two columns and I want to copy the values from column 'A' to column 'B' (in the same shapefile). I need to do this with a script, because at the end I want to iterate ...
3
votes
1answer
42 views

How do I bring the Z value to attribute table?

I have a shapefile exported from a hydraulics software that I use. The file is exported as polylines. I convert it to a point layer using the "Extract Nodes" function. The remaining piece of ...
5
votes
2answers
16k views

Converting CAD Annotation to Shapefile with attributes using FME?

What transformer should I use to add AutoCAD Mtext to GIS attribute table using FME? The reader file in CAD and I want to transform it to GIS Shapefile. In this case I want to expose the attribute ...