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.

learn more… | top users | synonyms (2)

1
vote
1answer
30 views

Truncate a Shapefile field with SQL and ogr2ogr

I want to create a new attribute which is the first 8 characters of another, using ogr2ogr. To my surprise, this didn't work: ogr2ogr -f "ESRI Shapefile" a.shp b.shp -sql "select FID,left(FLOORKEY,8) ...
2
votes
3answers
13k views

Merging Two or More Layers using ArcGIS for Desktop?

I am working with three clipped layers that are shown in the TOC. I created these layers from a large watershed shape-file. However, each clipped layer includes the layer before it and only expands on ...
4
votes
1answer
115 views

Interpolate temperature data (shapefile) using R

The answer below solved my fist question, so I edit my question as follows: I have a shapefile given with the attributes lat, lon, elevation and temperature. So far I have a script that interpolates ...
0
votes
0answers
26 views

changing shape file polygon values on the command line or in a library

I am using gdal_polygonize to create shapefiles. As gdal_polygonize only seems to work for integer values, I gave the different value ranges in my original raster data individual IDs. Now in the ...
1
vote
2answers
42 views

Using PostGIS to query shape files

I am very new to PostGIS (started using it this morning). My goal is to determine if a lat/long point is contained inside a polygon that is described in a shape file (The shape file has a single ...
0
votes
2answers
53 views

QGIS capabilities [closed]

Our office is considering to make an offer of a large scale master plan project. The end-user files are required to be shape files, or at least ArcGIS compatible files. (The base map for desing is ...
3
votes
0answers
122 views

After upgrading to Qgis 2.14 Essen, cannot load layers from .zip [closed]

I had a project in 2.12 Lyon that used many .zip files for access to .shp files. Now, after upgrading, I cannot add any content from .zip. This is Win10 Machine and I have the option checked to scan ...
1
vote
1answer
71 views

CRS transform from EPSG 4326 (WGS 84) ? to EPSG 27700 (OSGB 1936 / British National Grid)

I have a table which is an import of a shp file from www.geofabrik.de/ England > Roads. I've tried to change the CRS to EPSG 27700 but when I add this back to QGIS along side other layers which are ...
1
vote
1answer
39 views

Separate buffer for road lines

I want to a buffer around road (dwg file) in Arcgis. I am merging road lines but there are separate buffers for every line of road.
1
vote
0answers
42 views

How can I Use Python in ArcGIS to Manipulate the Underlying Data of Selected Polygons [closed]

I am relatively new to python in ArcGIS. I have a shapefile loaded in ArcGis (v 10.0) and will select two adjacent polygons using the selection tool. Once I select my two polygons, I want to use ...
2
votes
0answers
87 views

Importing shapefile problem, unknown geometry type in QGIS

I have used ArcGIS extensively, but am at a new job with only access to QGIS. I am trying to import a few shapefiles and am having some problems. First, I opened the shapefiles in esris free browser, ...
2
votes
1answer
57 views

Filter the Feature Layer parameter in Python Script Tool

I have a Python script tool where I have a parameter of type Feature Layer because I want to have the already opened layers as a dropdown list. I was wondering if there is a way to filter this ...
12
votes
2answers
11k views

R : convert a spatial polygon objet to spatial polygon data frame

My goal is to modify an existing shapefile by merging certain polygons. After importing the shapefile and using the UnionSpatialPolygons command, I get the polygon outline that I want. However, this ...
3
votes
0answers
33 views

Transfering files from QGIS to ArcGIS, wrong topology and fantoms objects [duplicate]

I am working in a project with both QGis and ArcGIS. I do mostly cosmetic work and digitalize with QGIS then transfer the shapefiles on ArcGIS. At work I am the only one to work on QGIS, the other ...
2
votes
1answer
30 views

My point shape file having missing spatial reference information

I am using ArcGIS 10.2.2. I got a shape file with points representing spot elevations in my study area. This file has been provided by a third party institution. The coordinate system is missing ...
0
votes
0answers
22 views

how to select the same variable in several shapefiles?

I need to prepare a map showing the element concentrations by months. I have a shapefile with all the information (13 elements (columns), 16 stations by 10 months (160 rows)), and I have copied this ...
5
votes
3answers
7k views

How do I add my own map layers to Leaflet

I have a Leaflet map and want to add two of my own small polygon layers (currently in shapefile format, but they could be converted to GeoJSON). Can this be done without a mapserver to publish them ...
0
votes
1answer
38 views

JSONs made from shapefiles are not plotting (using folium or Leaflet alone)

My goal is to plot two shapefiles as layers on an interactive map. The files I'm using live at https://github.com/AnnaMag/maps. I transformed shapefiles to .geojson using ogr2ogr -f ... e.g. ...
0
votes
0answers
15 views

Add field, if not alredy exist. Else do nothing [duplicate]

I want to develop a python code that: Enters a shapefile. Determines all its fields and, if among these fields there are some missing from a certain list, it add them. An example may be easier to ...
2
votes
1answer
334 views

Validating whether shapefile exists using ArcPy?

I am very new to Python and am trying to complete my final project with not a lot of success. My code works without functions, the problem is I need it to work with functions. In the main(): ...
2
votes
1answer
39 views

Upload Shape File size limit

I'm trying to upload shape file to Geoserver with REST api. It is working with most of the shape files, but I have problems when I try to upload a bigger shape file. The .zip file is 21.1 Mb. Contains ...
1
vote
1answer
62 views

Shapefile buffer assigning to each buffer a different length

I am new to ArcGIS and Python. I have drawn a set of lines (corresponding to a network) in a shapefile. I would like to buffer them, but each line has a different buffer length, so I thought to do it ...
2
votes
1answer
38 views

Converting an ENVI raster as point shapefile for editing in ArcGIS?

I have an ENVI raster with multiple classes inside. I tried to export this to a vector so that I can convert it to a shapefile in ArcGis (I want to manually edit/delete points in the raster), but the ...
3
votes
3answers
126 views

Where to find a polygon shapefile of countries, states and islands?

As often happens, the hardest part of GIS is to come up with clean shapefile with an attribute table. I need to create a choropleth map, but all I have is this: Domicile,Captives New Zealand,24 ...
2
votes
3answers
55 views

How do I create random points only within a multi-part polygon and none outside?

I am currently using a shapefile consisting of an area smaller than the entire study boundary ie. I want this to to be my overall study area. I used a raster to polygon tool and converted it to a ...
4
votes
1answer
31 views

Remove certain polygon from SpatialPolygonDataFrame

I am using R maptools library to parse the shapefile into a list of polygons. The function readShapeSpatial shp <- readShapeSpatial("<path to my shapefile>") gives me a ...
1
vote
1answer
87 views

How to speed up Select by location?

Has anyone had a similar "extreme slow" experience using "Select by location" (Toolbox) and "Spatial query" tool? I've used both for selecting some points inside a polygon. The data was in SHPs and ...
7
votes
3answers
6k views

Extract Raster from Raster using Polygon shapefile in R

I am new to R and using the raster package. I have a problem extracting polygons from an existing raster file. If I use extract(raster, poly_shape) function on the raster it always creates a list ...
3
votes
1answer
257 views

How complete are the Fusion tools in QGIS?

How complete are the Fusion tools in QGIS? I have them installed and (vaguely) working, but there are only about ten of them. Is the idea of having just a few tools available, that one can use ...
2
votes
1answer
1k views

Add new rows to a shapefile

I'm using QGIS. When I enable editing of a shapefile's table attributes and select, 'open attribute table,' is it possible to add new rows to the shapefile's table attributes? The problem I'm trying ...
2
votes
4answers
2k views

Is there a way to get Z value from 3D multipoint shapefile in QGIS?

Is there a way to get Z value/height/altitude from 3D multipoint shapefile in QGIS? All I found is way through SpatiaLite or PostGIS as explained here: ...
1
vote
1answer
93 views

Spanish municipality level shape file and population data

I'm struggling with the Spanish municipality level. I need to incorporate population data with the lat/long for each Spanish municipality and below are the details of my current files: I cannot ...
4
votes
2answers
7k views

How to convert bearing, distance, xy coordinate measurements to point shapefile?

I have a natural resources dataset where individual seedlings in canopy gaps were recorded from a center "legacy tree" within each canopy gap. Each sapling has the following measurements associated ...
4
votes
1answer
591 views

Handling file names with spaces in ogr2ogr?

I'm trying to convert .shp files to .kml files. I used a batch file to find all .shp files in a directory and its sub-directories and convert them to .kml. Some converted and some gave me the error ...
1
vote
2answers
86 views

How to combine two polyline shapefile together

Here is my question Two shapefile: * A: represent the outer boundary of the city area * B: represent the inner boundaries of the city divisions. I want to * Combine these two shapefile * ...
1
vote
2answers
74 views

How to find the intersection of three polygon layers in ArcGIS?

I have three data sets of San Francisco, TerraSAR-X, ALOS-PALSAR, Radarsat2. I have extracted KML files using Envi Sarscape. In order to find the intersection of these areas, I have converted ...
1
vote
0answers
30 views

Ogr2ogr: Shape to MySQL. Delete (or ignore) “geometry_columns” and “spatial_ref_sys”

Im exporting a shapefile to my MySQL database. But as standard it also add the additional metadata tables: "geometry_columns" and "spatial_ref_sys" Is there a way to either delete these tables or ...
2
votes
1answer
144 views

Newly added points disappearing after saving edits in QGIS.

I am adding features to a shapefile point layer in QGIS 2.12 Lyon. When I add the new point I can see it, but once I click the Save Edits button it disappears. When I click Toggle Editing button to ...
5
votes
2answers
69 views

Is it possible to 'scrape' shapefile layer from a map saved as pdf/jpeg?

Data on the changes in voting district delimitations in SA is available as a series of maps (no shapefiles made official). I'd like to create a shapefile by scraping the boundaries from the individual ...
0
votes
0answers
23 views

Putting shapefile into spplot graph?

I have a spplot with a kriging but I need to put a shapefile into this spplot? How can I do that? I could obtain this with a intersection but I just need the shapefile over this.
4
votes
4answers
9k views

Tool for converting .shp file to .tab file?

I am searching for any free tool which can convert ShapeFile (.shp) to MapInfo (.tab) file.
0
votes
0answers
48 views

How to convert ArcMap *.shp to MapInfo *.tab file? [duplicate]

Possible Duplicate: Tool for converting .shp file to .tab file? I have files in ArcGIS format, I want to export some layers to Mapinfo files as tab file
1
vote
2answers
75 views

Changing orientation of all text labels at once?

I rotated my extent -45 degree to make it look better. Problem is all the labels that I converted to graphics so I could rearrange them are also at -45 degrees. Any way to change that easily?
5
votes
1answer
74 views

Writing points to a file

Trying to write the city name and point coords to a file. The following works with a polygon shapefile but not the point shapefile. I know I'm missing something basic. import arcpy # Set up the ...
1
vote
0answers
34 views

Converting Shapefile to Autocad

I am Trying to export from shapefile to autocad. But it is not converted correctly. My labels are not shown.
13
votes
10answers
28k views
0
votes
1answer
349 views

Making shapefile from Pandas dataframe?

I´d like to construct a shapefile from a Pandas Data Frame using the lon & lat rows. I have got a csv file and I process it with pandas to make a data frame which is easier to handle Is it ...
5
votes
2answers
154 views

How to merge and dissolve adjacent polygons and sum up their attributes in QGIS?

I have many polygons that are adjacent to each other, and others overlap slightly. I need to merge them and sum up their attribute (Area per class). I attach an image of my problem (Screenshot of my ...
2
votes
0answers
48 views

Selecting polygons that are completely surrounded by other polygons [closed]

Is it possible in ArcMap 10.4 to select single polygons of a particular attribute that are completely surrounded by polygons of a different attribute? Using a segmentation shapefile from a rule-based ...
1
vote
1answer
997 views

Geotools create/save shapefile has no geometry information

When I create and save a shapefile in GeoTools, then open it in ArcGIS or QGIS, it doesn't show up on the map, even though the features are there in the attribute table (and all attributes I added ...