Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3672386
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T02:36:07+00:00 2026-05-19T02:36:07+00:00

I have a data file in CSV format that has the some data like

  • 0

I have a data file in CSV format that has the some data like this:
field id | data tile | data description | longitude | latitude

I have PostgreSQL and PostGIS already installed and I would like to use PostGIS to create a query that will bring up all the records (from the table above) that are within the specified distance from a lat/long location.

The problem is that I don’t know how to get started.
Do I just import my CSV file in PostgreSQL database and start using PostgreSQL and PostGIS functions once I have the CSV file converted into a PostgreSQL table?

Are there any extra steps to make the table work with the PostGIS functions?

What would be the correct steps to go about this? I truly appreciate your help!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T02:36:08+00:00Added an answer on May 19, 2026 at 2:36 am

    In order to work with PostGIS, you need to import these scripts into your working database.

    Once you have this step done, set up your table and add the PostGIS column to it

    SELECT AddGeometryColumn('yourtable', 'columnname', 4269, 'POINT', 2 );
    

    The last 3 values are SRID, the type and the dimension. I just assume this is what you want. You probably need to adjust the SRID but this should be fine.

    You can set in your import/update/whatever you chose to add the geometry like

    ST_Transform(ST_PointFromText('POINT(-85.45899 32.1337)', 4326));
    

    This query can be written into your UPDATE or INSERT script for the data.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a CSV data file with rows that may have lots of columns
I have a CSV of file of data that I can load in R
I have an application that reads a CSV file with piles of data rows.
There is a data file and some image files that I have to download
I have a transaction log file in CSV format that I want use to
I have a csv file into which has crept some ^M dos line ends,
I have a graph library that I use to plot some data. This data
I have a large collection of data in an excel file (and csv files).
I have binary data in a file that I can read into a byte
Is there a way to encrypt the data file that mysql uses? I have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.