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
0answers
20 views

Shapefile to PostGIS via shp2pgsql.exe failed

I am trying to import a shapefile to PostGIS via shp2pgsql.exe. I am not successful. I am only get the following message: Importing with configuration: tune_aoi, public, geom, C:\Temp\TUNE_AOI.shp, ...
2
votes
1answer
28 views

QGIS geometry generator to SLD

In QGIS I'm using the geometry generator to visualize a point shape file as a line with the simple code: And then I'm doing a graduated styling according to the burial value of those points: So ...
2
votes
2answers
62 views

PostgreSQL/PostGIS 12. shp2pgsql.exe only blinks

I am running PostgreSQL/PostGIS version 12 (win10/64 bit) attempting to import shapefiles by means of shp2pgsql.exe. Really nothing happens. The GUI only blinks a fraction of a second. Then nothing. ...
0
votes
1answer
27 views

ESRI ArcGIS shapefile to CAD - CAD file returns empty?

I'm using ArcGIS 10.6.1, and I need to transform a points shapefile into a CAD file for AutoCAD. I used the "to CAD" transformation tool in ArcMap and everything seemed to go smoothly, but when I ...
1
vote
1answer
31 views

How to get the closest point to the map on the shapefile in Python

The red dots represents the points in the shape file. I want to find point B (closest point on the shapefile to point A). The B might not be one from the given set of points in the shapefile (as we ...
1
vote
1answer
45 views

Google Earth Engine Clip with Geometry

I tried to clip using a loaded shapefile. It enables me to download but crushes at few seconds not completing the downloading task. var clipToCol = function(image){ return image.clip(...
3
votes
0answers
41 views

Geopandas shows points outside of buffer geometry, even though they are in

I have some ship trajectories and I want to know which point of the trajectory is inside the port(=buffer) and which points are outside. The following picture shows my Geopandas Dataframe with the ...
-1
votes
0answers
14 views

Creating grid cells with a specific measurement [duplicate]

I have a shapefile (of a country). I want to create grid cells of equal measurements for the entire shapefile (for example, 10km by 10km or 0.1 by 0.1 degrees). How can I do that? I am using ArcMap ...
-1
votes
0answers
11 views

Spatially intersect a Networkx graph

I have a Networkx MultiDiGraph for a whole city, containing street and intersection data. I also have a GeoDataFrame containing polygons outlining the neighbourhoods of that city. I would like to use ...
0
votes
1answer
25 views

How to use if else statement to create attribute in shapefile using R [closed]

I am working on a if statement within R to populate a new variable called d1 with values from my income field if variable A equals 1, otherwise autofill zeros. I'm having issues with getting it to ...
1
vote
1answer
22 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 ...
-1
votes
1answer
37 views

Seeking 1890 County Shapefiles of Scotland

I am struggling to find the county border shapefiles for Scotland that came into effect in 1890. I keep finding "counties before 1890" when googling. So, the file I'm looking for does not include a ...
1
vote
1answer
25 views

Use R to Create a New Decile Variable in a Shapefile

I'm getting an error when trying to add a new field (of deciles of my income variable) to my shapefile within R. The error might be related to the fact that the input is a shapefile... UseMethod("...
-1
votes
0answers
15 views

Get Google Maps municipality administrative bounds as polygon shapefile [duplicate]

I would like to download from Google Maps as shapefile polygon municipality administrative boundary. Better if possible from Google Earth Engine.
-1
votes
0answers
29 views

I got this error : elementwise comparison failed; returning scalar instead, but in the future will perform elementwise comparison [closed]

rint(sf.columns) se=float(numb1.get()) cur.execute("select distinct nassereddine_carte_gouv.c_gouv from nassereddine_carte_gouv,disshp where nassereddine_carte_gouv.c_gouv=disshp.id and Shape_leng &...
1
vote
1answer
47 views

Handling NULL values in QGIS

I am using QGIS to make some boundaries adjustments of the Italian provinces over the years. I have a shapefile with the provincial boundaries in 1961 and another one with the boundaries in 2001. No ...
-1
votes
1answer
37 views

GeoJSON and/or Shapefile: Temporal data w/ multiple dates per feature

I have a large dataset that's frequently being updated, and it consists of tens of thousands of geospatial polygons, each of which has one or more (potentially over 100) timestamped average ...
0
votes
0answers
25 views

Polygon bends when exporting out of AutoCAD

I came across a strange issue when exporting a polygon layer from AutoCAD Civil 3D to a shapefile. The original AutoCAD drawing looks like this: When loading it in to QGIS it looks correct: But ...
0
votes
1answer
22 views

Save a shapefile with the original name as the imported file in R

I want to save as shapefile an object but I want the name of the shp to be the same (original) as the file I imported at the beginning of my code. I don't want to do it manually because at a later ...
0
votes
0answers
22 views

Using Projected Coordinates with 3D building data in QGIS

I want to upload my 3D building data i.e in ESRI ArcGIS Pro. My data is working perfectly fine but I want to upload same data in MapBox, too. So when I convert the projected coordinates in the format "...
0
votes
1answer
26 views

dataframe to geodataframe conversion error

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
votes
0answers
8 views

Combining Multiple Layers of Custom Shapefiles and Points data in Power BI [duplicate]

I want to built an interactive map that displays 2 types of data: Polygons - I have 4 layers of custom shapefiles in ESRI Points - lat/long data Additional information: I am limited to using Power ...
0
votes
0answers
32 views

Building Interactive Map with Multiple Layers of Custom Shapefiles and Points data in Power BI

I want to built an interactive map that displays 2 types of data: Polygons - I have 4 layers of custom shapefiles in ESRI Points - lat/long data Additional information: I am limited to using Power ...
0
votes
1answer
43 views

Integrate a 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?
1
vote
2answers
33 views

Trying to merge 800+ shapefiles getting “Incorrect parameter value for LAYERS”

I have 800+ shapefiles and some of them have different type of attributes. When I use Merge Vector Layers and select all my shapefiles I get "Incorrect parameter value for LAYERS" error. When I ...
0
votes
1answer
30 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 ...
1
vote
1answer
34 views

Check if shapefile Polygon has a valid number of points - Python [closed]

I'm trying to create a polygon from ShapefileReader.shapes() object in python using the shapely.wkt library. But I'm having the followeing error: IllegalArgumentException: Invalid number of points in ...
1
vote
1answer
43 views

How can I get the points where two line shapefiles intersect?

I have two shapefiles that I want to compare and get the points where they cross. I would like to avoid opening QGIS or GRASS since I am trying to automate a process so I have been looking at OGR, ...
1
vote
0answers
20 views

Exclusive Economic Zone (EEZ) and Regular Boundaries one shapefile

Does anyone have an idea if there is a shapefile of the merged EEZ boundaries and regular administrative boundaries? I need this data for entire Africa. I have downloaded the EEZ boundaries from http:/...
1
vote
1answer
36 views

Converting point shapefile with N points to N layers with one point each using Global Mapper

I have a point shapefile layer that contains 50 points. I want to create 50 layers with these points. Meaning every point ends up in its own layer. How can I do this using Global Mapper?
-4
votes
1answer
59 views

Which site could I download ESRI shapefile for training on QGIS 3? [closed]

I would like to download ESRI shapefile from free source for training on QGIS. I need shapefile for polygon and line, so I can do some training to use QGIS 3. Please advice me also, how can I learn ...
3
votes
0answers
64 views

Difference in raster pixels between Windows x86 and Windows x64

I have a huge problem and I can not find a reason for it. I have two PCa, one in my house and the other in my workplace. The first one is an old notebook with Windows x86 and the other is Windows x64. ...
3
votes
1answer
40 views

Merge overlapping/neighboring polygons - GeoPandas

I am reading a shapefile and I have extracted a specific row from it that is a Multipolygon. I can extract all the polygons in it with .explode() which works great and I get 130+ polygons. How can I ...
0
votes
0answers
54 views

Creating layer file using C#

Is there a C# library which can be used to programmatically create a .lyr file? (Compatible with Esri products) Using NetTopologySuite I've created a shapefile which contains some squares. I'd like ...
3
votes
1answer
43 views

Shapefile stopped displaying polygons and gives error: 'No extent could be determined' in QGIS 3.10

I have been using a shapefile as a main data layer since Jan 2018 in a project, it forms the basis of several duplicate layers, it has been working fine until today. Now 95% of the polygons are no ...
2
votes
0answers
30 views

imageCollection of all polygons in a shapefile

I have a shapefile, consisting of 408 polygons. I want to either read images corresponding to all polygons, or iterate through them. However, it seems my code does not work. In order to test EE ...
1
vote
1answer
43 views

Shapefile from group of FIPS codes

I am new to QGIS and GIS in general. I have a CSV file that looks like this: FIPS Code Area Name Area Description 10001 A1 D1 10002 A1 D1 10003 A2 D2 ...
0
votes
0answers
35 views

Using Add XY Tool

I am trying to add the Lat / Long to my attribute table for a number of points. The issue I am encountering is that the layer I wish to work with is not appearing in the drop down menu when using ...
0
votes
0answers
16 views

Looking for a comprehensive open source for building shapefiles USA [migrated]

I am currently looking for a comprehensive source for Building Shapefiles in the USA, particularly New Jersey. I have come across a few websites e.g. geofabrik (http://download.geofabrik.de/north-...
2
votes
1answer
66 views

Filter by attribute names from another layer in QGIS

I have some difficulties with a task I have. Data: layer 1 (tmc_segments), layer 2(regional_roads(earth)). Layer one contains simplified geometry of the road network (just simple lines with data ...
1
vote
1answer
36 views

Writing script to append Multiple GPX Files using ArcPy

I am using ArcMap 10.7. How do I write a script to insert multiple GPX Files as a Feature Class? What I was thinking is batching the files together in to one file and then running the code I ...
2
votes
1answer
61 views

Converting DXF to ESRI Shapefile using ogr2ogr

I like to convert this DXF file to ESRI Shapefiles. I tried the following command: ogr2ogr -f "ESRI Shapefile" test.shp Umweltzone-Neu-Ulm.dxf ... which output the following warnings ...
1
vote
1answer
29 views

Check if function-argument is valid vector-geometry in Python GeoPandas

I wanto to build a function (let's call it clip) that accepts a vector-file (can be a shapefile, a geopackage....) and a raster. How can I make sure the argument that the users gives to the function ...
7
votes
1answer
133 views

How does a shapefile 2GB limit equate to 70 million points?

Reading this article by ESRI, it says that the 2GB limit translates roughly to 70 million Points. When looking at the spec, the header has a field at Byte 24 representing file length in 16-bit words ...
1
vote
0answers
31 views

Convert CSV file to shapefile and show data in view [closed]

I'm searching differents methods with QGIS to convert my CSV file to shapefile and show my points in the view. I tested differents methods that I have seen on the forum and It's not really what I want ...
6
votes
0answers
41 views

OGR failing to unpack polygons and respective holes from shapefile

I'm trying to unpack shapefiles in Python (v3.7.4) using the GDAL-OGR library (v2.3.3). Each shapefile has only one feature containing multiple polygons with holes. They cannot be produced differently....
3
votes
1answer
512 views

How can I switch line direction from the Linux commandline?

I want to reverse the line direction for all lines in a shapefile from the Linux commandline (that is to say, using a script). Currently I'm using the SwapVectorDirection QGIS plugin which works well ...
2
votes
0answers
56 views

Clipping shapefile with DEM using ArcMap

I have a layer with shapefiles that represent watersheds. I'd like to exclude watershed polygons (or sections of these polygons) that fall below 2500 meters. Is there a way to do this by clipping ...
0
votes
1answer
31 views

QGIS raster area by clipped mask and 2 layers

I have two layers, one is a tif file with inclination of the soil of a whole county (which I got from the SRTM-relief) and the other file is a shape file which contains all the properties in this same ...
1
vote
1answer
50 views

Why do I get the same error code when Geocoding?

Whenever I use the 'MMQGIS' plug in to 'Geocode' a CSV file containing postcodes to get the longitude and latitude which will enable me to plot the locations as a layer on QGIS, it always come up with ...

1 2 3 4 5 86