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
37 views

Thematic map made in QGIS

I made a thematic map of carbon stock in Russian Federation in 2017 year. I am not a cartographer and geographer at all. Tell me please what should I do with this map to make it more professional? ...
0
votes
1answer
29 views

Shapefile to polygon, then edit the polygon in order to use it as a mold

I am working on QGIS with a shapefile: I transform it through Raster-> Conversion-> Polygonize Then I eliminate some parts (Sea), and those that are bigger than one single square of grid but are ...
2
votes
1answer
39 views

ST_Distance does not give nearest node

I am trying to find the nearest point on the road network closest to a given point. I imported the road network into PostGIS from QGIS and am using the SQL window in QGIS DB Manager to query the road ...
0
votes
0answers
23 views

When re-saving a GeoJSON file to a shapefile, the .dbf significantly increases in size

When re-saving a GeoJSON file to a shapefile, the .dbf significantly increases in size to the point where the file size becomes unmanageable. For example, I re-saved a 250 MB GeoJSON file to ...
3
votes
0answers
30 views

QGIS 3.4.6 Cannot create fields in new shapefiles

Running 3.4.6 on Windows 10. Until today I have had no problems creating new shapefiles and fields. Now when I create a new shapefile everything in the new dialog box works as usual when I create ...
1
vote
1answer
54 views

Error importing shapefile to PostGIS

I'm trying to import a shapefile into a PostGIS database using the graphical importer. I just installed PostgreSQL, and PostGIS. The error: Shapefile type: Polygon PostGIS type: POLYGON[2] We ...
1
vote
1answer
39 views

Spacing points automatically instead of by hand using ArcGIS Desktop? [on hold]

Is there a way to put points out at 10m apart instead of doing it all by hand? My boss thinks it can be done in Excel but the only way I know how is to enter in each lat, long then import it that ...
2
votes
0answers
37 views

Shapefile or GeoJSON? [on hold]

I'm interested in understanding the relative merits of using GeoJSON or shapefile formats for handling geo-spatial data, particularly in an open-source, Python (CKAN project), web-development context. ...
0
votes
0answers
20 views

Export layers in QGIS to one shapefile [duplicate]

I have a group of shapefiles already loaded into QGIS. How do I export them to a .shp, .dpf, and .shx file that I can put into a folder and load onto another instance of QGIS?
0
votes
0answers
14 views

Where can I find hierarchies of polygons in OSM data?

I extracted nationwide data from the geofabric.de website for Germany and used the osm2pgsql tool to get the tables into Postgres. I am trying to extract shapefiles from this data and most ...
2
votes
0answers
43 views

QGIS degrees - meters

I have point data in GDA2020. shapefile *.prj file says units are meters. when I load the data in QGIS the layer units are degrees nd the buffer tool is always degrees. I have searched for every ...
1
vote
0answers
21 views

Shp2pgsql-gui.exe - system error

I have got this message when I was trying to run PostGIS 2.0 shapefile and dbf loader and exporter for first time. I tryed to reinstall but it did not run after second installation either. I have ...
2
votes
1answer
51 views

Getting ExecuteError: ERROR 001558: Error parsing JSON file in ArcPy?

I'm trying to convert some open-source data in JSON format to a shapefile for use in ArcGIS Desktop. I'm attempting to do this in ArcPy with ArcMap 10.7. The data I'm trying to access is here, in ...
1
vote
1answer
26 views

Error when importing shapefile as vector layer into GRASS GIS

I'm tried to importing an Esri shapefile into GRASS GIS using both v.in.ogr and v.in.import however methods fail with the following error message: WARNING: Table <roadsSriLanka> linked to ...
0
votes
0answers
22 views

Using ArcGIS Desktop to convert GML to Shapefile? [duplicate]

Does anyone know how to convert a gml file into a shapefile without using python?
1
vote
0answers
28 views

Attributes encoding problem with rgdal::writeOGR

I performed an intersection of two SpatialPolygonsDataFrame on R (3.5.1) using raster::intersect. Here's the structure of the resulting SPDF attributes table > str(shp@data) 'data.frame': 944 ...
1
vote
1answer
24 views

Convert all KMLs within a directory to SHP, zip by name, and move to another output folder? [closed]

I have the requirement to convert a list of ~100 KML files into shapefiles and later merge and upload the polygons as one layer into ArcGIS. I'm new to GIS and Python. I've been able to convert ...
2
votes
1answer
44 views

Error converting vector shapefile to raster (.TIF) in QGIS?

I am working with a shapefile of 10km grid regions of the UK obtained from digimap. I need to convert this to a raster in order to do some analysis in R regarding agricultural intensity of 10km UK ...
1
vote
0answers
20 views

Copying value from file geodatabase field into shapefile field using ModelBuilder? [closed]

Does anyone know how I can pass the value from a field in a file geodatabase to a field in a shapefile using ModelBuilder? I have a Model to do a Definition query via the Select, then use Summary ...
-1
votes
0answers
17 views

Public WFS / WMS service which hosts simple countries/cities border?

I have an NDVI WMS service (raster images) and needs to add a simple layer on top of that which contains the boundaries of cities. I think the WFS would be the best as it just shows polygons and city ...
1
vote
1answer
41 views

Creating raster that contains gradients given contour shapefile using R?

Using R I'd like to create a raster from a set of contour shape files, where each cell in the raster contains a value for the derived gradient. I am using OS Terrain 50 contour lines which is open ...
0
votes
1answer
41 views

Rebuilding .shx using python/pyshp?

EDIT: I've tried running the code linked in the duplicate flag, it's posted here for reference, and it doesn't run. I had already referred to that answer in my initial post. My problem Downloaded ...
3
votes
1answer
92 views

Write shp into python and fill in the attribute table

I am struggling to create a shp and I want it to writes records on the attribute table. I can create the shp but I can not fill in with the correct records. I import an Excel file, that contains the ...
2
votes
1answer
51 views

Using shape to find and merge photos in FME?

We have a directory with over 300 aerial photos of our town. Every photo has an unique name. Using an georeferenced Esri shapefile of a specific area we want to copy the photos that are coverd by the ...
1
vote
0answers
49 views

Convert SHP to JSON

I need to convert shapefile to JSON in the following data structure.How can I do this? { "field": [ { "latitude": 52.8812385372, "longitude": 6.9287692025 }, { "...
2
votes
0answers
37 views

Difference in area of polygon and excised raster layer

I'm using QGIS 3.8. I have dowloaded GLOBCOVER 2009 raster land cover map and ecoregions shapefile. Polygon of ecoregions are used for mask to cut raster file. On new layer r.report was performed to ...
2
votes
0answers
35 views

Saga GIS Snap Points to Lines tool doesn't produce required results

I have two sets of data that I'm using. Points extracted from a .csv file and a road network from an ESRI .shp file (both of which I've included here: https://send.firefox.com/download/...
0
votes
1answer
12 views

Clipping using multiple polygons from same layer in ArcGIS

I have a polygone shapefile and now I want to select a couple of polygons which are islands in one big polygon and clip that big polygon with these selected islands. I know that I can use ERASE tool ...
1
vote
0answers
17 views

QGIS - points at the North and South Pole disappear in the composer

I am using QGIS 3.4 to produce maps of the Arctic and Antarctic with weighted points from a csv file. I noticed that I lose the points at the North and South Pole when I add the map in the composer. ...
1
vote
1answer
32 views

Select shapes in one layer that overlap with shapes from another layer?

This question is a duplicate of this: How to select only polygons that overlap with another layer? But in my question I want to know how to do this in QGIS not in ArcGIS. I want to be able to select ...
0
votes
1answer
23 views

Shapefile creation for GeoServer from cruise track, and serve as layer in Leaflet

I am new to both GeoServer and shapefile, today only I installed (GeoServer) on my CentoOS, I am familiar with Leaflet, I am looking for solution to draw huge cruise track which are already there in ...
2
votes
1answer
35 views

Merge hole between shapes into any neighbouring shape to remove it?

I have a shapefile that I made by from 2 distinct shapefiles (I am using QGIS). The issue is that they don't overlap precisely so I have holes like the following: I tried the vertex editing tool but ...
2
votes
1answer
54 views

QGIS processing.run() standalone script does not write .prj and .cpg output files of shapefile?

I've created a python standalone script to clip two shapefiles with qgis. I've installed qgis3 with OSgeo4W. The logic is as follows: import qgis from qgis.core import * from qgis.core import ...
-1
votes
0answers
29 views

Converting polygon shapefile to NetCDF using QGIS?

I am building a model in which landcover and hydrological/climate data are entered mainly as in the format of NetCDF. I would like to use the local data which is in the format of shapefile both for ...
0
votes
0answers
76 views

Exporting XY-data to a new shapefile

I've got a CSV file with 29 rows and 2146 columns including coordinates and a number of reflectance for each wavelength starting from 350 up to 2500. I imported the CSV file in QGIS without any ...
2
votes
2answers
72 views

Extract the attribute names from a large number of Shapefiles

I happened to need the attribute names of a large number of .shp files. Is it possible under Linux, without importing the files into a GIS?
3
votes
2answers
114 views

Loading CSV with X&Y and Save as Shapefile using PyQGIS?

I am attempting to transform a CSV file with joined fields of Eastings and Northings into a shapefile with PyQGIS (QGIS V3). Here is where I've got to: 1: Loaded the postcode shapefile which ...
0
votes
1answer
63 views

Unable to import shp to QGIS 3.0

I'm using QGIS Desktop 3.8, and unable to import a shapefile. I get the following error: "The layer already exists. Are you sure you want to overwrite the existing file?" I'm super frustrated, ...
0
votes
0answers
26 views

Error in RGEOSDistanceFunc(spgeom1, spgeom2, byid, “rgeos_distance”) : negative length vectors are not allowed

What does the error in the title mean? I'm fairly new to GIS and can't understand which negative length vectors R is talking about? Here is what I'm doing: I have a csv of lat/long locations of ...
0
votes
1answer
41 views

Change LIDAR classification of points inside polygons

I'm trying to create a pdal pipeline to adjust the classification values for all points inside polygons, but I can't seem to get it to work. The filters.range works correctly because the output file ...
2
votes
0answers
23 views

Creating Swath View from Point data using Python?

My situation Input: point data from planting file Feature Attribute: [('DeletionFlag', 'C', 1, 0), ['Field', 'C', 254, 0], ['Dataset', 'C', 254, 0], ['Product', 'C', 254, 0], ['Obj__Id', 'N', 15,...
5
votes
1answer
102 views

QGIS edit toggle does not work with ANY layers I bring in (as shapefile)

I bring in polygon as Shapefiles and they display, I can select, all looks well. However the toggle edit is ALWAYS greyed out. If I make a new layer with features in it, the toggle edit is fine. ...
0
votes
1answer
44 views

Converting ENVI grid to Esri shapefile?

I have build geographic coordinates grid for raster in ENVI. It can be saved in grd format only, but I need shp (shapefile) format for opening it in ArcGIS Desktop or MapInfo. Does anyone know how ...
1
vote
1answer
20 views

Adding data from KML/shapefile/GeoJSON to OSM nodes

I have data of streets which is marked with the osm way/node ids. I would like to add speed limit data which is available in KML, shapefile, or GeoJSON to these OSM wayids (OSM wayid with start node ...
2
votes
0answers
44 views

What happens if you set QGIS as the default program to open a *.SHP file?

In the screenshots of shapefiles in this question, Accessing downloaded shapefiles/attribute data?, you can see that the .shp files have the QGIS logo as its icon. I think this means that on that ...
2
votes
1answer
81 views

Creating equally spaced coordinates on California state map created with basemap?

I have created a California state map with basemap Python library and this shapefile. Code is below from mpl_toolkits.basemap import Basemap import matplotlib.pyplot as plt fig, ax = plt.subplots(...
0
votes
0answers
23 views

Coordinate system problem; two features won't match up (linear units problem?) [duplicate]

I have two features that should overlay, both are shape files and one is polygons and one is polyline. The line should essentially outline a specific region in the polygons, but they are completely ...
2
votes
2answers
48 views

QGIS 3 shapefile attribute table sort order

If I open a shapefile in two empty QGIS projects and view the attribute table the rows are in completely different orders. How does QGIS decide which order to display the rows in an attribute table ...
2
votes
1answer
135 views

Using ArcPy to insert new data into shapefile without editing it?

I want to insert new data into a empty shapefile. I have an array with the fields values of each row and I use InsertCursor to add these data to my shapefile. When I run the code if the shapefile is ...
1
vote
3answers
32 views

Merging different types (e.g., polygon with polyline) of shapefiles? [duplicate]

I want to create a watershed shapefile with areas, streams and pour points in it. Is there a way to merge the areas (polygons) with streams (polylines) and pourpoints (points)?