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
1answer
204 views

Adding attributes to each vertex of shapefile using shapely?

I have two polygons in Python: poly1 = shapely.geometry.polygon.Polygon([(3,4), (2,4),(2,2),(3,2)]) poly2 = shapely.geometry.polygon.Polygon([(4,4), (3,4),(3,2),(4,2)]) that look like this: ...
2
votes
1answer
57 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
votes
0answers
24 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
1answer
429 views

Getting historical administrative boundary GIS files for India?

I am currently working on a project for which I need to get GIS maps of India at a district-level in the 80's and 90's. India's district and state boundaries have changed considerably over the time ...
1
vote
1answer
126 views

QGIS Intersection tool not allowing Save file as Shapefile

In QGIS 2.16.2 I am trying to intersect two Shapefiles to create a third Shapefile, however the Intersection tool is only allowing Save file as DBR, CSV, XLSX or ODS - not SHP. One of the Shapefiles ...
1
vote
0answers
32 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
42 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 ...
3
votes
1answer
248 views

Keep attribute data while converting XML file to shapefile in QGIS?

I want a map of particular area in shapefile format from Google Earth. I created a map using polygon method and save it as KML file format, but when I convert it from ".xml" to "shapefile" format ...
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
1answer
25 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 ...
5
votes
1answer
6k views

Transforming shapefile to WGS:84 (EPSG: 4326) in QGIS?

I received several shapefiles from an colleague that he told me is in WGS:84. If I look at the metadata in Qgis it tells me the following: In layer spatial reference system units xMin,yMin 3572722.82,...
1
vote
1answer
45 views

Using delimited text layer to keep only those polygons and records of a shapefile which match a column in the delimited text layer?

What I want to do is trim the shapefile so that only those records and associated shapes that match the same values in a column in the delimited text layer (which in my case is a CSV) are kept in a ...
1
vote
4answers
823 views

Free hosting of shapefiles to make an interactive map?

What is a free site where I can upload shapefiles and make my own interactive map to share with others by a link?
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 ...
0
votes
1answer
43 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 ...
5
votes
3answers
4k views

Error exporting data from Oracle to shp using ogr2ogr

I have an oracle table which I would like to query/make a selection. I would then like to export the selection to a shp file. I'm using gdal and ogr2ogr. Following the guidelines here and here I ...
-1
votes
0answers
18 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 ...
0
votes
1answer
177 views

Setting zoom level for labels of highway in JOSM?

I'm new in using JOSM and OpenStreetMap data . I import a shapefile of highways in JOSM and use it for styling the highways.Some highways are trunk ( in open street map standard ) and some of are ...
5
votes
2answers
924 views

Creating missing .shx file?

I am using ArcGIS Desktop to view one shapefile. Only a select number of features are being displayed. The same number are showing in the attribute table even though the database file (.dbf) has a ...
1
vote
1answer
4k views

Opening .shx files?

I want to see the contents of an .shx file to see how the index information is stored in these files so that I can get some help in writing my own shapefiles. How can I open and use the .shx files?
1
vote
1answer
224 views

Selecting features and saving selection as shapefile using PyQGIS?

For some reason my code is not doing what I expect it to do. from qgis.core import * from qgis.utils import iface import processing # Load the layer layer = iface.mapCanvas().currentLayer() ...
0
votes
1answer
330 views

Edit a shapefile with Leaflet.pm

I am new to Leaflet but so far so good. I managed to add the plugins I needed and they work. Except the shapefile editing. I am using leaflet.pm to draw, snap, cut polygons (only polygons). I also ...
2
votes
1answer
87 views

Selecting nearby polygons in QGIS?

I am working with QGIS and I have two different polygons, one with municipalities and another with conservation units (from Brazil). I need find out which Conservation units falls within 50 km from ...
29
votes
2answers
44k views

Adding shapefiles to PostGIS database

I was able to create a Postgresql database and then I executed, createlang plpgsql geospecies psql -d geospecies -f postgis.sql psql -d geospecies -f spatial_ref_sys.sql So now can I directly import ...
2
votes
1answer
53 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
votes
3answers
118 views

Viewing large shapefiles in ArcMap? [closed]

Is there a way of viewing only a part of a shapefile in ArcGIS 10? At the moment if I try to add it the software crashes.
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, ...
1
vote
0answers
50 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 }, { "...
0
votes
1answer
23 views

Shapefile in leaflet shifted North 0.25°

I have the following problem: I render a bunch of weather maps as PNG overlays with grads and then reproject them from EPSG:4326 to EPSG:3857 to display them in leaflet as follows: gdal_translate -...
1
vote
2answers
707 views

Using Geoserver WFS POST and format_options=PRJFILEFORMAT?

I'm using geoserver (2.4.4) to provide users with shapefile downloads. Some of the software the shapefiles are going to be used in requires .prj-files that follows the "ESRI-standard". A bit of ...
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 ...
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 ...
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 ...
1
vote
2answers
176 views

Import .lyr files into Cesium?

I have an application that is able to import .lyr files into a Cesium map if they are bundled with all the required associated files in a zip file. The application treats the bundled files in the ....
1
vote
1answer
51 views

Connect two Shapefiles

I have two shapefiles which should be connected to one single shapefile without a gap, unfortunately there is a gap between them: I tried to use v.cleanin Grass GIS but because of the shape of the ...
1
vote
1answer
57 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
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 ...
0
votes
1answer
34 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
0answers
37 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/...
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. ...
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
56 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 ...
4
votes
1answer
3k views

How can I export a shapefile to netCDF?

I have a shapefile of the worlds biomes Terrestrial Ecoregional Boundaries Shapefile (TNC), 12/14/09, 50MB download from available from http://conserveonline.org/workspaces/ecoregional.shapefile I ...
3
votes
2answers
117 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 ...
1
vote
2answers
3k views

Clipping lines vector layer to polygon layer in QGIS?

I have a lines layer (a contour map of mean annual precipitation in Africa) that I want to clip to a polygon layer (shape of the African continent). However every time I use the clip tool (Vector-->...
1
vote
1answer
734 views

Converting OpenStreetMap data to shapefile using OGR?

How would I reliably convert OSM-data (.osm, .kml, .gpx or .geojson) to .shp? ogr2ogr seems have issues: geojson: $ogr2ogr -f "ESRI Shapefile" destination_data.shp export.geojson ERROR 6: Can't ...
2
votes
2answers
75 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?
4
votes
1answer
1k views

Buffering GeoJSON file using Python?

I'm trying to perform a simple buffer on GeoJSON file using Python script. I am able to do it on a shapefile using Python script and on GeoJSON using QGIS fix distance buffer tool but I can't figure ...
0
votes
0answers
28 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 ...