Skip to content

diegomsg/kml_to_xlsx_points

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kml_to_xlsx_points

Overview

kml_to_xlsx_points is an R Shiny application designed to extract points from KML files representing land polygons, following SICOR/BCB standards, and export the data to XLSX or CSV files. This tool is particularly useful for geographic data analysis and visualization.

Features

  • Upload KML Files: Easily upload one or more KML files.
  • Precision Control: Adjust the number of decimal places for coordinates.
  • Data Export: Export extracted points to MS Excel (.xlsx) or CSV (.csv) formats.
  • Interactive Map: Visualize KML content on an interactive map.
  • File Information: View details of uploaded files.

Installation

To run this application, ensure you have R and the necessary packages installed. You can install the required packages using the following commands:

install.packages(c("shiny", "bslib", "bsicons", "tmap"))

Usage

  1. Clone the repository:

    git clone https://github.com/diegomsg/kml_to_xlsx_points.git
    cd kml_to_xlsx_points
  2. Run the Shiny app:

    library(shiny)
    shinyApp(ui = ui, server = server)

Code Structure

Libraries

library(shiny)
library(bslib)
library(bsicons)
library(tmap)
tmap_mode("view")

Dependencies

source("R/files_handler.R")
source("R/points_extract.R")
source("R/mapping.R")

UI

The user interface is built using page_sidebar with a bs_theme for styling. It includes panels for file upload, precision settings, and data download options.

Server

The server function handles file uploads, data extraction, precision settings, and data export. It also renders the interactive map and tables.

Running the App

To run the app, use the shinyApp(ui = ui, server = server) function.

Contributing

Feel free to contribute to this project by submitting issues or pull requests. For major changes, please open an issue first to discuss what you would like to change.

License

This project is licensed under the MIT License.

About

shiny app to extract points from kml file to xlsx or csv file

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages