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
78 views

Cutting a shapefile

I want to plot a figure with my data combined to an shapefile. However, at the moment I am not able to receive output yet since the data from the shapefile covers a larger area than my dataset. My ...
1
vote
2answers
62 views

Renaming shapefiles and raster files with Python

I'm trying to add "_Kiwi" to the name of multiple shapefiles and raster files in a folder C:\data. For the files with multiple extensions (.shp.xml for example), I can't get the files to rename ...
0
votes
1answer
125 views

In MapBox Studio, how to create a centred label of a polygon created from Shape file?

To get the undesired result below, I: Uploaded a zipped Shape file to MapBox Studio. Using the shape, created a layer of polygons to display area boundaries. Using the same shape, created a text ...
1
vote
1answer
45 views

Read only geometry from shapefile with python/geopandas

I would like to open a shapefile(shp) without loading the attributes(dbf), as I do not care about attributes and it takes about 25 minutes to load them. I am using Python Geopandas, so any Fiona or ...
1
vote
1answer
45 views

Why is QGIS 2.14 automatically changing field type when saving layer?

I'm creating shapefiles with specific field types (i.e. ID: integer, NAME: String, CODE: integer, etc.) using QGIS 2.14.0. When I save the layer using "right-click" - "save as" and load the newly ...
1
vote
0answers
26 views

Read a shapefile and write an identical one using GeoTools

How would one go about reading a shapefile using GeoTools and then writing it to disk so that the read and written are as identical as possible (idempotent)? I do not feel familiar enough with ...
5
votes
3answers
165 views

Determining coordinates of a SHP file

i have a SHP file of a building converted from a DXF file. This SHP file is unprojected and have no specific coordinates (origin 0,0). I find WGS84 coordinates (lat, long) of this building from Google ...
0
votes
1answer
144 views

Converting VMAP to shapefile using GDAL?

This is my first time trying to convert a VMAP to a shapefile and the examples online aren't as straightforward to me. Any guidance?
1
vote
0answers
30 views

Locking shapefiles from editing by ArcGIS for Desktop? [duplicate]

How we can lock or protect a shapefile from editing in arcgis? I want another person to be able to view the data/attributes in the shapefile, but don't want them to be able to change or edit the data....
5
votes
2answers
675 views

Making shapefile Read-Only to ArcGIS for Desktop?

How do you make the shapefile a Read-only so the client can not make any edits using 10.2.2 ArcGIS. It is not within a geodatabase, just a stand alone shapefile. I am using Windows 8
0
votes
2answers
35 views

Shapefile write protect not using Microsoft? [closed]

I need to send a file to a client which can't be edited or exported. It should be write protected using a password. Is there any way to do this with a shapefile?
0
votes
0answers
37 views

Is there any restriction for downloading google maps road network and do analysis on it

Would it be legal to download google road network and perform analysis on that data without officially taking their consent, and publish the findings. Is there any example similar to it?
1
vote
0answers
48 views

Shapefile layer export issue

I am using QGIS to define polygons in a shapefile layer which I am then exporting as an ESRI shapefile for use with JMP. The polygon layer looks correct on-screen in QGIS, but the exported files have ...
0
votes
0answers
15 views

Arcmap 10.2 (query builder and or Expression)

I want to turn off selected sect_label numbers from showing up on my base map as I have a shapefile with Section and acreage loaded for a specific area and i need to use the shape file because it lets ...
1
vote
0answers
753 views

How to fix QGIS Server internal server error when using shapefiles?

i read all the questions with 500 server error i could find on the net but nothing seems to solve my problem: I installed qgis and all depending packages on a debian server. The first REQUEST=...
1
vote
1answer
54 views

Projecting SHP file in QGIS [duplicate]

I have a DXF file of a building from AutoCAD. I saved this DXF file as a SHP file in QGIS. But this SHP file is converted from a plain DXF file and is not referenced/projected, it is drawn from ...
1
vote
0answers
28 views

Sub setting shape file to plot a region and addressing mismatch in ggplot & data

I am plotting India's district map with data (cases). First I read data for each district and district shape file. Later I merge the two on district. Using fortify data I get ggplot. I get a ...
1
vote
0answers
68 views

Find Properties of Nearest Line Segments to Point in Python

I have been trying to find a workable Python approach to finding nearest line segments to one (or more) points, and came accross @gene's solution to @RustyMagoo's problem here: from shapely.geometry ...
-6
votes
1answer
67 views

Edit Shapefiles in QGIS [closed]

I have shapefiles which were created in Arcgis. I want to edit them in Qgis. Is this possible? and if yes how can it be done? Can I open Arcgis shapefiles in Qgis?
1
vote
2answers
60 views

Preserving special chars using osgeo.ogr.Driver to shape in Python?

I am converting kml files to shape and run in to the problem that special characters are not preserved. #!/usr/bin/env python # -*- coding: utf-8 -*- import os, ogr, osgeo, sys ogr.UseExceptions() # ...
0
votes
0answers
26 views

DEM from Google Earth, Natural neighbour fails

Does anybody know, why using the tool Natural neighbour fails, when trying to get raster from shape? I followed the instructions here: https://www.youtube.com/watch?v=bLbY3iMBW-A, but all I get are ...
0
votes
1answer
38 views

Converting png map to polygons with colors and value using ArcGIS for Desktop?

I need to use this map (png file) in which each color is a population density: I've already located it using Georeferencing. Now i need to convert it to shape file with polygons, and narrow down ...
2
votes
0answers
45 views

Why does my GeoJSON have no coordinates when saving from Shapefile in QGIS?

I've got a shapefile (.shp, .shx, .dbf, and .prj) that I'm trying to save as a GeoJSON using QGIS 2.14. When I load the .shp into QGIS, everything seems to work fine, the Shapefile renders properly. ...
0
votes
1answer
27 views

Shapefile not displaying points (vertices) in ArcMap

this code finds all the vertices of every census tract for the state of California and Colorado. The code runs, and creates a shapefile with all proper filled fields (totpop, XCoord,YCoord, area1 etc.)...
5
votes
5answers
170 views

Do 1KB Shapefiles with bigger .shp.xml contain any usable data?

I received this folder from a county's GIS department. Am I right in telling them that there is nothing in it? They seem convinced that everything is included, but all I see is that there is ...
3
votes
2answers
38 views

How do I convert a GPX to SHP with extended properties?

I have a GPX file containing trackpoints, similiar to the following: <trkpt lat="12.34567890" lon="-12.34567890"> <ele>250.100000</ele> <time>2016-06-03T13:09:...
14
votes
2answers
21k views

Merging polygons in shapefile based on field values?

I have a shapefile with a lot of polygons in it. These polygons are grouped into a category: district. How can I merge the polygons based on the same name of the category within this shapefile?
10
votes
3answers
2k views

Polygon shapefile with null values?

Does anyone know where I can find a sample shapefile that has null entries in it (preferably a polygon shapefile)? I'm not sure how to create one with null entries.
6
votes
3answers
13k views

Using ArcMap, how may I convert a shapefile to use decimal degrees?

I have a shapefile that currently uses meters as the measure for its coordinate system, but the map framework I wish to use expects decimal degrees. I'd like to reproject my shapefile to use decimal ...
1
vote
1answer
121 views

Mapnik zoom_to_box for shape

I have used the code from Mapnik python tutorial. Now I want to use zoom_to_box to zoom to certain extent. I want to zoom to Box2d(-180.0, 0.0, 0.0, 90.0), however, after appied zoom_to_box, I saw the ...
10
votes
6answers
7k views

ArcGIS 10 creating a shape file from current dataframe extents in layout view

Where is the tool for this? Have looked around and the closet thing i can find is Toolbox's Grid/Strip Map Index tools under Data Drive Pages. I just want to be able to create a single polygon ...
2
votes
2answers
275 views

Software or script for Batch Shapefile to GPX

I am looking for a software that does batch processing of shapefiles to GPX files. I have seen many including Arcmap that will batch gpx to shapefiles but none vice versa. I currently am using DNR ...
0
votes
1answer
57 views

kml to shape file (ogr2ogr)

I am trying to convert kml to shape file. I'm using ogr2ogr (gdal version = 2.0.0). Here is the command : /home/vineet/Project/gdal-2.0.0/bin/ogr2ogr --config SHAPE_ENCODING UTF-8 -update -append ...
5
votes
1answer
1k views

Using ArcPy to batch merge based on shapefile name?

ArcGIS 10 SP4 Python 2.6.5 I have quite a few shapefiles that are in many different directories. I'd like to pull out groups of like shapefiles, merge them, and move the results into a FGDB. I've ...
0
votes
0answers
24 views

How to create colour-coded permanent labels in ArcGIS Online

I am new to ArcGIS Online and trying to label different polygons (representing protected areas) within a shapefile based on the status of a monitoring tool used. This information is stored for each ...
0
votes
1answer
451 views

Shapefile - problem with number of points in LinearRing

I am new to shapefiles and I've got a bit lost. I am trying to plot pooling sections in my region (Madrid) with different colors. But I get Error: IllegalArgumentException: Invalid number of ...
3
votes
1answer
34 views

Problems with dividing multipolygons into polygons

I have a shapefile with countries boundaries downloaded from here and I am trying to upload it to PostGIS database with ogr2ogr. This file contains features of polygon and multipolygon types and ...
0
votes
1answer
29 views

Split a shapefile into smaller files on linux command line

I have a shapefile which has ~350,000 entries. This is too big to handle. I'd like to split it into many smaller files, such that each file has 10,000 entries (this means there'd be ~350 shapefiles). ...
3
votes
1answer
80 views

Selection by adjacent polygon features

I have a large polygon shapefile with lots of features from a model output, I need to remove anomalous features which are joined by a single vertex and part of a cluster of two. (example highlighted ...
2
votes
3answers
9k views

Export shapefile to KML for Google Earth - using QGIS

I am a real beginner with QGIS. I have shape files of my study site. I would like to have the nice google earth background. I would like to be able to see my files in Google earth, then I can zoom ...
1
vote
2answers
64 views

Remove small areas from SHP shapefile in Qgis? (Python R etc)

I have a very complex file showing remnant vegetation data. I wish to remove very small areas (preferably with a threshold that I can set) and generate a file that shows only larger blocks of ...
2
votes
0answers
94 views

How to convert Shapefile to KML in Python

My goal is to extract certain shapes from a shapefile, and render the chosen shapes in a KML file. From searching gis.stackexchange, I was able to piece together the necessary components, and the ...
0
votes
0answers
13 views

Two layers of the same region with the same coordinate system does not lay in the same place! [duplicate]

I know that my problem seems to be frequent but I couldn't find any good till answer. I have two layers for the same place (area and roads) in my ArcGIS, both of them has the same coordinate system ...
7
votes
3answers
471 views

Performing Feature to Point (no advanced license) using ArcPy?

I have a set of polygons I have calculated the centroids of, but am having trouble finding a way to output these values to a point shapefile. I dabbled with arcpy.MakeXYEvents_management, but it only ...
4
votes
1answer
127 views

Import a shapefile to postgis with ogr2ogr gives: Unable to open datasource

I want to use ogr2ogr in order to import a shapefile in a postgis database. I have successfully installed ogr2ogr and I run from the pgsql the following command: ogr2ogr -f "PostgreSQL" PG:"host=...
1
vote
2answers
66 views

Extraction of raster with shapefile python

I have a raster tiff file containing vegetation index & also a shapefile of fields. I want to extract the field wise values from that raster file using GDAL. How can I do this? I can read the ...
2
votes
2answers
130 views

How to convert .csv with WKB to shapefile (.shp) using open source solutions?

I have a .csv file with hundreds of rows pulled out via PostGIS. The geospatial information is in "the_geom" field which seems to be in WKB-format. How can I convert this to shapefile using simple ...
1
vote
1answer
226 views

Loading shapefiles into ArcSDE geodatabase using web application?

We are developing a web GIS using Flexviewer and we want to allow users to upload a shp file and insert it into a ArcSDE geodatabase. I think there are two steps at least. upload the shp file (zip) ...
1
vote
0answers
34 views

Wrap the set of points to the minimum polygon

Given I have a set of points which represents the circles which are intersected. As result I'm trying to receive the boundary which represent the polygon which wraps all circles. Please take a look ...
0
votes
1answer
56 views

What has prevented a “better” format than shapefiles from being widely adopted? [closed]

Reading through this answer got me thinking: Why hasn't a better format than the shapefile been widely adopted? Shapefiles have (as I'm sure most of us have noticed) many annoying quirks, ...