From: Brent O. <bre...@gm...> - 2005-10-27 15:37:52
|
Hi Akin Here are the answers to your questions: 1) If I use only shapefiles, I don't need a database? - Correct. Shapefiles replace the use of a database. However, I still recommend using a database, but when you feel comfortable. 2) How can I use my own shapefile, where should I start and I dont know how modify the program, Should I change whole program segments javascripts, xml, jsp,... files - Go to this page here for a tutorial on how to add a shapefile to GeoServer: http://docs.codehaus.org/display/GEOSDOC/User+Tutorial+Shapefile You don't need to edit javascript or anything. 3) I need some constant shapefiles, I don't know how to create because I install the jump but it did not open my .shp file and it use own file format new task and .jmp, also I need a shapefile which will change according to new data - Ah, jump can take some getting used to. To load a shapefile into Jump, go to File->Load Dataset. On the top left of the file browsing window that pops up, make sure the 'Format' drop down list has ESRI Shapefile selected. Locate your .shp file and hit 'OK'. To save out your shapefile, go to File->Save Dataset. On the top left of the file browsing window that pops up, make sure the 'Format' drop down list has ESRI Shapefile selected. Name your file and make sure it has a .shp extension. Hit 'OK'. - Shapefiles can be edited by yourself using Jump (and other tools) and by GeoServer. So they will constantly change. 4) Can I create shapefile with java - You sure can, and there are several ways to do this. You can use GeoTools and create a new ShapefileDataStore or you can use the JTS library (http://www.vividsolutions.com/jts/jtshome.htm) to create a shapefile. The JTS jar should come with Jump. - I suggest you look around in org.vfny.geoserver.wfs.responses.ShapeFeatureResponseDelegate.java to see how shapefiles were used there. Brent Owens TOPP Akin Ozturk wrote: > Firstful thank you about your response, I was very happy. Thanks > Again. I want to ask some questions abour the GeoServer. > > 1- If I use only shapefiles, I don't need a database? > 2-How can I use my own shapefile, where should I start and I dont know > how modify the program, Should I change whole program segments > javascripts, xml, jsp,... files > 3- I need some constant shapefiles, I don't know how to create because > I install the jump but it did not open my .shp file and it use own > file format new task and .jmp, also I need a shapefile which will > change according to new data > 4-Can I create shapefile with java > */Brent Owens <bre...@gm...>/* wrote: > > Hi Akin, I will try to answer your questions: > > 1) *how to use shapefile* > A shapefile is actually 3 files: *.shp, *.dbf, *.shx > The .shp extension is all the geometries. The .dbf is all the column > information for each geometry. And I believe the .shx relates the two > files together. There are also index files that can be generated for > shapefiles, which adds another two files. > > 2) *how to insert data to mysql* > Geoserver does support MySql, but we recommend PostgreSQL with > PostGIS. > But for converting files from shapefile into MySQL, it is possible > but I > have never done it and can't recommend any tools. I did a quick > google > search and it yielded some helpful results: > http://www.google.ca/search?q=shapefile+to+mysql&sourceid=mozilla-search&start=0&start=0&ie=utf-8&oe=utf-8&client=firefox-a&rls=org.mozilla:en-US:official > > 3) *how I can create a shapefile* > Creating a shapefile is relatively easy. You can always export the > geo > data from an existing database, or just draw it by hand, if you > want to > see what it is like. You can go here for the entire (2004 version, > much > more to be added for 2006) Canadian road network in shapefile or GML > form: http://www.geobase.ca/ > There are some nice, free, tools that will help you create > shapefiles. > And they operate much like paint programs: > > -JUMP: http://www.jump-project.org/project.php?PID=JUMP&SID=OVER > I definitely recommend jump for beginners as it works well, and is > easy > to use. > > -GVSig: http://www.gvsig.gva.es/framesesp.htm > A similar tool but is also a WFS client. It is still in mid > development > so not everything is enabled. But I've used it and it is really > nice and > fast, and does do shapefiles. Definitely a tool to keep an eye out > for. > > -UDig: http://udig.refractions.net/confluence/display/UDIG/Home > UDig is similar to GVSig and has a lot of potential. I have seen some > *really* slick things done on it. > > 4) *can I use other type file* > There aren't many commonly used file types (files that live on > your file > system) for spatial data. GML is one but its main use is for > communication of geographic data between services. This page has a > nice > introduction to GML: http://www.xml.com/pub/a/2004/11/24/tourist.html > I would recommend shapefiles for physical files. But what I recommend > most is to use PostGIS: http://postgis.refractions.net/ > > Brent Owens > TOPP > > > > Akin Ozturk wrote: > > > *I am new user, also I am new gis and shapefile, I dont know > anything > > about them. I install GeoServer, everything ok! But* > > > > ** > > > > *I don t have any idea how to use shapefile and how to insert > data to > > mysql, how I can create a shapefile, shapefile necessary for > GeoServer > > or not, and I can use other type file.* > > > > ** > > > > *Anybody help me!* > > > > ** > > > > *Thanks * > > > > ** > > > > *akin* > > > > > > > > > ------------------------------------------------------------------------ > > Yahoo! FareChase - Search multiple travel sites in one click. > > > > > ------------------------------------------------------------------------ > Yahoo! FareChase - Search multiple travel sites in one click. > <http://us.lrd.yahoo.com/_ylc=X3oDMTFqODRtdXQ4BF9TAzMyOTc1MDIEX3MDOTY2ODgxNjkEcG9zAzEEc2VjA21haWwtZm9vdGVyBHNsawNmYw--/SIG=110oav78o/**http%3a//farechase.yahoo.com/> |