Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

1
vote
1answer
21 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
36 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
0answers
20 views

Polygons vector shapefile conversion to xyz format using Python [on hold]

I have to convert a vector multipolygons shapefile to an xyz file where x and y are the lon and lat of points in the vector file extent, and z is equal to 0 for a point outside polygons, and equals 1 ...
2
votes
1answer
117 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
20 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 ...
0
votes
0answers
11 views

Aligning shapes to terrain in CityEngine?

I have a problem. As soon as I click "Align shapes to Terrain", my shapefile rectifies and falls down the edge. In the first picture(Border_Issue1) you can see that all shapefiles have the right size,...
1
vote
1answer
78 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
23k 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? [on hold]

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
32 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
31 views

PostgreSQL - Creating DB, User privileges [on hold]

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
14k 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
33 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
21 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
755 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
118 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 ...
-1
votes
0answers
19 views

Looking for polygon data for metropolitan areas around the world [duplicate]

So I've been looking for the past 2 days and haven't found any good reliable sources. I've been on OSM a ton and it seems that everything is a different standard. Some cities themselves are as big as ...
16
votes
8answers
38k 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
579 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 ...
0
votes
0answers
42 views

Convert gdb to shp file? [on hold]

I am trying to convert a large gdb file (648 MB) into a shape file. I have searched and tried many different methods but have no luck. This .gdb file is associated to a lyr file. I am running ArcGIS ...
2
votes
0answers
42 views

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

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
50 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 ...
1
vote
0answers
23 views

Reset / Clear button, upload shapefile on R Shiny

I would like to create a button that would allow me to reset a fileinput, and delete the previously imported shapefile. Here is my code: server.r: library(shiny) library(shinydashboard) library(...
3
votes
1answer
51 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 ...
0
votes
1answer
56 views

Add coordinates and id field into point shapefile in R/PyQGIS

I have a points shapefile with almost 1 million features. I would like to add three new attributes: y, x (coordinates) and an ID (integers from 1). How can I perform this task in R or PyQGIS? Using ...
2
votes
1answer
19 views

Using shapefile from MT.gov in Leaflet with R?

I would like to use shape files from http://ftp.geoinfo.msl.mt.gov/Data/Spatial/MSDI/Cadastral/Parcels/Sheridan/ However, the shape files are not showing up. My code is working with files from a ...
0
votes
1answer
25 views

GeoTIFF and shapefiles do not coincide [closed]

I am relatively new to QGIS and I am getting into it to do the analysis of my thesis. I am working with QGIS 2.18.15 I am working with crop data from Ramankutty et al. which comes in GeoTIFF format. ...
1
vote
1answer
141 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
54 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
32 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 ...
2
votes
1answer
74 views

Extract areas with certain pixel values from raster

I have land cover data from GEE (https://developers.google.com/earth-engine/datasets/catalog/ESA_GLOBCOVER_L4_200901_200912_V2_3) for specific countries. I would like to extract the values from the ...
0
votes
1answer
40 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
49 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
votes
0answers
16 views

How to export all Layer from MapContent have multi layer to only shapefile [closed]

Some body help me package org.geotools; import java.awt.Color; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.io.File; import java.io.IOException; import javax....
1
vote
0answers
34 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' ...
0
votes
1answer
126 views

Identify EPSG in SQL Server

I have been trying to load a shapefile available at https://www.elections.on.ca/en/voting-in-ontario/electoral-district-shapefiles/open-use-data-product-licence-agreement/download-shapefiles.html to ...
1
vote
2answers
32 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
24 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
39 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
34 views

Extracting desired values from KML file using QGIS?

I have a kml file of roads that I would like to convert into a shapefile using QGIS, I understand that this should be a straightforward task however I am running into the issue of extracting necessary ...
0
votes
1answer
38 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:...
1
vote
3answers
46 views

Switch coordinates in shapefiles

I got some shapes out of a WFS services and the points and polygons are not where they supposed to be. After taking a closer look in the data i came to the conclusion, that the X an Y coordinates ...
9
votes
3answers
935 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
38 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
89 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
15 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
24 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, ...
1
vote
1answer
215 views

Export spatial data from SQL Server to ESRI shapefile using OSGeo

i did a join between 2 tables departements2 which has all department with their id and geometry with BM_REGIONFR with id of department and region ( i have 5 region in each region many departement ) ...
2
votes
1answer
239 views

Join .csv file and .shp of georeferenced points

I have georeferenced a map and saved a selection of some points on the map. These points are cities of departure and arrival and I want to join the .shp with a and excel .csv with the information of ...