Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Udhayavardhane
Contributor
Contributor

How to load LINESTRING to postgresql using Talend

Hi All,

We have a txt file with geometry data like LINESTRING(-71.160281 42.258729,-71.160837 42.259113,-71.161144 42.25932)

Our requirement is, we want to load this data into postgresql database, with geometry column

How can we do this ? Please help!

Thanks & Regards,

Udhaya vardhane N.P

Labels (2)
2 Replies
Anonymous
Not applicable

Are you using Postgis or are you Postgres without Postgis?

 

http://postgis.net/workshops/postgis-intro/geometries.html talks about this.

 

Have you tried to load this data with a Talend job already? If so, where are you struggling with this?

 

Since I do not have Postgres (or Postgis) configured, I cannot try out all of the scenarios that your question could relate to. I'll need more information.

Udhayavardhane
Contributor
Contributor
Author

hi,

 

We have postgres with Postgis enabled.

 

Till now we were using .shp file with dGeometryToPostgisObject component. Where both input and output we could set as Geometry. That works fine & perfect.

 

But now our input file is a plain text file with string value like LINESTRING(-71.160281 42.258729,-71.160837 42.259113,-71.161144 42.25932). So when we are trying to build the metadata , the datatype of the field is string. But posgresql table has the datatype as geometry.

 

So we are not able to use dGeometryToPostgisObject & dproject.

 

Basically we need an idea , how to load the string from flat file to postgres-postgis geometry column using Talend.

 

Thanks