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.

569 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
1
vote
0answers
67 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
142 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
225 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
323 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
56 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
36 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
387 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
641 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
1answer
256 views

Export spatial data from SQL Server to ESRI shapefile using OSGeo

i did a join between 2 tables departements2 which has all department with their id and geometry with BM_REGIONFR with id of department and region ( i have 5 region in each region many departement ) ...
1
vote
0answers
189 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
217 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
69 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
54 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
275 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
80 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
37 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
91 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
898 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
554 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
125 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
352 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
122 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
168 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
127 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
103 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
230 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
49 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
78 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
327 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
255 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
136 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 ...
1
vote
0answers
47 views

How to use shapefile to categorize set of coordinate by neighborhood?

Just a disclaimer, this is my first project with GIS so this may be really trivial. I have looked around but haven't found resources that were helpful to me. Currently I have a list of NYC ...
1
vote
0answers
69 views

How to check Polyline Hierarchy in QGIS?

I want to check polyline Ascending order hierarchy for road network in QGIS, For example Grade 1 road must start from Grade 0, Grade 2 road must start from Grade 1, Grade 3 road must start from ...
1
vote
0answers
49 views

Create Polygons that is the sum of other polygons

I have a shapefile table of property parcels that are polygons. I am looking to group these parcels by subdivision. If I know which parcels belong in which subdivsion, is there a way to generate a ...
1
vote
0answers
547 views

Shapefile to GeoJson with Rails

I have a requirement to create a layer on map, Client have provided me only the shape files(.shp). As i am very new to GIS, i was reading about it and found we need to convert the shapefile into ...
1
vote
0answers
124 views

Invalid Geometry when Importing Shapefile into Excel 2016 PowerMaps

I downloaded Public_School_Locations from NYC Open Data website When I attempt to import Public_Schools_Points_2011-2012A.shp into Excel 2016 PowerMaps this is what I get When I attempt to pick ...
1
vote
0answers
170 views

How to merge USGS contour data from files into state?

Long story short, I'm looking to take 1/3 arc-second 1x1 degree contour shapefiles from the USGS National Map Viewer and transform that into a contoured map of a particular state, but am encountering ...
1
vote
0answers
73 views

Default values in shapefile - point sampling tool

Is there a way in QGIS to get values in my point shapefile from different layers via point sampling tool as "default values" ? E.g. When I add a point in the shapefile the altitude (raster) and ...
1
vote
0answers
173 views

Intersection of two vector shapefiles?

I have a shapefile of the 8830 election precincts in Texas as of the 2016 election. I also have shapefiles of the Texas US House districts and the Texas Senate and House districts. I want to ...
1
vote
0answers
42 views

Loss in data after conversion from .shp to .tif using QGIS

I have some .shp data, which include points with values. After converting it into .tif, using QGIS, I have some loses in data. In .shp file sum of field was about 141418146 and in .tif image sum is ...
1
vote
0answers
211 views

Is it possible to simplify geometry only for polygons with certain attributes?

I have a map of electoral districts. Urban areas have more densely packed districts whose borders are more important to keep at high resolution. More rural districts have simpler geometries and have ...
1
vote
0answers
517 views

How to convert ESRI .prj WKT string to Proj4 string WITHOUT GDAL

ESRI shapefiles include a .prj file containing CRS information in Well-Known Text (WKT) format. I'm developing a software in which I need to systematically read shapefiles' CRS information, convert it ...