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 872993
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T10:51:58+00:00 2026-05-15T10:51:58+00:00

I would like to insert the polygon containing Europe in my PostGIS database. I

  • 0

I would like to insert the polygon containing Europe in my PostGIS database.

I have the follwoing extremes points:

NW = NorthWest Border(lat=82.7021697 lon=-28.0371000)

NE = NorthEast Border(lat=82.7021697 lon=74.1357000)

SE = SouthEast Border(lat=33.8978000 lon=74.1357000)

SW = SouthWest Border(lat=33.8978000 lon=-28.0371000)

Is the following a valid polygon:

POLYGON((NWLon NWLat, NELon NELat, SELon SElat, SWLon SWLat, NWlon NWLat))

Is this a valid polygon?

I do see some polygon with the follwing format POLYGON((), ()) ? When are they used?

Why not a linestring?

Any help will be apreciated? This is getting me really confused.

Thanks

  • 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-15T10:51:59+00:00Added an answer on May 15, 2026 at 10:51 am

    This is a PostGIS polygon:

    ST_GeomFromText('POLYGON((lon1 lat1, lon2 lat2, ... lonN latN))', SRID)
    

    where SRID is the SRID of the geometry column you are interacting with and lonN, latN must equal lon1, lat1, ie, the ring must explicitly closed.

    In plain Postgres, the geometry types include a polygon (ie, no projection data, no background GIS functions, not really to be used with longitude and latitude); the syntax for those polygons is:

    insert into some_table (polygon_column) values ('(1,1),(2,2),(3,4),(1,1)');
    

    You may also find this question: SQL query for point-in-polygon using PostgreSQL relevant.

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

Sidebar

Related Questions

I have a little problem where I would like to insert a svn diff
I have created a test table in MySQL and would like to insert 10
I would like to insert multible sliders in one page. I have a block
I have a path in a string, C:\temp\mybackup.zip I would like insert a timestamp
I would like to insert a record into my SQL Server database with a
I would like to insert data manual in sqlite database. using cmd to insert
I would like to insert the current Subversion revision number (as reported by svnversion
I would like to insert dates in an emacs buffer like I do in
I would like to insert notes on the fixes to be done in specific
I would like to programmatically insert additional rows into a DataGrid (to act as

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.