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

Convert osm.bz2 file to shapefile for specific extent

I'm trying to get a historic shapefile (from 2010) of a road network for a specific country from OSM. I downloaded a planet osm.bz2 file from here I'm wondering how to create a shapefile from this for ...
1
vote
0answers
17 views

Unwanted lines in Geoserver layer [closed]

I recently upgraded my Geoserver from 2.1.1 to 2.17.1 Since I have done that, one of my layer show unwanted lines in his polygones : This is what is show by a GetMap WMS request on the layer The ...
2
votes
0answers
27 views

Unable to open shapefile in ArcMap. “Error: Failed to open the dataset.” Question mark icon and “ml” prefix on file name

ArcMap and ArcCatalog both show the a "?" next to several shapefiles in the catalog window. Additionally, a two-letter prefix "ml" has been added to the file name, but only when ...
0
votes
1answer
27 views

Convert shapefile to integer array file

I have a shapefile similar to the one below. This shapefile shows zones in a specific model. The model cell size is 100 x 100 m. I want to convert it to integer array file with unique integer value ...
2
votes
0answers
33 views

Shapefile will not load in QGIS but does in ArcGIS

Using QGIS version 3.14.0-Pi on Windows 10. I'm trying to download a shapefile (Layer, Create Layer, New Shapefile layer). In the resulting dialog I use: File encoding UTF-8, Geometry type "...
1
vote
1answer
40 views

Removing slivers from merged polygon using ArcGIS

I have a merged shapefile composed of 3 polygon classes (sand, water, vegetation) from where users have traced over a satellite image. There a few slivers I need to remove. These are very slim ...
4
votes
0answers
47 views

Strange shapes and lines while importing shapefile

I am trying to add a Shapefile over the top of my map of Australia showing the extent of native grasslands. However every time I add it all these extra lines and shapes appear over the top of the ...
0
votes
0answers
18 views

I'm trying to plot a proportional symbol map of horse mackerel species using 'R''

library(sf) library(rgdal) library(cartography) hm_SHP <- st_read(file.choose()) Reading layer Oman -coastline' from data source /Users/salmanmaf/Documents/OMAN map_shapefiles/OTrIs/Oman -...
1
vote
1answer
44 views

How to reproject point if I only have the source TIFF extent

I made a point shapefile (using PySHP in Python) that represent objects detected through AI. This shapefile has no CRS and each point is X,Y relative to the image it was processed from (actually a ...
0
votes
0answers
12 views

Fire department zoning overlap [closed]

I am creating a map for the fire department and have 6 zone layers and they overlap quite a few times. How can I make one map without having the colors mix to make another color and be able to ...
0
votes
1answer
32 views

How to transform bounding box from object detection ML to shapefile

I'm working on a Python script to build a point shapefile I can open on QGIS from a list of bounding box (X and Y coordinates) returned by an Object Detection algo. I know the CRS/EPSG and bounds of ...
1
vote
1answer
51 views

Where is CRS of shapefile defined?

The geometry of the coordinates are defined inside a shapefile. Without referencing a CRS the coordinates have only a little meaning. Is the CRS defined inside the .dbf, or somewhere else?
0
votes
1answer
21 views

ArcGIS - Eliminating slivers/gaps automatically

I have a land map with three labels (sand, vegetation and water). I wish to eliminate overlaps and gaps between these labels. There are tens of thousands of gaps and overlaps, so I need to automate ...
1
vote
1answer
23 views

Exported shapefile from selected features via PyQGIS is blank

I'm doing Open Source Options' tutorial on the topic but my code doesn't work. I guess the selectByExpression() works but writeAsVectorFormat() doesn't. This is my code layers = QgsProject.instance()....
0
votes
1answer
40 views

Identifying and removing bad lines in a shapefile

I downloaded some shapefiles of Houston from the Open Maps data using this tool. I am plotting the roads and I have a weird thing happening. Most of the lines are correct, but there are clearly ...
0
votes
0answers
19 views

Save a QGIS project as a “no-setup” package containing the project itself, all the layers loaded, and the layer styles?

In ArcMap, you can do this by saving it as a Map Package. When you open the package, the layers are loaded already and is styled the way you saved it. No setup nor finding of necessary files needed. I'...
1
vote
0answers
24 views

QGIS can output shapefiles larger than 2 GB [duplicate]

I have read that shapefiles are limited to 2 GB, yet I have found that QGIS can go beyond that limit. In this case, I was generating contours from DEMs. The output would have been greater than 2 GB, ...
0
votes
1answer
31 views

How to plot shapefile in R

I am trying to plot a shapefile on top of a raster using the command 'readOGR'. My current code is: > CEZ <- readOGR(".", "Shapefile/CEZ1") This is followed by the error ...
2
votes
0answers
17 views

Is it possible to prevent ogr2ogr from generating a shapefile if no records are returned from the given intersection?

I am generating shapefiles from a geodatabase file with ogr2ogr via the spatialite dialect using the following command: ogr2ogr -f "ESRI Shapefile" ./clipped.shp -dialect sqlite -sql "...
0
votes
0answers
35 views

(QGIS) Add 3D geometry to a given point for 3D printing

I was wondering if it's possible to add 3D geometry to a given point. My goal is to 3D print a DEM model and highlight some points from a shapefile with a cilinder or something like that, so I can see ...
1
vote
3answers
48 views

I would like to insert lines into a table that I have in my PostgreSQL db from various tables in my computer

I have a table on my PostgreSQL database that I would like to update by inserting the missing lines that I have in many other shapefile tables. I was able to connect to my server PostgreSQL from the ...
1
vote
1answer
31 views

How to show Puerto Rico in “albersUsa” projection in Vega-Lite or Vega?

I have a shapefile that has all the US counties along with Puerto Rico and I want to visualize them in "albersUsa" projection using Vega or Vega-Lite. Problem is that in other projections, ...
1
vote
1answer
24 views

Using multipolygon shape layers in profile tool

I am working with QGIS for some time. The profile tool is indeed very useful to visualize the 3D problems. My problem now is associated with this tool. I have a multi polygon shape layer which I ...
0
votes
0answers
37 views

Find polygon geometry of a place

I am reading in a shapefile of Metro areas in the US and then select the metro area of interest. # Read shape file px_shp = 'data/map/az/cb_2018_us_cbsa_500k.shp' geodata = gpd.read_file(px_shp) ...
0
votes
0answers
37 views

Why is st_write not saving this dataframe as a shapefile?

I have been working with sf package for several weeks now. I have been able to figure out the solution of problems by myself or searching on forums. However, this one has been demanding too much time ...
1
vote
1answer
29 views

QGIS label text to raster

I created a multi-point shapefile and added number text to show as labels around the centroid of each point. Is is possible to rasterize the points and labels? I was thinking I could create a PDF and ...
0
votes
0answers
26 views

Shapefile extremely slow to read in Jupyter Notebook

I have a shapefile of Phoenix, AZ of size 172mb which I am loading in to the Jupyter notebook. It's a extremely slow process to read the file in. I am running the notebook on locally and the files are ...
0
votes
0answers
24 views

Create shapefile without coordinates

I am trying to create a shapefile without XY coordinates. I have the address, but not coordinates and there are too many entries to enter them manually. I am then going to join that to another data ...
0
votes
0answers
35 views

How to add Elevation to a QGIS 3.12 attribute table for shapefile points

What code do I use in the Field Calculator of the Attributes Table within QGIS 3.12 to generate the elevation of shapefile points in feet?
0
votes
1answer
29 views

Group layer to shapefile

I am using ArcGIS Pro and I have grouped a number of similar layers together creating a 'group layer'. Is it possible to export the group layer as a shapefile or can I only do this with each of the ...
0
votes
0answers
40 views

Deleting shapefile python (lock?) (QGIS 3.10)

I have trouble with deleting shapefiles and notice a weird behavior when I am running my scripts layer = QgsVectorLayer(path_layer, "name_layer", "ogr") cloned_layer = clone_vl(...
0
votes
1answer
26 views

Converting lat long coordinates to shapefile x y values

I'm trying to figure out where a given latitude, longitude coordinate should appear on a particular shape file. The shape file was generated by the US government and I doubt it has any peculiar ...
1
vote
1answer
33 views

How can I create a shapefile from a .dwg file?

I'm working on extracting various weather data from a specified region for a project. I've obtained the map for the area and isolated my part specifically on AutoCAD. Now I have a .dwg file which ...
-1
votes
1answer
24 views

Managing multiple layers at once [closed]

I'm new to GIS. I currently have two lots of data that I'm working with: a shapefile map, and land cover data courtesy of the ONS. What I need to do is lay the shapefile map over the land cover map so ...
0
votes
1answer
25 views

Cannot count the cell amount

How can I count the colorwise cell amount of a layer file? The attribute table is hidden in the menu. Is there any tool to do that?
0
votes
0answers
12 views

LIBKML using Python very slow - using OGR to transform Shapefile to KMZ/KML

I am trying to convert a shapefile to a KML (or KMZ) using Python, and OGR and the LIBKML driver. The process appears to hang, with the kml/z created, but sitting at 1kb for 5+ minutes. The input ...
1
vote
1answer
23 views

Shapefile type description showing attribute error

import arcpy esc = arcpy.Describe("C:\Users\Drona_Maps\Desktop\lecture16\shapefiles\world_continents.shp") print esc.ShapeType Shape file type description showing attribute error like this: ...
2
votes
1answer
147 views

ESRI shapefile polygons

In an ESRI shapefile, a polygon can have multiple parts. Each part is a closed ring. Rings that wrap clockwise are... um... rings. Rings that wrap counterclockwise are holes in (some upstream) ...
1
vote
1answer
25 views

How to save polygons generated from raster extents to shapefile in R

I'm looping through a list of rasters, getting the bounding box for each from raster@extent, and storing the matrices representing each polygon in a list. I'd ultimately like to save to shapefile ...
1
vote
2answers
50 views

No method or default for coercing “sf” to “SpatialPoints”

I keep getting the below error message when I try to use R in QGIS. For example Monte Carlo or Quadrant. I use a point shape file with the x and y coordinates as centroids within the attribute table. ...
2
votes
1answer
31 views

Using ogr2ogr to export an Oracle Spatial table with measured geometries (3302) to a shapefile ignores the measure values

I have an Oracle spatial table with measured geometries (SDO_GTYPE=3302) which I want to convert to a shapefile. The command I am using is this: ogr2ogr -f "ESRI Shapefile" "tshapeARCM....
0
votes
0answers
17 views

Read geopackage in Matlab

How do I load geopackage (https://www.geopackage.org/) in Matlab. I am trying to replace the shapefiles with geopackage due to several limitations inherent in shapefile.
0
votes
0answers
16 views

KML boundary uploaded to Google Earth: how do I make a thematic map?

Q: how to make a thematic map using boundary file (.KML) I uploaded to google earth? specifically "CARUID" is column in the boundary file that's uploaded in KML format. I can use it to show ...
1
vote
1answer
43 views

Export Image with attribute table in Google Earth Engine

I am quite new to Google Earth Engine. I am trying to export a VIIRS night-time light image with an attribute table attached (displaying the mean, median etc) which is also clipped to India (I am ...
2
votes
1answer
65 views

How to put this in a for-loop? I'm recreating ArcMap's 'Tabulate Area' tool in Python

I have two shapefiles, a province with 39 municipalities and a land cover of the province. Goal: get the sqm of each land cover classification for each municipality. For example, how much open forest, ...
1
vote
1answer
41 views

Adding a font to ArcMap?

I got a shapefile in which a column in the attribute table has a specific font (they send me this font file). How can I add this font to ArcGIS to display this column correctly?
1
vote
0answers
27 views

QGIS, creating a mbtiles file from a custom shape

I wonder if anyone can be of assistance, I am attempting to create a .mbtiles file from open street map data with open sea map data laid on top of it. I have been able to create the file successfully ...
0
votes
0answers
16 views

Re-projection of a shape (with a dbf) and converting the original X Y data in ArcMap

In my database, I have a dataset (shp, dbf etc) which has X Y coordinate data that was taken in NAD27 from a GPS (a long time ago). When importing it in ArcMap desktop I can easily project the data in ...
1
vote
0answers
17 views

Shapefiles being saved to my documents folder

Apparently, after a recent upgrade to windows 10, QGIS started to save new shape files to my documents folder ignoring my project folder. I reinstalled/updated QGIS 3.12.3 and problem remained. Are ...
1
vote
1answer
25 views

Invalid geometry objects in Shapely list

I have a creating a list of shapely polygons. While I am trying to create a geodataframe from that list it gives an error: intersec_ls = [poly1, poly2, poly3] cu = cascaded_union(intersec_ls) differ =...

1
2 3 4 5
90