# \#shapefile

**URL:** https://discourse.julialang.org/tag/shapefile/1045.md

[Latest](https://discourse.julialang.org/latest.md) · [Categories](https://discourse.julialang.org/categories.md) · [Tags](https://discourse.julialang.org/tags.md)

---

## [GeoMakie: how to plot shapefile lines in the same GeoAxis as a heatmap](https://discourse.julialang.org/t/geomakie-how-to-plot-shapefile-lines-in-the-same-geoaxis-as-a-heatmap/119380)

<div class="topic-metadata">

**Author:** [@oscarvdvelde](https://discourse.julialang.org/u/oscarvdvelde)\
**Replies:** 5\
**Last updated:** [September 15, 2024, 7:14pm UTC](https://discourse.julialang.org/t/geomakie-how-to-plot-shapefile-lines-in-the-same-geoaxis-as-a-heatmap/119380 "2024-09-15T19:14:03Z")

</div>

I am trying GeoMakie for a simple visualization of KNMI radar data (Netherlands), which comes in netCDF format. The netCDF provides grid values, the x and y axes and the proj4. I am able to successfully plot that georefe…

---

## [Shapefile.jl writing .shp without coordinates](https://discourse.julialang.org/t/shapefile-jl-writing-shp-without-coordinates/117434)

<div class="topic-metadata">

**Author:** [@alejandromerchan](https://discourse.julialang.org/u/alejandromerchan)\
**Replies:** 19\
**Last updated:** [August 4, 2024, 4:08pm UTC](https://discourse.julialang.org/t/shapefile-jl-writing-shp-without-coordinates/117434 "2024-08-04T16:08:36Z")

</div>

I loaded a Shapefile in Julia, transformed it to a datafame and then did some data cleaning, getting rid of some unneeded rows of data. I saved the shapefile again, with a new name, using “Shapefile.write” and tried to o…

---

## [Extracting coordinates from Shape File](https://discourse.julialang.org/t/extracting-coordinates-from-shape-file/67799)

<div class="topic-metadata">

**Author:** [@Dieter](https://discourse.julialang.org/u/Dieter)\
**Replies:** 8\
**Last updated:** [February 28, 2024, 12:54pm UTC](https://discourse.julialang.org/t/extracting-coordinates-from-shape-file/67799 "2024-02-28T12:54:05Z")

</div>

Hi Community I tried to read in a Shape File with Austrian Boarders typing julia\> A=Shapefile.Table(Path\_Shapefile) Shapefile.Table{Union{Missing, Shapefile.Polygon}} with 1 rows and the following 16 columns: geometry…

---

## [Making graph with shapefile](https://discourse.julialang.org/t/making-graph-with-shapefile/98768)

<div class="topic-metadata">

**Author:** [@Michelle\_Ko](https://discourse.julialang.org/u/Michelle_Ko)\
**Replies:** 3\
**Last updated:** [May 14, 2023, 8:17am UTC](https://discourse.julialang.org/t/making-graph-with-shapefile/98768 "2023-05-14T08:17:45Z")

</div>

Hi, I am new to Julia and need some help regarding construction of graph with shapefile. I have shapefile that contains polylines and want to get the shortest path using Dijkstra’s algorithm. The thing is, in order to …

---

## [How to create a new shapefile containing a few points](https://discourse.julialang.org/t/how-to-create-a-new-shapefile-containing-a-few-points/43454)

<div class="topic-metadata">

**Author:** [@rio](https://discourse.julialang.org/u/rio)\
**Replies:** 19\
**Last updated:** [December 26, 2022, 9:15am UTC](https://discourse.julialang.org/t/how-to-create-a-new-shapefile-containing-a-few-points/43454 "2022-12-26T09:15:32Z")

</div>

Hi, I have the latitude and longitude of a few points (in WGS84, EPS 4326) and I would like to save my points in a Esri shapefile. My 5 points have coordinates like Lon = -44 .+ rand(5); Lat = -23 .+ rand(5) Please,…

---

## [Plotting a thematic map with a continuous color scale](https://discourse.julialang.org/t/plotting-a-thematic-map-with-a-continuous-color-scale/81695)

<div class="topic-metadata">

**Author:** [@Brinkhuis](https://discourse.julialang.org/u/Brinkhuis)\
**Replies:** 9\
**Last updated:** [May 29, 2022, 10:19am UTC](https://discourse.julialang.org/t/plotting-a-thematic-map-with-a-continuous-color-scale/81695 "2022-05-29T10:19:31Z")

</div>

I would like to plot a thematic map (choropleth) using Plots.jl. The DataFrame df I use has 3 columns: geometry, value1 and value2. The column geometry is of element type Polygon (data was read using the Shapefile packag…

---

## [Best Way of Handling Shapefiles in Makie](https://discourse.julialang.org/t/best-way-of-handling-shapefiles-in-makie/71028)

<div class="topic-metadata">

**Author:** [@TheCedarPrince](https://discourse.julialang.org/u/TheCedarPrince)\
**Replies:** 12\
**Last updated:** [December 17, 2021, 5:06pm UTC](https://discourse.julialang.org/t/best-way-of-handling-shapefiles-in-makie/71028 "2021-12-17T17:06:56Z")

</div>

Hi all, What is the best way handle shapefiles with Makie? For example, I have a shapefile that defines the states for each state in the United States. DataFrames can handle displaying the shapefile as follows: julia\>s…

---

## [How Do I Add a Colorbar to a Choropleth Map?](https://discourse.julialang.org/t/how-do-i-add-a-colorbar-to-a-choropleth-map/57814)

<div class="topic-metadata">

**Author:** [@TheCedarPrince](https://discourse.julialang.org/u/TheCedarPrince)\
**Replies:** 5\
**Last updated:** [March 24, 2021, 1:47pm UTC](https://discourse.julialang.org/t/how-do-i-add-a-colorbar-to-a-choropleth-map/57814 "2021-03-24T13:47:54Z")

</div>

Hi all, I have a choropleth plot that I have made using the following code snippet: choropleth = plot(states.geometry, axis = (\[\], false); fillcolor = permutedims(random\_values)) It comes out looking like this: How…

---

## [U.S. Counties Choropleth](https://discourse.julialang.org/t/u-s-counties-choropleth/20845)

<div class="topic-metadata">

**Author:** [@mthelm85](https://discourse.julialang.org/u/mthelm85)\
**Replies:** 27\
**Last updated:** [October 13, 2020, 1:43pm UTC](https://discourse.julialang.org/t/u-s-counties-choropleth/20845 "2020-10-13T13:43:40Z")

</div>

I can’t seem to find any info on how to create a choropleth map with U.S. counties in Julia. Is everyone using Python/R packages for this or is there a way to do it in Julia? It would be really nice if it was possible to…

---

## [Help for improvement for drawing shapefile using Gadfly](https://discourse.julialang.org/t/help-for-improvement-for-drawing-shapefile-using-gadfly/37348)

<div class="topic-metadata">

**Author:** [@L\_Adam](https://discourse.julialang.org/u/L_Adam)\
**Replies:** 4\
**Last updated:** [April 11, 2020, 2:55am UTC](https://discourse.julialang.org/t/help-for-improvement-for-drawing-shapefile-using-gadfly/37348 "2020-04-11T02:55:46Z")

</div>

I use Shapefile.jl parse \*.shp file into DataFrame, with each row having some region information and a Polygon struct specifies the shape of that region. Everything works smoothly. Big thanks :kissing\_smiling\_eyes: Afte…

---

## [How to create a simple map with custom "base" shapefile + data to plot on a separate CSV file](https://discourse.julialang.org/t/how-to-create-a-simple-map-with-custom-base-shapefile-data-to-plot-on-a-separate-csv-file/34580)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 4\
**Last updated:** [March 3, 2020, 6:26pm UTC](https://discourse.julialang.org/t/how-to-create-a-simple-map-with-custom-base-shapefile-data-to-plot-on-a-separate-csv-file/34580 "2020-03-03T18:26:15Z")

</div>

Hello, is it possible with Julia to plot a map based on a custom shapefile and a data file ? The simplest case is where we want to plot some “regional data” and the background colour represents the data, like in the atta…
