I Can't display attributes from a shapefile generated with shapelib

View: New views
1 Messages — Rating Filter:   Alert me  

I Can't display attributes from a shapefile generated with shapelib

by Joaquin Perez Valera :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi everybody, another time

I made a program to create polygons in a shapefile, from a table in a csv file.
The things went good, but today I wanted to display an attribute contained in the dbf file, and the arcmap didn't display the
name of the polygon. I thought that it was a problem with my version of arcgis, but then I tried to show a label of other shapefile, wich I created within arcmap. And in the same layer it was possible to show the attrib from the second shape, and was not possible to show the label of the first shape, created with shapelib.

Somebody has seen this?

Well, thanks for your help.

Joaquin, from Mexico





2008/9/5 <shapelib-request@...>
Send Shapelib mailing list submissions to
       shapelib@...

To subscribe or unsubscribe via the World Wide Web, visit
       http://lists.maptools.org/mailman/listinfo/shapelib
or, via email, send a message with subject or body 'help' to
       shapelib-request@...

You can reach the person managing the list at
       shapelib-owner@...

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Shapelib digest..."


Today's Topics:

  1. Re: Adding new shape to shapefile (thecrashteam)


----------------------------------------------------------------------

Message: 1
Date: Fri, 5 Sep 2008 00:17:54 -0700 (PDT)
From: thecrashteam <didier.romain@...>
Subject: Re: [Shapelib] Adding new shape to shapefile
To: shapelib@...
Message-ID: <19326130.post@...>
Content-Type: text/plain; charset=us-ascii


Hi everybody,

Sorry for the delay but I had lot of work !
Concerning the dll problem, I solved it with a friend's help. I clarify that
the C++ dll was wrapped in a C# dll and it didn't work in my program.
So, the problem was the difference of the encoding strings between C # and
C++. I just have to convert C# strings (encoded in UNICODE) in ASCII (C++
encoding strings). My friend has written an other C# wrapped dll which
supports byte[] in place of strings in all methods that take into setting a
string.
Why byte[] ? because it's the returned value of the
System.Text.Encoding.Convert method.
Thank you all for your help.

I hope this post will help other people.

Romain.
--
View this message in context: http://www.nabble.com/Adding-new-shape-to-shapefile-tp17536792p19326130.html
Sent from the ShapeLib mailing list archive at Nabble.com.



------------------------------

_______________________________________________
Shapelib mailing list
Shapelib@...
http://lists.maptools.org/mailman/listinfo/shapelib


End of Shapelib Digest, Vol 50, Issue 1
***************************************


_______________________________________________
Shapelib mailing list
Shapelib@...
http://lists.maptools.org/mailman/listinfo/shapelib