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
1
vote
2answers
311 views

ArcGIS messing with feature geometry in Editing mode

I am currently working on project, where I need to digitise a geomorphological map. I am working in ArcMap 10.5.1. I have an issue with creating new features. When I am digitising an object from the ...
2
votes
2answers
125 views

Create prj-file for shapefile in QGIS 3?

When you load in QGIS a shapefile without a PRJ file, you can set the coordinate system, but no PRJ file is created. This older question: How to obtain .prj files in QGIS? has an answer saying menu ...
0
votes
0answers
17 views

Why are there duplicate geometries in U.S. census shapefiles?

I have been writing a Python program to analyze the contents of shapefiles from the 2010 U.S. census, and I came across some odd duplication that I cannot explain. For example, in the 2010 shapefile ...
0
votes
1answer
182 views

Shapefile not showing in proper location

Working in QGIS 3.0.1; I just switched to QGIS and am trying to get used to it. I have a shapefile from SW Maps app of a track walked on hiking trails, and am attempting to make a basic map using ...
0
votes
4answers
7k views

How to convert contours and raster surface from Petrel to shapefiles and rasters that can display in ArcGIS?

We have Petrel which is used to produce a surface of a geological horizon below the earth's surface. In Petrel we have contours (vectors) and a raster image of the same area, also visualising ...
0
votes
1answer
71 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,...
2
votes
2answers
297 views

Create a dynamic excel sheet linked to a shapefile's attributes

I am trying to create an excel sheet that is updated automatically when the features of a shapefile are updated. I know the shapefile's .dbf file is updated but I need the excel sheet to be formatted ...
2
votes
0answers
58 views

Use “meters at scale” with custom CRS

[QGIS V.3.10.3 A Coruña] For streets in my fantasy world map I want to use a line ESRI shapefile. My custom CRS is a lonlat one and looks like the following: GEOGCRS["unknown", DATUM["unknown", ...
3
votes
2answers
53 views

Why is my count in polygon number greater than the number of raw data points?

I'm working with GPS points and want to count how many of them fall within protected areas of 4 countries in Southern Africa (Eswatini, Zimbabwe, Mozambique and South Africa). I get the shape files ...
0
votes
2answers
36 views

Create vector .shp file and draw several lines with various attributes (L, Z, S%, etc) from coordinates pairs

I have a set or coordinates which forms lines from two points (p1-p2, p2-p3,...., p(n-1)-p(n)), I want to create a SHP file in order to draw several lines from these points, which have several ...
1
vote
1answer
34 views

Crop raster list to a shapefile

I am very new to R, so please bear with my explanation. I have a raster list made up of 671 objects that I am hoping to clip to a shapefile. I don't know if this can be done, so any suggestions would ...
0
votes
0answers
32 views

QGIS 3.10 Add ring to shapefile - “Unknown error”

I have a polygon shapefile layer with some overlapping polygons, styled using categorised labelling with different styles layered on top of the others. I would normally use the "Add ring" tool to draw ...
0
votes
2answers
468 views

Creating input data for LRS plugin from Excel table without coordinates?

I'm working with QGIS 2.2.0. I want to add a shapefile from an excel file that has informations I want to use in the LRS plugin. The excel file has no geographic information. Every time I try to save ...
1
vote
1answer
28 views

QGIS Default Vector Layer Style

When I import a shapefile as a vector layer the default setting is always applied for the colouring It's always a simple fill with a stroke width of 0.26. Every time I end up changing it to a simple ...
7
votes
1answer
171 views

Coordinate system of Pluto

I’m trying to plot a shapefile of points that correspond for all impact craters on Pluto. I can't get the points to math with the impact craters from the global mosaic of Pluto's surface. In the best ...
1
vote
1answer
44 views

GDAL polygonize processing

I am a bit of a GIS beginner here. I've got an image mask in .jpg format that I'm trying to convert to a shapefile .shp format. To do so, I use the GDAL polygonize function. This is what the input ...
0
votes
0answers
11 views

How do I remove parts of a polygon shapefile overlapped by polygons from other shapefiles?

I'm trying to create a map of existing woodlands buffered to 200m. I've created a 200m buffer shapefile, and I now want to remove the parts of the shapefile which overlap roads, buildings and bodies ...
2
votes
1answer
53 views

QGIS: loaded .shp file not displayed

I am using QGIS 3.10.2-A Coruña and PyQGIS via the internal Python Console (Plugins -> Python Console). Currently I am trying to import a shape file using the following command: vlayer = ...
0
votes
0answers
24 views

Find one centroid instead of multiple centroids?

I'm trying to find the centroid (center of mass) for several IUCN species range maps. Using the code below I've run into an issue in R. library(rgdal) library(rgeos) shp <- readOGR("/Documents/...
2
votes
0answers
1k views

Creating fishnet using Python? [duplicate]

I am trying to create a fishnet of x by x miles for all USA, same as this basically: http://www.giscourse.com/creating-a-fishnet-grid-using-arcgis-10/ However, I want to do this with python. My ...
0
votes
1answer
40 views

shapefile is saved as AutoCAD type [closed]

I'm asking this question for a student I have that can't open shapefiles in QGIS. Whenever she tries to open shapefile in QGIS 3 she get this error message: When I checked her library where the ...
-1
votes
1answer
37 views

Convert XML files in to shapefiles using ArcGIS or FME? [closed]

I have attached a short text from XML file. Can this file be transferred to the spatial domain? How to convert XML files in to shapefiles using ArcGIS or FME?
1
vote
0answers
17 views

Shapefile size limits in Mapbox

I'm creating a style in Mapbox which is supposed to contain hundreds of shapefiles for a total size (shp + dbf) of several GBs. Due to the limit of 15 sources per style, I've combined the smaller ...
0
votes
0answers
19 views

Publish a feature service from a shapefile in ArcGIS Online using JavaScript

I have created a custom HTML page for data extract analysis using ArcGIS API, the API save the shapefile in zip format by default in my ArcGIS portal, so I just want to publish the shapefile(.zip) as ...
3
votes
2answers
2k views

Decrypt strange encoded characters in the attribute table of a shapefile

In QGIS, I can't read characters of the shapefile in my geological layer attribute table : I don't understand or there are misunderstandable characters of shapefile. Below a screenshot of the ...
1
vote
1answer
75 views

Error while converting Dataframe to Geodataframe

I am trying to convert a table to a shapefile. To do that, I am storing that table in a dataframe and then I am trying to convert that dataframe to geodataframe using GeoPandas. But I am getting an ...
1
vote
0answers
29 views

Shapefile straight line feature appearing as arcs at different zoom levels

I have a Shapefile that contains sanitary sewer pipe sections. ArcGIS and AutoCAD Map both display all of the pipe segments as straight lines. However, when displayed in QGIS, depending on the zoom ...
0
votes
0answers
38 views

Error clipping raster in QGIS?

I am trying to use a polygon shapefile to clip a raster, but it gives me "Clipping Error 1: Cutline polygon is invalid", and a blank raster as output. This is similar to this question, but the ...
20
votes
2answers
16k views

API documentation for Gdal/Ogr with C#

I want to assign projection to shapefile in my web C# application, for this i am using Gdal/OGR/OSR C# bindings and add osr_csharp.dll and ogr_csharp.dll references. But i am facing some difficulty ...
5
votes
3answers
279 views

Choosing which of many files to import into QGIS

I have received some remote sensing and shapefiles and other data. And I want to import them to view in QGIS. Given that each kind of data has multiple file type extensions associated with it, how do ...
0
votes
1answer
45 views

Exporting layer to shapefile after styling using Python in QGIS

I'm trying to use Python to add a GML to my QGIS 3.4 project, apply styling to it, and then export the layer as a shapefile. It exports the layer, but it does so before applying the styling, which ...
0
votes
1answer
507 views

Google Earth Engine Import shape as draggable Layer

How to import a shape or image into GEE and drag it around like the self-drawn imports? Edit: the asset is uploaded and also added to the map, but it´s projected according to its coordinates, I want ...
7
votes
4answers
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
1answer
29 views

QGIS not saving layer in Lo 19 / EPSG:2048

I am reprojecting a shapefile from lat/long to Hartebeeshoek Lo19 using 'set layer crs', however when saving the shapefile ('export as') the output remains in lat/long? Set CRS: Save the reprojected ...
1
vote
1answer
37 views

Dump all spatialite tables to shp and dbf

Given a spatialite database i want to export/dump all tables to shapefile (or dbf for those without geometry). I want to do it programatically so acceptable solutions will be using a (bash) command ...
0
votes
0answers
18 views

Can't select features in saved WFS-data

I saved some features from a WFS (http://geodienste.bfn.de/wfs/schutzgebiete - the theme "Landschaftsschutzgebiete"). We did this in the past without any problems. Now, despite the features having ...
0
votes
1answer
671 views

Is there any way to automatically update a shp layer in QGIS?

I work with a vectorial layer (shp) created from a a CSV file which periodically changes its content. The issue I'm raising is the following: every time I perform changes in the CSV file, I have to ...
0
votes
3answers
3k views

R cannot read *.shp shapefile with rgdal

I'm trying to open ne_10m_urban_areas.shp with rgdal::readOGR, but it gives me the bellow error library(rgdal) a <- readOGR(dsn = path.expand("C:/.../Desktop/"), layer = "ne_10m_urban_areas.shp") ...
1
vote
1answer
26 views

Keep getting NAs when I run sp's over function on LatLon points on shapefile polygons

I am not sure why i am keep getting NA whenever I run the Over function with Latitude and Longitude point on the polygon from shapefile. Please note that this is first time for me doing the spatial ...
0
votes
1answer
307 views

Mask rasterio raster with geopandas shapefile

I am loading a shapefile using geopandas as follows: import geopandas as gpd StudyA = gpd.read_file('.../Study_Area_Polygon.shp') Next, I am using folium to plot it interactively: m = folium.Map([...
1
vote
1answer
56 views

Saving a shapefile to an output file path in my function(which the user will provide)?

I have a function which takes the coordinate argument from the user and converts it to a shapefile, and finally saves that shapefile to the filepath that the user gives. This is the code... epsg_code ...
0
votes
0answers
23 views

Cities being shown in Wrong Countries

I am trying to download the cites with a population greater than 50,000 from the following link https://overpass-turbo.eu/ using the code code to run the query on the website but I am getting the ...
0
votes
1answer
80 views

Integrating shapefile into Maps.me?

I'd just like to add some GIS layers, such as shapefiles in the Maps.me app. Has someone already done it?
0
votes
0answers
24 views

Export from a GIS database and automatically populate an external document

I'm using a standard database based on ESRI polygon shapefile with 30 fields. The database is diverse with records from text values to long integer and double numbers. The records from the database ...
80
votes
5answers
180k views

Calculating polygon areas in QGIS?

How do I calculate areas of an area shapefile in square meters or in acres (ha)? I didn't find that functionality in the vector tools.
3
votes
2answers
4k views

How do I extract points from a LineString or Polygon data frame and make a dictionary of point data frames?

I am building some pre-processing routines for 3D visualization of GIS data and I have several line and polygon shapefiles with multiple features. I want to extract the points for each of the features ...
0
votes
1answer
50 views

Carrying information from one shapefile to another based on location using ArcMap

I am a R user but I couldn't do this on R and decided it might be easier on ArcMap but I don't know how to use it that well. I have two shapefiles for same county, one of them has 360 features but ...
1
vote
0answers
48 views

How to find lost information about the projection? [duplicate]

I have problems to find lost projection and hope someone could give a hint. I think there is no way to find the projection automatically so I did try a semi-automatic approach shown below. My ...
1
vote
0answers
319 views

Converting multiple geometry KML to Shapefile

I have a KML file with multiple geometry, points and polygons. I want to convert it to a point Shapefile and a polygon Shapefile. Using OSGeo4W Shell I tried this : ogr2ogr -where "OGR_GEOMETRY='...
0
votes
0answers
37 views

Joining two polygons that have information in same spatial location using ArcMap

I am using ArcMap 10.6.1. I have two shapefiles, one that has human disturbance and one that is fishnet grid and every grid has a unique value. I used the fishnet tool on my human disturbance ...

1
3 4
5
6 7
89