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
1
vote
1answer
191 views

Polygon holes/rings are showing up as polygons in QGIS

I am having an issue in both QGIS 2.18.17 and QGIS 3.0.1. It is to do with holes/rings. Where there are meant to be holes/rings, actual polygons are showing, these are effectively coming in as ...
0
votes
0answers
108 views

Complexity of US 5-Digit Zip Code Boundaries from Scratch?

Does anyone have any idea how difficult it would be to create 5-digit zip code boundaries from scratch? Let's suppose you start with a good outline of the US. Where would you source the fundamental ...
0
votes
2answers
1k views

Exporting to 2D (Arcview 3.0 compatible) shapefile in QGIS?

I need to run my shapefiles through a web mapping application which is incompatible with 3D shapefiles. At present I run them through the FME Universal Translator in Mapinfo, which enables you to ...
0
votes
1answer
23 views

password authentication failed for user “ASUS”

I'm creating table in PostgreSQL using these commands: shp2pgsql -s 32632 watershed.shp watershed > watershed.sql psql -f watershed.sql cambridge psql -f watershed.sql cambridge But I had ...
0
votes
2answers
487 views

How to export a feature collection of feature collections in Google Earth Engine?

I have extracted NDVI values from Landsat 8 images to a shapefile of points 90 meters apart. I am trying to get these point files back into ArcGIS and R, but they are too big to print to the console. ...
0
votes
2answers
838 views

shp2pgsql: how to know the schema.table?

I want to import a shapefile using shp2pgsql. I am using Mac with Postgis 2.2. Based on this reference: A conversion and upload can be done all in one step using a UNIX pipe: shp2pgsql -s <...
0
votes
0answers
86 views

Shapefile not projecting properly in Google Earth Engine? [on hold]

The shapefile I recently downloaded from (http://www.naturalearthdata.com) does not project properly in Google Earth Engine. I guess the issue is with the projection, but unable to figure out. Sorry I ...
0
votes
0answers
65 views

Losing numeric table precision during shapefile export in ArcGIS Pro

I'm trying to export a GDB file version 10.5 in ArcGIS Pro 2.0.0 to a shapefile, but every time I do, I lose precision with the unique feature IDs. For example the IDs will go from 554423216 --> ...
0
votes
2answers
36 views

Using dictionary of file names and DD coordinates to create points in shapefile using shapely?

I'm working on a Python script that strips the GPS info from images and uses that info to create a shapefile from that info. Right now I have all the file names as keys to tuples of decimal degrees ...
0
votes
1answer
660 views

Creating SpatialPolygons in R

I am trying to do kriging with my data. But there is a problem here. I want to use krige command in gstat package. But I do not have "Spatial object with prediction/simulation locations". How I can ...
0
votes
3answers
1k views

Attribute table in shapefile polygon [duplicate]

I have many polygons which represent different areas (with different plant species in each of them). I want to “link” some information to the polygons in order to later be able of seeing which kind ...
0
votes
4answers
4k views

Seeking shapefiles for New Zealand Cities and Suburbs/Neighbourhoods? [duplicate]

I'm trying to find some shapefiles (administrative boundaries) of New Zealand CITIES and SUBURBS/NEIGHBOURHOODS. I've found some boundaries for the Country, Regions, Districts (not useful for me) .. ...
0
votes
1answer
145 views

writeOGR error: length(dsn) == 1L is not TRUE

I'm running a for loop R that results in a shapefile being written with each iteration. The for loop runs successfully once, with a shapefile being written out, but then on the second iteration I get ...
0
votes
1answer
201 views

Rasterize shapefile according to another big raster using gdal_rasterize

I want to rasterize a shapefile into a raster according to another raster (97284, 154208, 15001971072 (nrow, ncol, ncell)). Since the raster is very big, I am using gdal_rasterize following the ...
0
votes
2answers
253 views

Adding two vector shapefiles together (one on top of the other) in QGIS [closed]

I understand how to merge two vector shapefiles together but I don't know how to layer one layer on top of another one and export it to make it permanent? I would like to add the GreaterMan shapefile ...
0
votes
1answer
193 views

Exporting point shapefile from ArcGIS for Desktop to R?

I am having several problems in exporting my point shapefile from ArcGIS 10 to R. I tried to save the shapefile as a CSV, but R reads all in one row; somebody in another question answered to use ...
0
votes
1answer
4k views

Uploading shapefile onto Garmin GPS, and displaying it over basemap?

I have a roads shapefile layer in ArcMap and I want to be able to view it on my Garmin64st. Ideally, it would be overlaid on a basemap so I would always be able to see it. It seems like that means I ...
0
votes
1answer
333 views

Join line segments sharing a common attribute, using GDAL

I'm having trouble rendering a shapefile consisting of trail routes broken down into many short segments. So I'd like to combine them into a small number of line features, which share a NAME and touch ...
0
votes
2answers
121 views

shapefile terminology for key-value pair

In an .osm file, there are <TAG ... /> elements like <way visible="true" id="-4409" timestamp="1970-01-01T00:00:00Z" version="1"> <nd ref="-21845"/> <tag k="fcc" ...
0
votes
0answers
83 views

Rasterize and union problem

i've done the union first and then rasterized it. But now i want instead of that, to rasterize each one and then merge it as one. How do i do that? I mean without the union first off. on<-union(...
0
votes
1answer
653 views

R: Self-intersection error when using intersect with two shapefiles

I am trying to "translate" worldwide raster data to European nuts3 polygons. That means I try to overlap two shapefiles to find the average value on nuts3 level. Unfortunately, when I use the ...
0
votes
1answer
90 views

Sort selected points by latitude/northing with field calculator

I have bathimetry data in .shp format. The points (picture below shows one of multiple groups/profiles) do not have ID numbers and are randomly dispersed through the attribute table. I have selected ...
0
votes
2answers
4k views

ArcMap creates unnecessary file types when saving shapefile (.cpg .prj, lock, etc.)

When saving shapefiles, geocoding results or even exporting data in ArcMap, many different files are created. Most of the time when I save a shapefile, I want only the shapefile and not a .cpg, .prj, ...
0
votes
1answer
218 views

Dissolving polygons based on multiple attributes with Python (shapely and fiona)?

I would like to dissolve a polygon shapefile based on two different fields, using Python and open source libraries. I'm just able to dissolve the shapefile using one single field, with Gene's answer ...
0
votes
1answer
225 views

Convert Shp to KMZ displaying labels using arcpy?

I've written a script that converts all shapefiles contained in a folder into lyr and then kmz. import arcpy arcpy.env.workspace = "path" arcpy.env.overwriteOutput = True allfeatures = arcpy....
0
votes
1answer
392 views

Change Attirbute Name (Fiona)

I have a shapefile that has 2 attributes named "X" and "Y". I want to change this to "Lon" and "Lat". My (limited) experience tells me that I should read in the original shapefile, preserve the ...
0
votes
3answers
445 views

Merge layers that have different coordinate systems

I need to merge two shapefiles and the issue is that one shapefile has WGS 84 coordinate system and the second OSGB 1936. When I try to do the trick with MMQGIS -> Combine -> Merge layers I get an ...
0
votes
3answers
2k views

US map shape distorted in QGIS

I am very new to QGIS and mapping. I am trying to load a US state map shapefile in QGIS. But the problem is it does not look like another US state map available on the internet. The upper part looks ...
0
votes
0answers
26 views

Coordinate System shows up incorrect after converting a shapely object to a shapefile [duplicate]

I am trying to convert a simple point object created using shapely to a shapefile using fiona as instructed in this post. I pretty much followed line by line except that I changed the crs as I need it ...
0
votes
1answer
235 views

Draw horizontal lines on points shapefile using ArcGIS [closed]

I have one shapefile of 200 points in which I would like to draw one horizontal line of 2Km on each of those points. How can I do this?
0
votes
1answer
159 views

Merging adjacent polygons to one which sum of attribute values of adjacent ones is between 1000 and 2000?

I have a huge number of polygons that contain attribute field that represent number of offices inside each polygon. Now I want to merge all adjacent polygons which count (sum) of offices values is ...
0
votes
0answers
2k views

Seeking downloadable Village layers for India with census 2011 information? [duplicate]

Does anyone know where I could download a layer of all villages in India together with their populations (hopefully from the 2011 census)?
0
votes
1answer
942 views

How to get feature for a given bbox from shapefile by ogr

I have some features point,line,polygon with shapefile format, now I want to get features for a given boundbox, is it possible to remove the features out of the bbox? And for a polygon, I think it is ...
0
votes
0answers
43 views

Shape Normalization Error while importing shapefiles in cartoDB

I had succesfully installed CartoDB in Ubuntu 14.04 LTS VM and could import CSV and GeoJSON without any error. When I try to load shapefiles, the following error pops out. Error Code : 3009 Error : ...
0
votes
1answer
534 views

rgdal::writeOGR collision in column names results in NULL data

I already know (How to stop writeOGR from abbreviating Field Names when using “ESRI Shapefile” driver) that writeOGR is abbreviating names of columns longer than 10 chars. But there is one more thing. ...
0
votes
0answers
231 views

Administrative boundaries worldwide [duplicate]

I am searching for a downloadable database of administrative boundary shapes, best would be worldwide data. I have found GADM but it seems a bit outdated, also the OSM site defining the ...
-1
votes
1answer
337 views

arcpy.CopyFeatures_management() gives ERROR 000732?

I'm using ArcGIS Desktop 10.2.2. I have a feature class in a geodatabase that from time to time I want to update with new data in an excel table. I wrote the following script to convert an excel ...
-1
votes
1answer
92 views

Download point files from Census On the Map in R

I'd like to automate downloading point shapefile data from Census OnTheMap. There is a link which can be used to download the data, as provided below: https://onthemap.ces.census.gov/cgi-bin/report....
-1
votes
1answer
178 views

Randomly rotating polygons in shapefile using ArcPy? [closed]

I have a shapefile with polygons and want to rotate each of them randomly. Centroid of the polygon should be the anchor point of rotation. Rotation example:
-4
votes
3answers
288 views

How can I use ogrinfo to reach information about a .shp?

How can I use ogrinfo? where should I write it? In the visual studio's command prompt or somewhere else? Can you make some examples? when I use ogrinfo in the windows or visual studio's command ...
-4
votes
1answer
88 views

Adding Lon, Lat column to shapefile in EPSG 32632 using ogr2ogr

I've a point shapefile in ESPG 32632 spatial reference. To add X and Y columns I've used Add X, Y column to a ESRI shapefile using ogr2ogr and it works fine. Now I need to add also Lat and Lon ...