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.

587 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
1
vote
0answers
46 views

QGIS vectors and rasters

I have created a map with polygon shapefiles and am trying to import them onto an different raster but when I do they are larger than the raster image and are far away. What am I doing wrong? My ...
1
vote
0answers
177 views

QGIS “Sum Line Lengths” return 'nan.'

I have a polygon shapefile and a (merged) line shapefile (both are zipped). When I use Vector -> Analysis Tools -> Sum Line Lengths on these shapefiles, I get a layer with some of the LENGTHS filled ...
1
vote
0answers
65 views

Spatial join of building footprints with Shapely and Fiona

I would like to do a spatial merge of the address nodes of Baton Rouge into their surrounding building footprints. Every building (polygon) should get the properties of the address (point). Here is ...
1
vote
1answer
565 views

Geopandas not recognizing geometry type

I am trying to write a point in polygon spatial join to file by county. In my code I read in a geojson object of building polygons for a whole state, grab the centroid and split the centroid points by ...
1
vote
0answers
38 views

Conversion of Text layers to vector 'Line' Feature Class

Is there a way to convert Text or Labels to Vectors within Geomedia or utilize the Publish to KML and convert using Google Earth? I do not have Adobe Illustrator installed here to 'Create Outlines', ...
1
vote
1answer
305 views

Fill color in polygons using attribute variable in GMT (Generic Mapping Tool)

I want to FILL colors of the polygon (converted from .shp ESRI shapefile) based on an attribute (here OBJECTID, Area) from lookup color (.cpt), but I am getting colored outline of each polygon. I ...
1
vote
0answers
22 views

How to find USA Water Hardness shapefiles?

I want to find USA water hardness shapefiles. I have searched for it from here: https://www.epa.gov/waterdata/waters-geospatial-data-downloads but without success. Is there any good data source from ...
1
vote
1answer
37 views

QGIS Union erroneously creating gaps

I'm trying to do a union between two Polygon Shapefiles, but when I do Vector > Geoprocessing Tools > Union I have the odd issue where most of it works fine, but some areas are returned in the union ...
1
vote
0answers
91 views

How to calculate sum of values in a point shapefile within a moving window

I have a point shapefile that has a 'rank' attribute with numbers between 0-100. I need to calculate the sum of this value for points within a 10km circular moving window anywhere within my area of ...
1
vote
1answer
255 views

Python: Open a (line) Shapefile and calculate distance to point given as a longitude-latitude tuple

I have a pandas dataframe in python with longitude and latitude values of certain locations (see sample below): Index Long Lat 0 -98.58 ...
1
vote
0answers
74 views

Programmatically created and added vectorlayer can't be edited

I'm trying to create a vector-layer (point, shapefile) and open it in my project. It all works fine but once I try to edit that layer later it doesn't work. addFeatures gives me back false and when I ...
1
vote
1answer
206 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='...
1
vote
0answers
78 views

Does anyone know why I'm getting a completely black geotiff as a result of this shapefile cut out of another geotiff in rasterio?

I am using rasterio to cut out the shape of a lake outlined in my shapefile from a geotiff. When using a shapefile of a singular lake with a geotiff, this works perfectly, but not when cutting out a ...
1
vote
0answers
114 views

Read shapefiles in Python and render on Google Maps?

Is possible to read shapefiles in Python and render them on Google Maps? After research I'm really confused. Should I convert shapefiles to KML?
1
vote
0answers
147 views

Unable to upload shapefile using geoserver REST API and php

I am not able to upload shapefile and create a store in Geoserver using its rest api and Php. below is my php code <?php // Open log file $logfh = fopen("GeoserverPHP.log", 'w') or die("can't ...
1
vote
0answers
238 views

Save layers and auto save: QGIS

When I save the shapefiles and the project the shapefiles do not save so I loose a lot of work every day. The problem starts when qgis starts to delay the save of the layers after long time in edit ...
1
vote
0answers
347 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 ...
1
vote
0answers
59 views

Importing Shapefile into PostGIS and EPSG of created table is different from Shapefile?

I'm trying to import a Shapefile into PostGIS using the ogr2ogr, but it seems that the OGR is not automatically getting the EPSG from Shapefile. My Shapefile has EPSG 4618, but the table created by ...
1
vote
0answers
37 views

Result of intersect between two shapefile is empty

I'm trying to intersect one shapefile with an other one in QGIS. The problem is, whatever I do, the result is always empty, (the files I'm working on are not empty). I tried to change the scr, delete ...
1
vote
0answers
64 views

Make polygons the same spatial resolution as a GeoTIFF

I downloaded a GeoTIFF DEM from EarthExplorer and loaded it onto QGIS. This GeoTIFF is of the state of Florida. I have a shapefile (polygon) of the state and want to overlap it with the raster file so ...
1
vote
0answers
409 views

When draw line in QGIS 3, it is not attached to the shapefile layer, can't select or edit or make invisible

I am trying to draw a line in QGIS3. I create the appropriate Shapefile layer, click on the editing pencil, select add feature and draw the line. However the resulting line does not seem to be drawn ...
1
vote
0answers
663 views

Keep getting AttibuteError: 'NoneType' object has no attribute 'CreateLayer'

I want to create a shapefile. Here is my code: import ogr, sys, os import osgeo.osr as osr line=ogr.Geometry(ogr.wkbLineString) line.AddPoint(10,10) line.AddPoint(20,20) driver=ogr.GetDriverByName('...
1
vote
0answers
49 views

What is causing ogr2ogr to fail to merge shapefiles without a reprojection?

Update 23-04-2018 The main issue has been solved, I (incorrectly) assumed all the files would share the same crs. This isn't the case and zones UTM 13N to 16N are used. So with no target crs for ...
1
vote
0answers
191 views

GRASS GIS v.net.iso prompt not calculating correct travel time distances

When I run the v.net.iso command then export it into QGIS, the distance isochrones are not calculating my prompt distances (e.g. 1km, 2km, 5km). 1km distances (shown in green) are next to the 5km ...
1
vote
0answers
230 views

compute average surface temperature from nc4 file with each lat long

I have nc4 file and I have one shapefile. So I want to read temperature for each latitude and longitude. I used that code- import numpy as np from netCDF4 import Dataset import geopandas as gpd ...
1
vote
0answers
71 views

Computing mean direction of river network in R

I have a shapefile of a section of river network (polyline) which I have read into R using the sp package to have a SpatialLinesDataFrame. I also have access to a terrain raster for the region in ...
1
vote
0answers
55 views

Is there a better way to use the operator to select a group in an expression in Select by Attribute?

Is there a better method to do a group like in a row or in colum that you want to select from in using the Select by Attribute? I have a point shapefile that I have has photo index. The field has all ...
1
vote
0answers
2k views

ArcMap Drawing Error One or More Layers Failed to Draw?

I am running ArcMap 10.3.1 on a 2014 MacBook Pro, Windows 10 via Bootcamp. I downloaded a cartographic shapefile off of the US Census Bureau: Urban Areas --- cb_2016_us_ua10_500k.zip. Adding the ...
1
vote
0answers
292 views

Plot the spatial join shapefile boundary in Python

I have two spatial object Geo_TWS is a shapefile boundary, geo_cell is points and already convert to GeoPandas. base = Geo_TWS.plot(color='white', edgecolor='black') geo_cell.plot(ax = base,...
1
vote
0answers
50 views

Clip inside of GeoTiff using shapefile in QGIS

I'm looking to distract the red figures from the background imagery in the attached image. Normally i would use the clipper command in QGIS, but this only works if i only want to have the red figures ...
1
vote
0answers
86 views

Obtain the number of features in a Shapefile using NodeJS

I'm using the shapefile NPM library which works well, but it doesn't provide a count of the number of features in a Shapefile. Is there some other library which can access this information (other than ...
1
vote
0answers
41 views

How to get Point CSV extent with PyQgis

I'm trying to get the extent of a point CSV file, but I can't do it. Before in my script making, I did it with shapefile with : reproj_1 = processing.runalg('qgis:reprojectlayer', point, 'EPSG:2154', ...
1
vote
0answers
98 views

Iterating over pyshp writer object records

The current branch of pyshp has removed the Editor class that combines reading and writing records. The justification is that removing the Editor has been planned for a while now, and might as well ...
1
vote
0answers
923 views

QGIS 2.18, gives Invalid Data source

Using QGIS 2.18.14, add vector layer, open a shapefile, gives: Invalid Data Source: FILE.shp is not a valid or recognized data source This FILE.shp was OK on QGIS 2.12. Same result for other .shp ...
1
vote
0answers
564 views

Clip a NetCDF file using a shapefile with Python

I have global net radiation data but I want to extract for my country. I've loaded the NetCDF but I don't know how to proceed further. The following is a similar question (Extract data from netcdf ...
1
vote
0answers
127 views

Exporting Layers to Cad with Seed file Changes size and Location On ArcMap

Some background information before I go into the issue. I am working on project that takes place in Erie county New York. The shapefiles consist of 2 line layers and 2 point layers. The files were ...
1
vote
0answers
367 views

Transforming Esri JSON to Shapefile without using ArcPy?

I have a large ESRI json (which I got from a request at an ESRI Rest API) that I need to convert to some sort of vector file, preferably a Shapefile. It seems there are ways of doing this using ArcPy,...
1
vote
0answers
134 views

Creating shapefile containing terrain, buildi ng and road layers from OS UK maps using QGIS?

I'm new to GIS. I would like to create a shapefile map using QGIS containing contours, buildings and road information layers which can be exported to other software to build a 3D model. I have ...
1
vote
0answers
173 views

shp to dgn microstation export file error

I want to export my shapefile into microstation dgn using qgis. But when I do click right on layer and "save as" this message error shows: Export to vector file failed. OGR ORIGIN is not a valid 2d or ...
1
vote
0answers
131 views

Geonode importlayers 504 Gateway Time-out

I'm trying to upload layers to Geonode using importlayers. Some of the shapefiles were successfully uploaded. However, we've encountered some errors in other shapefiles during uploading. Below is the ...
1
vote
0answers
46 views

Finding the area contained within a section.

I'm doing analysis on some land in Blaine County, Oklahoma. I have a shapefile with the perimeter coordinates for all sections in Blaine and many different references to location. A few examples ...
1
vote
0answers
106 views

Geometry/Geography type issue for US Census TIGER ShapeFiles

I'm loading the ShapeFiles from TIGER into SQL Server (via Python Geopandas/Fiona). It seems the boundaries are all of the Geometry data type (flat-earth). Do these file exist in the Geography ...
1
vote
0answers
32 views

Change the color attribute of a mulitline layer

I'm very new in world of the shapefiles, i have a code that add point in a multiline layer, but when i open with ArcGis each layer have a different color, and i want that all the layer have the same ...
1
vote
0answers
243 views

Converting multiple shapefiles into raster using ArcGIS ModelBuilder?

I want to convert multiple shape files into raster files using iteration in ModelBuilder in ArcGIS. Each time I am facing the same error, which is showing: Error executing function. A column was ...
1
vote
0answers
52 views

Automatically deleting lines within generated polygon using QGIS?

How do I automatically delete lines within a generated polygon? what I have: is a polygon with lines within. The lines I want to be deleted automatically -- like a auto clean up. This is what I did: ...
1
vote
0answers
79 views

Using CRS, DEM and Shapefile in QGIS?

I have a DEM of a region (metadata here) that I got from converting 16 las files using pointcloudviz. Now I have that loaded up in QGIS, and I have a shapefile I made from a hiking trip in that same ...
1
vote
0answers
349 views

Allign shapefile polygons and underlying image in MATLAB spatial plots?

I am plotting a map in MATLAB. For this I have values at corresponding Latitude-Longitude. I am creating meshgrids for Lat, Lon, and values for plotting the map. Somehow plotted map does not exactly ...
1
vote
0answers
62 views

Output Error from SimpliPy in QGIS

I am trying to simplify a polygon layer of parliamentary constituencies in Kenya using SimplyPy in QGIS and appear to be getting an erroneous result. The method is working for most of the polygons ...
1
vote
0answers
259 views

Convert DXF (point space) to WGS84

(I've been researching this for hours and have yet to find a straight answer, so at this point I don't care if this gets marked duplicate.) I'm a complete noob to QGIS. I have a floorpan SVG that I ...
1
vote
0answers
138 views

Copy elements from shp to GDB layer

I am trying to copy elements from a shp to a GDB. I took inspiration from this link, but after execution, my elements do not appear in the database. However, when I look in the table, it says 9 ...