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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T14:53:14+00:00 2026-06-12T14:53:14+00:00

I have a Shapefile (*.shp) which I am loading into the Database. I have

  • 0

I have a Shapefile (*.shp) which I am loading into the Database. I have a column called Point” which stores the Data in shapes. For example

POLYGON ((1543297.7815 5169880.9468, 1543236.7046 5169848.3834,
          1543195.0218 5169930.2767, 1543104.4989 5170101.6818,
          1543056.805 5170191.9835, 1542969.1187 5170358.1396,
          1542820.9656 5170638.8525, 1542820.6605 5170639.7223,
          1542816.1912 5170647.8707, 1543158.2618 5170829.6437, 
          1543318.4126 5170915.6562, 1543559.2078 5171043.8001, 
          1543840.2014 5171192.4698, 1544108.917 5171336.1306, 
          1544271.7972 5171422.313, 1544357.0262 5171263.5454, 
          1544447.9779 5171091.3804, 1544468.04 5171054.3179, 
          1544529.7931 5170936.192, 1544583.3416 5170837.5321, 
          1544658.3376 5170696.5608, 1544699.0638 5170622.0859,
          1543985.6169 5170245.4526, 1543618.4129 5170050.7422,
          1543297.7815 5169880.9468))

The data type of the Column “Point” is nvarchar(max).

The problem is when the size of Polygon exceeds , the column truncates and does not store all the values. I can’t convert Points into Geometry as I want to convert Points into Lat/long from Polygon.

  • 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-06-12T14:53:16+00:00Added an answer on June 12, 2026 at 2:53 pm

    I’d suggest storing the whole polygon as a geometry type. If/when you need to “convert” it to geography, use the geography methods STNumPoints and STPointN to extract the individual points in sequence and convert them as appropriate.

    Speaking of the conversion, what format are your data in now? I’m not seeing lat/long info there, but perhaps I’m missing something.

    Edit: Here’s a solution that I just coded.

    use tempdb;
    create table tally (i int not null);
    with 
        a as (select 1 as [i] union select 0),
        b as (select 1 as [i] from a as [a1] cross join a as [a2]),
        c as (select 1 as [i] from b as [a1] cross join b as [a2]),
        d as (select 1 as [i] from c as [a1] cross join c as [a2]),
        e as (select 1 as [i] from d as [a1] cross join d as [a2])
    insert into tally
    select row_number() over (order by i) from e
    create unique clustered index [CI_Tally] on tally (i)
    
    create table ace (g geometry)
    insert into ace (g)
    values (geometry::STGeomFromText(<<your polygon string here>>, 0));
    
    select i, g.STPointN(t.i), g.STPointN(t.i).STAsText()
    from ace as [a]
    cross join tally as [t]
    where t.i <= g.STNumPoints()
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Shapefile from which I am extracting Geometry column and storing it
I downloaded the shape data from OSM. I have imported data from Shapefile into
I have a shapefile which is the national boundary line of Chile. If possible,
I have a PostgreSQL\PostGIS spatial database which contains Hebrew text columns. The system runs
I have a shapefile with 50+ different polygonal shapes (representing 50+ different regions) and
I have some shapefile (demographic/heat map data in the USA, such as crime in
I have a bunch of data which I've plotted at the county level, without
I have found only two methods (SaveFile, LoadFile) which save in a file. How
have written this little class, which generates a UUID every time an object of
Have a procedure which looks like Procedure TestProc(TVar1, TVar2 : variant); Begin TVar1 :=

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.