Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
3answers
144 views

Convert CSV file in shapefile with pyshp/shapefile

I'm trying to convert a file.csv to a file.shp through the pyshp / shapefile module. The content of the CSV is: Lon,Lat,Vel,Dir 15.9576198620869825,41.1791119428255143,9.3949995040893555,92....
1
vote
1answer
33 views

C++ OGR GDAL Set spatial reference of new layer

When creating a new layer using OGR / GDAL in C++, how do i set the spatial reference? OGRLayer *poLayer2; poLayer2 = poDS2->CreateLayer( "layerName", NULL, wkbPoint, NULL ); if( poLayer2 == NULL ...
1
vote
1answer
68 views

How can I carry over attributes from a GIS .shp to a SnakeGrid MicroStation .dgn, using FME?

I have the SnakeGrid projector so can convert coordinate systems but can't seem to carry the attributes over (I have tried AttribueManager and AttributeCopier). Also, can I input several .shp and ...
1
vote
0answers
39 views

How to deal with decimal separator when uploading geometries to MSSQL server using shape2sql.exe?

I'm using Shape2Sql.exe to upload .shp shapefile to MSSQL server 13.0.4502.0 on a Win10 64bit laptop. I've added Shape2Sql.exe.config <?xml version="1.0" encoding="utf-8"?> <configuration>...
0
votes
2answers
24 views

Merge only lines that they are touches on QGIS 3.2.3 and create a shapefile output with the result

I have a project with five lines, every element have a different ID. This is view below: I want to merge only lines that there are touching. According with this conditions the lines they should ...
0
votes
2answers
62 views

Selecting features from grouped shapefile

I have downloaded some glacier outlines from the GLIMS database (http://www.glims.org/maps/glims) as a SHP file. This contains multi-temporal data, that is, more than one outline per glacier (more ...
-1
votes
0answers
43 views

Attribute table missing data after saving shapefile?

I had a shapefile with water pipelines and in its attribute table were a lot of information (length, street names, materials etc). I saved the shape and when I started my project the next day, all ...
2
votes
2answers
78 views

How do I assign a unique ID area to an area of a shapefile so I can rasterize it?

I have a shapefile (which can be downloaded from this dropbox link) that I'd like to rasterize so I can merge it with some non-geographic data (I have the code to do this already). Unfortunately, the ...
0
votes
0answers
66 views

How to choose the most accurate projection to calculate areas of polygons

I am still beginner with QGIS Girona, I download Shapefiles from gadm.org of some countries, they are in geographic coordinates WGS84, I can calculate thr area via $area in field calculator, but I ...
0
votes
1answer
41 views

Visualize classes from shapefile attribute table

I have a shapefile with classification and I would like to see that map in QGIS. When I open it, adding it as layer, I just see the overall area filled with the shapes of the various classes but I ...
1
vote
2answers
49 views

Extract by Mask tool not clipping to mask extent?

I am using ArcMap 10.4.1. I am using the Extract by Mask tool to clip a raster using a polygon shapefile. When the tool finishes running, the output raster does not fill the entire mask extent (see ...
0
votes
2answers
40 views

Color in QGIS 3 points based on userid

I have a dataset in the from: gps.accuracy latitude longitude timestamp user 37.959 -9.6580833 -35.7001122 1434057621378 5573502c150000c10136e51b 37.959 -9.6580833 -35.7001122 ...
0
votes
1answer
27 views

Polygonal shapefile: dissolving adjacent ones

I would like to solve a issue related to a land use shapefile. I would like to "merge/dissolve" just the adjacent polygons that have the same attribute. How can I do this using QGIS?
2
votes
1answer
33 views

Calculating nearest distance between polygons according to attribute field in ArcGIS Desktop?

I have a two polygon shapefiles, one shapefile is a zoning and the second one is a census tract. Now I want to calculate distance from boundary of tract to closest boundary of each zone type (R, C, ...
0
votes
2answers
53 views

Clean road network from nodes blobs

I have a graph representing a road network and I need to clean it before working on it. Problem is that the original shapefile is not clean so when I make the graph I have many useless nodes too close ...
0
votes
1answer
27 views

Congressional/Legislative Member Data Set [closed]

I am working on a web map of congressional and legislative districts. I am able to find the boundary lines but not up to date data on the representatives per legislative district. Anyone know of ...
2
votes
0answers
39 views

PostgreSQL/PostGIS: Adding attributes to a table that I can use to query with

Currently I have a PostGIS database that is taking in shapefiles. However, these shapefiles are converted into tables when they are imported into the database. Each shapefile deals with a farm name, ...
1
vote
1answer
36 views

Uploading to OpenStreetMap with JOSM?

I uploaded a shapefile from JOSM to OpenStreetMap a week ago and I still cannot see any changes on osm map. Yet when I visit my profile I see clearly that the shape was uploaded. Do you know how ...
-2
votes
1answer
113 views

Convert PNG image to Shapefile in QGIS [closed]

I have a district boundary shapefile. I want to divide that district according to the boundaries given in image. How we can achieve it? Can we add vector file first then add image as an overlay on ...
1
vote
1answer
42 views

Seeking up-to-date shapefile(s) for Pakistan?

I'm currently looking for a shapefile for Pakistan with the current district borders. So far I found something on https://gadm.org/. Unfortunately the shapefile there seems not to be up-to-date, as e....
3
votes
1answer
51 views

Republishing AGS Service Doesn't Update Web Map in AGOL

I created a web map in my AGOL content folder after publishing from ArcMap as a Portal feature service. I created a web map in AGOL by bringing in the service URL. I have three group layers with ...
2
votes
1answer
28 views

Selecting points within polygon using ArcGIS Desktop?

I am using ArcGIS Desktop for the first time in many years. I have a postal sector layer under a series of merged drive time boundaries. How do I select just those postal sectors which fit within ...
2
votes
0answers
46 views

Using field calculator on shapefile converted from DWG in ArcGIS Desktop?

I am using ArcGIS Desktop 10.3. A third party convert complex autocad drawing (dwg) to shapefile for us. I got from them a zip folder with 1 to 16 Shapefile (depending of the original dwg data), all ...
2
votes
2answers
52 views

Selecting features in ArcMap continuously?

My task is to select some of the features in a layer so that the whole area of them can be near to a particular value. While I got trouble when using select tools in ArcMap 10.6. For example I want ...
2
votes
1answer
43 views

Exporting SQL Server .bak files to a shapefile? [closed]

I have no experience using Microsoft SQL Server at all. Someone gave me a .bak file of their database and said that I can extract their spatial data that way. They said that they would not export them ...
1
vote
0answers
44 views

Run-time error -2147467259 (80004005) in VBA when clicking and saving polygon to shapefile? [closed]

I'm fairly new to this project and to VB and got some of old code to fix. The task is to click a polygon on the screen with the mouse and then save it to a shapefile. When executing the code, it ...
1
vote
0answers
44 views

QGIS vectors and rasters

I have created a map with polygon shapefiles and am trying to import them onto an different raster but when I do they are larger than the raster image and are far away. What am I doing wrong? My ...
0
votes
0answers
33 views

New Shapefile (Polygon) Disappearing in Edit Session ArcGIS 10.6.1

I created a shapefile in ArcCatalog and assigned it its coordinate system as I always do. I selected "polygon" as the type. I added a generic topographic basemap to ArcMap. Upon editing the new ...
0
votes
0answers
40 views

Data Source (s) for names and polygon shapes for the world [duplicate]

I am looking to find out where I can ideally get every country, district, city, town, postcode in the form of polygons. Is there a central place for this? What are the licences for using the data?
1
vote
1answer
45 views

Add multiple pictures to a point

I am working with QGIS 3.2 (Bonn) and would like to add multiple pictures to a point (shapefile). In the end I would like to use the identify/info button and the picture should appear. Anyone know how ...
0
votes
2answers
61 views

Creating Custom Shapefile that can be snapped in location with no dragging using QGIS?

I am trying to create a custom shapefile consisted of 16 waypoints orientated around an origin point. the 16 waypoints are to be 2m apart from the central waypoint (like an axis, with 0 being the ...
0
votes
1answer
33 views

ArcGIS Symbology For OSM Street Flow Directions

I have downloaded OSM data in [.shp.zip] format from geofabrik.de now I need to apply Street map symbology to them. Can you please let me know how I can display the flow direction symbol in the street ...
2
votes
2answers
77 views

Converting UTM coordinates to shapefile in QGIS

I have an excel sheet with UTM coordinates (Easting and Northing) for four points. I want to create a shapefile (rectangle) in QGIS, but am very new to the program and following all the guides I can't ...
0
votes
1answer
23 views

Expanding Grids in the border in ArcMap

I have a shapefile of a city. My problem is that in the border, cells of the grids are not a complete square (500*500 m), while I need them to be complete as I need their centroids too. As it is shown ...
4
votes
1answer
38 views

Extract value from vector to another

I have two vector (shapefile) data. One contains soil order for county, and the other one contains boundary for each county. I want to extract the soil order for each county by using county boundary. ...
0
votes
1answer
52 views

Selecting only portion of shapefile using ArcMap?

I have two layers: One of the Misissippi River Basin and one of the USA counties within the 48 states. I'm having no trouble selecting the counties within the Basin, but I also need to select the ...
1
vote
0answers
53 views

QGIS “Sum Line Lengths” return 'nan.'

I have a polygon shapefile and a (merged) line shapefile (both are zipped). When I use Vector -> Analysis Tools -> Sum Line Lengths on these shapefiles, I get a layer with some of the LENGTHS filled ...
0
votes
0answers
34 views

Spatial imputation for missing values in multiple variables in shapefile in r

I currently have a shapefile with approximately 20 numeric variables. Several of these variables have missing values. As this is a shapefile I do not think using the median or mean as a form of ...
0
votes
2answers
37 views

Z-value from database? QGIS

I have a merged shapefile with line geometry. Every line has a Z value written in the database. I want to write this value from the database to the geometry as Z-value. The basefiles are S-57 DEPCTN ...
0
votes
3answers
50 views

Filtering attributes in a shapefile using a common ID from an Excel file

I am using QGIS 2.18.11 and I have a shape layer with lines and polylines I need to review; but not all of them, only certain ones. The ones I need to review are marked in a specific field (rev = 0 or ...
0
votes
0answers
23 views

Road Network Shapefile With 'Road To' and 'Road From' attributes

I need a road network shapefile of Australian Suburbs with 'road to' and 'road from 'attributes. Can someone name the data source ?
3
votes
1answer
94 views

Wrapping WMS across date line using GeoServer?

I am using GeoServer to serve a WMS version of the Natural Earth 1:10m Country shapefile. I have everything working pretty well except that when it wraps around the dateline, there's an extra ...
0
votes
0answers
23 views

Coding of data font non editable in shapefile in QGIS

What is the reason for a shape layer to have the field "Codificación de la fuente de datos" (coding of data font) selectable or not? In the following image the red arrow shows the dropdown list in ...
2
votes
0answers
57 views

How to speed up 'intersection' tool for big amount of data?

I can't figure out how to work with a large dataset. The problem is: I want to know how many points (over 700 000 adresses) are within a polygon layer (it's made out of 5 layers, train noise)(they are ...
2
votes
0answers
22 views

Selecting weights while transferring from shapefile to network

I have a shapefile representing roads (LineStrings) and I need to transfer it to a networkx type (with the lengths as weights) so I can do some network analysis. I have used the s2g library to do so ...
0
votes
0answers
30 views

Seeking shapefile from Brazilian presidential election?

Is there some way to get a shapefile from Brazilian presidential election, like in this link: (per city) http://especiais.g1.globo.com/politica/eleicoes/2018/mapa-da-apuracao-no-brasil-presidente/1-...
2
votes
1answer
604 views

Converting large GeoJSON to shapefile?

I have recently downloaded a building footprint GeoJSON file from Microsoft Bing Maps. The file I downloaded was for the entirety of Texas, and is of approximately 2.2 GB file size. They do not ...
0
votes
2answers
186 views

Calculating polygon area within polygons in QGIS?

I am new to QGIS - I want to estimate the area of the reef under a polygon grid. My shapefiles are already in meters, however I am having a hard time calculating the area under the grid layer. ...
1
vote
0answers
39 views

Spatial join of building footprints with Shapely and Fiona

I would like to do a spatial merge of the address nodes of Baton Rouge into their surrounding building footprints. Every building (polygon) should get the properties of the address (point). Here is ...
0
votes
1answer
45 views

Draw a mask on a TIFF file

I have a raster (TIFF file) and I would like to draw a mask on it. So, I basically create a shapefile and draw polygons on the area I wanted to mask. Then, I would like to rasterize this shapefile by ...