[mapserver-users] geomfromtext (POSTGIS) in C# or other language...

Paul james pauljame at gmail.com
Thu Sep 18 14:22:28 EDT 2008


Thanks ...

But what I need now is manipulate the geometry values in c#...
I got a point from postgis in this format :
010100000000000000000059400000000000005940
I cant use AsText postgis function...

So, in my server(c#) I have to Convert that "numbers" to Point to change it
...
Any help?

On Thu, Sep 18, 2008 at 1:13 PM, Paul Ramsey <pramsey at cleverelephant.ca>wrote:

> Connect to the database and run
>
> INSERT INTO mytable (the_geom) VALUES
> (ST_SetSRID(ST_GeometryFromText('blahblah'),XXXX));
>
> P.
>
> On Thu, Sep 18, 2008 at 8:43 AM, Paul james <pauljame at gmail.com> wrote:
> > Thanks Thamas...
> > Thats sounds great...
> > But, after I used Geometry.CreateFromWkt function to convert my geometry,
> > how can I add it to the PostGis Layer?
> >
> > On Thu, Sep 18, 2008 at 12:06 PM, Tamas Szekeres <szekerest at gmail.com>
> > wrote:
> >>
> >> Paul,
> >>
> >> You could probably use the GDAL C# bindings and the
> >> Geometry.CreateFromWkt function for this purpose.
> >> For more information see the createdata.cs example in the gdal source
> >> tree.
> >>
> >> Best regards,
> >>
> >> Tamas
> >>
> >>
> >> 2008/9/18 Paul james <pauljame at gmail.com>:
> >> > Hello Guys...
> >> > I´d like to add a point in a Postgis layer... I´m able to do this
> using
> >> > geomfromtext function (postgis)...
> >> > I´d like to do that in C#  ...
> >> > Is that possible?
> >> >
> >> > Thankz
> >> > _______________________________________________
> >> > mapserver-users mailing list
> >> > mapserver-users at lists.osgeo.org
> >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users
> >> >
> >> >
> >
> >
> > _______________________________________________
> > mapserver-users mailing list
> > mapserver-users at lists.osgeo.org
> > http://lists.osgeo.org/mailman/listinfo/mapserver-users
> >
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080918/ad0d076b/attachment.html


More information about the mapserver-users mailing list