[mapserver-users] Shp file creation.

Νίκος Παπαδάκης nipapada at gmail.com
Wed Aug 6 07:24:00 PDT 2008


O/H Atul Dravid έγραψε:
> Have you tried going through shapelib documentation ? 
>
> Regards,
> Atul Dravid
>
> -----Original Message-----
> From: mapserver-users-bounces at lists.osgeo.org
> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of ?????
> ?apad????
> Sent: Monday, August 04, 2008 11:37 PM
> To: mapserver-users at lists.osgeo.org
> Subject: [mapserver-users] Shp file creation.
>
> Hello to everyone.
> I want to ask about something that i have asked before
> but i could not find a solution.
> I have measured coordinates of some points in a city and i want
> to render them with mapserver.
> I have created a csv file with these values..
>
> LONGITUTE,LATITUDE,DESCRIPTION,ADDRESS
> 22.561867,39.215857,Φοιτητική Λέσχη,null
> 22.57267,39.212835,"Πανεπιστήμιο Θεσσαλιας,Κτήριο Παπαστράτος.",argonautwn
> 22.57070,39.212690,Caf?-Bar Drops.,argonautwn
> 22.565973,39.212715,Flocafe,argonautwn
> 22.565865,39.212754,Reef,argonautwn
> 22.565830,39.212776,Jam,argonautwn
>
> .    .    .    .    .    .    .    .
> .    .    .    .    .    .    .    .
> .    .    .    .    .    .    .    .
>
>
>
> Then i use a program found here ( 
> http://www.softpedia.com/get/Programming/Other-Programming-Files/CSV-to-Shap
> efile-Converter.shtml 
> )
> to create the .shp, .shx and .dbf files.
> But as i said before i can get no points on the map.
> I have some other point data and they work just fine.
> So i guess the problem isn't in the map file but in the data.
>
> Can anyone find the problem?
>
> Thank you all for your time!
> Nikos Papadakis.
> Univercity of Thessaly.
>
>
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>
>   
I used shapelib and particulary the shpcreate tool to create
an empty shape file and then shpadd to add entriew in it.
But in this way i will have to enter all data manually!

Is there any other way to generate it with a more automated way?
Aldo,theese tools don't produce the required .dbf file.
Only .shp and .shx files appear.







More information about the MapServer-users mailing list