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
2answers
2k views

Shapefile to GeoJson conversion using C#

I have some shapefile which I want to convert to GeoJSON and store in MongoDB for querying. Is it possible to take a shapefile and convert it to GeoJSON format in C#? I have been able to convert ...
3
votes
2answers
837 views

finding the index of a field with its name using arcpy

I wan to extract the index of a field with its name using arcpy. it seems what I have written is so dumb. is there any simpler method with out using for-loop. import arcpy fieldList = ...
0
votes
2answers
352 views

creating many shapefiles from one multi-polygonal shapefile

Does anyone know of a way to create a standalone shapefile from every entry (row) in the attribute table of a large set of polygons (4909 in total)? preferably using python in a way that the results ...
0
votes
3answers
4k views

Calculating distance between points using ArcGIS Desktop?

I want to write Python syntax to calculate the distance from point to other points in the water network and so on for others, I have 21 points. I need distances have to follow the network That ...
0
votes
0answers
80 views

Converting/clipping KML to shapefile in QGIS without truncating field information (data)?

While I am clipping KML file by using polygon shapefile in QGIS, filed information (data) are truncating .Anybody can suggest a solution for this one.The same data losing issue occurring, at the time ...
0
votes
2answers
661 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 ...
-1
votes
1answer
426 views

Convert Road layer shapefile into a graph

I'm going to use Astar algorithm to find a path between two selected points.And I used the following code for that.Is there any way I could convert my Road Layer shapefile into a graph, which can be ...
0
votes
0answers
185 views

Generating XML to create a file geodatabase table from an existing shapefile DBF

I am writing a C# .NET application to convert a folder of shapefiles into a file geodatabase. Basic Info Windows 7 64 bit VS 2010 - Application is being run as 64 bit. Version 1.3 of the File ...
1
vote
1answer
220 views

How to filter data by category, then map only maximum-value row for each?

I'm building a consolidated map of all transit systems in my area in QGIS. I have a GTFS dataset of bus lines, and it includes shapes for every trip on every route in the system (as it should), but ...
1
vote
1answer
144 views

shp2pgsql data appent without gid

I have a shape file, I opened it in QGIS that has columns in attribute table named CITY_NAME, POPULATION and I have a database table in Posqgresql that has columns named gid (primary key), ...
1
vote
1answer
555 views

Convert shape file to kml without losing symbols

I am using QGIS 2.2 and want to convert a shape file containing point coordinates with userdefined svg-symbols to a kml file. Everything seems to work. The orginal file is in WGS 84 / UTM zone 32N ...
0
votes
1answer
36 views

Filling Field2 to icorresponding values in Field1 of shapefile using Field Calculator of ArcGIS for Desktop?

I have to give explanation in a new field of the existing field which contains abbreviation. Example: Field "Geology" has values Q, Qs,N....(abbreviation), I have to give explanation of those in a ...
1
vote
1answer
152 views

Is it possible to create shapefiles in ArcGIS and convert into SpatialNET?

I'm looking at the prospect of working for a client who has implemented a SpatialNET solution. I have never used SpatialNET and primarily have experience with ESRI and Autodesk products. The client ...
0
votes
1answer
114 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 ...
2
votes
2answers
217 views

Why OSM data has different attribute values from the same element and same time frame?

Here is my question: Does anyone know why OSM has different attribute values from the same element and same frame time? The example explains itself, when I try the Shapefile from different mirrors ...
2
votes
2answers
487 views

Writing shapefile with projection defined crashes fiona

I've just started trying to use Fiona to write out shapefiles. I found the example code below, which seems to work fine from shapely.geometry import mapping, Polygon import fiona # Here's an example ...
0
votes
0answers
23 views

Overlay Shapefile and Raster layer in R [duplicate]

I have a raster layer with climate data from the north of Mexico, part of Canada and the US mainland. I am trying to restrict the climate data to only the zone of the US mainland. To do this I thought ...
1
vote
0answers
170 views

PGSQL2SHP Commnad switch column type

I work with Postgis. I have table CREATE TABLE centerline ( gid serial NOT NULL, l_from integer, l_to integer, r_add_pre character varying(15), r_to integer ... } Export this table with ...
0
votes
0answers
119 views

QGISCloud in mobile QGIS

I’m new with QGIS mobile, I can’t open shapefile on QGISCloud using samsung note 8. Does anyone know how to do that? I haven’t found qgis plugin for mobile yet. Thank you
-1
votes
1answer
91 views

shapefile damaged after editing in ArcMap 10.0 [closed]

I drew a layer on Autocad and exported it to a shapefile. I edited this layer on Arcmap. After editing the layer it is corrupted. I use Shapechk to fix it however I will need to edit plenty of layers ...
2
votes
1answer
214 views

Why does the file size increase after I clipped the polygons to be smaller?

I have a polygon layer that shows properties along a road. I want to create a kml-file of the polygons, and to downsize the file, I tried clipping the properties with a buffer. But, the filesize of ...
1
vote
2answers
197 views

Convert a mask image to polygon shape file using GRASS

I used image classification technique in GRASS GIS v7 and generated the image mask below in which white area has NULL value and red area contains 1. I am going to clip those red color areas in a ...
4
votes
1answer
1k views

How to find the distance to the nearest coastline from a land-based latitude/longitude point?

I'm completely new to GIS and unsure what I need to solve this problem: In the image above turquoise is actually land. Sea is white. I tried using the NASA Distance to the Nearest Coast data dump ...
3
votes
3answers
1k views

convert a shapefile into graph with nodes and edges

Is there a way to convert a shapefile into graph with nodes and edges(except networkx). I'm using qgis and I want to convert a road vector layer into a graph, so that I can use it to apply shortest ...
0
votes
0answers
15 views

Plotting two shapefiles using R? [duplicate]

I'm not familiar with using R for GIS. I was wondering if you can help me figure out how to plot different shapefiles at the same time. I'm using the "map" function to generate a map in order to get ...
1
vote
2answers
340 views

Issue with vertex level editing in ArcScene

I have a 3D data set of some buildings in ESRI Shapefile MultiPatch format. The buildings appear in 3D in ArcScene (10.2.1 on Windows 8.1 64bit) and I am able to move, rotate and scale buildings. ...
1
vote
1answer
162 views

How can i store shape file in postgress database as a table using php?

I want to create a table from a shape file in Postgres. To do that, I can run this command in cmd: shp2pgsql -s 4326 -W LATIN1 E:\Any\THA_adm public.test123 | psql -h localhost -d DATA -U postgres -w ...
0
votes
2answers
81 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
1answer
192 views

Creating TopoJson from shapefile with the Shape Escape (shpescape)

Does shpescape really work for creating TopoJson from shapefiles? I always get errors if uploading there zipped shapefiles. The usual error message is: OSError at ...
0
votes
0answers
290 views

How to import SRTM data for the whole planet into TileMill

I need to get SRTM elevation data for the whole planet into TileMill. I already walked through the instructions on Steve Bennett's blog and it worked fine for small areas. The problem is now that for ...
3
votes
1answer
463 views

Converting Coverage files into shapefiles?

I am attempting to convert coverage files into shapefiles using arcpy. This is not the e00 files, but the bin files. ArcGIS help suggests that it can be done using ...
5
votes
3answers
5k views

How to get shapefile of river from OpenStreetMap?

I dont want to download whole map of an area. I just want rivers and other waterbodies present in an area in shapefiles so that I can use them in Qgis. I tried geofabrik but it is giving whole map and ...
0
votes
1answer
2k views

Opening shapefiles with geotools

Trying to make a simple class that will read shapefiles and eventually be able to pull out the coordinates/attributes for each feature (working with points here). But can't quite figure out geotools. ...
0
votes
1answer
123 views

Add attributes to an output shapefile schema (via meta)

I am trying to copy the schema of an existing shapefile and add to it in an output shapefile. Somehow I am not getting anywhere with this...though the docs seem very clear (and the download page : ...
0
votes
1answer
207 views

Blank Shapefile output?

When executing the following command string in the active browser, Qgis projects the triangle polygon and associated attribute table correctly. Upon reopening the shapefile in a new browser, the ...
2
votes
1answer
134 views

When I publish a layer(shapefile or postgis) with TileMill, 200 meters moves

I hope someone can help me. Not if you know the TileMill application I'm working with her to publish layers look more beautiful. Well, first I have posted directly loading the shp file., But when ...
1
vote
1answer
106 views

generate massive shapefiles

I have a shapefile with 1475 records, and I want to generate a shapefile for each record. What can I do to generate them avoiding selecting and exporting each record to do that?
1
vote
1answer
162 views

How to close spaces within a polygon in QGIS 2.2?

I have a shapefile displaying the borders of several city units. One of its polygons, however, had free space consisting of four vertices in it. I created another polygon inside the free space and ...
2
votes
0answers
258 views

Ecoregions shapefiles: subsetting, extracting and summarizing data from raster

I am attempting to subset and project an ecoregions shapefile from : EPA ECOREGIONS my data set is found here: SHAPEFILES and RASTER When I run this code, two major problems occur: 1) I cannot get the ...
0
votes
1answer
186 views

How to simplify shapefiles without losing attributes?

I want to simplify a huge shapefiles using mapshaper. However whenever I simplify the shapefile I loose a lot of data attributes. how can we simplify the shape files while retaining at least some of ...
0
votes
1answer
181 views

SQL Make Table (from .mdb) to Point Shapefile

For my school assignment, I must compose an SQL statement which retrieves data from a database in .mdb format. I have no problem developing the SQL statement. It is a requirement that we have an ...
1
vote
1answer
244 views

How to convert geospatial data with a custom SRS into ESRI Shapefiles?

I want to convert geospatial data stored in a .csv file into GeoJSON or ESRI Shapefiles. The problem is that the coordinate reference system is not in the database of EPSG codes. The originator ...
0
votes
0answers
67 views

Is it possible to use custom (non-circle) buffer shapes?

I have a shapefile containing points. I'd like to replace each point by the same shape, centered around the point, like the "Buffer" tool with shapes other than circles. How can I do that?
1
vote
0answers
169 views

Merging shapefiles to one, rearrange columns?

I am trying to merge two shapefiles which both contain polygons representing properties in QGIS 2.2. One problem is that the names of some of the columns in the attribute table differ between the two ...
0
votes
1answer
1k views

Using Fiona to write a new shapefile from scratch

I am new to Fiona, and trying to wrap my head around reading a csv file and writing out an ESRI shapefile. I have most of it down, but am missing two things; (1) defining the projection/spatial ...
1
vote
1answer
28 views

Using QGIS, how can I create attributes within a polygon layer based from a selection in that layer?

I'd like to add a column, or attribute rather, to selected rows within a polygon layer. I would simply like to make a binary system, where those that are selected receive a "1,' let's say, and all ...
1
vote
0answers
773 views

How to convert an XML to Shapefile using FME?

I am looking to convert XML to shapfiles using FME. The XML files are user generated while they draw points and lines (mainly) of interest on a web map. We generate the XML in the backgroung ...
1
vote
1answer
70 views

How do add attributes from shapefile to list of lat/long-coordinates using QGIS?

In QGIS I have a csv-file which contains lat/long-coordinates and population data for each coordinate. I also have a shapefile containing certain regional districts, in my case US counties. Now I ...
0
votes
1answer
364 views

Want to get an SHP file for my coutry Algeria

H everyone , i'm running a clustering test on my country with R, but the problem the clustering doen't look good because of the map i have, i hant to get a bigger map of my country 'ALGERIA' in an SHP ...
1
vote
1answer
912 views

Rotating the coordinates of a layer by 90 degrees

I have got a dwg file with the plans for a building, with rooms and everything. (There's been some samples taken inside the building which I want to display.) Now, since it's of a building, the person ...