Re: [Geotools-gt2-users] Problems with .prj while saving a shapefile

2013-01-31 Thread mortac8
Was anyone ever able to address the problem that the forceSchemaCRS call sets the schema to null? Is the fix just to comment out that line which nulls the schema? Thanks! Ashley jody.garnett wrote > Hey Rodrigo: > > Rodrigo Paes wrote: >> Hi Jody, >> I tried your approach and here is what ha

Re: [Geotools-gt2-users] Problems with .prj while saving a shapefile

2009-02-04 Thread Jody Garnett
Michael Bedward wrote: > Interesting. But does it only occurs when there is a glitch in the > transform calculation as with Rodrigo's case ? > > I routinely do the forceSchema thing but I just tested omitting it > when creating new shapefiles and got valid prj files. > > That is good that bug i

Re: [Geotools-gt2-users] Problems with .prj while saving a shapefile

2009-02-04 Thread Jody Garnett
Hey Rodrigo: Rodrigo Paes wrote: > Hi Jody, > I tried your approach and here is what happened: > > - When I call the createSchema, it creates the schema but the crs is null; > - Then I call the forceSchemaCRS and it creates the .prj properly but > the schema is set to null; > - Then when I call t

Re: [Geotools-gt2-users] Problems with .prj while saving a shapefile

2009-02-04 Thread Rodrigo Paes
Hi Jody, I tried your approach and here is what happened: - When I call the createSchema, it creates the schema but the crs is null; - Then I call the forceSchemaCRS and it creates the .prj properly but the schema is set to null; - Then when I call the command: featureStore = (FeatureStore) shapeF

Re: [Geotools-gt2-users] Problems with .prj while saving a shapefile

2009-02-03 Thread Michael Bedward
Interesting. But does it only occurs when there is a glitch in the transform calculation as with Rodrigo's case ? I routinely do the forceSchema thing but I just tested omitting it when creating new shapefiles and got valid prj files. Michael

Re: [Geotools-gt2-users] Problems with .prj while saving a shapefile

2009-02-03 Thread Jody Garnett
Hey. The shapefile datastore does not seem to be writing out the prj very well. I know a work around - but I think you are the first person to look at why this problem is occurring. After calling: shapefileDataStore.createSchema(collection.getSchema()); You can force the prj file to be writte

[Geotools-gt2-users] Problems with .prj while saving a shapefile

2009-02-03 Thread Rodrigo Paes
Hello, I'm trying to save a shapefile from a MemoryDataStore. The shapefile seems to be ok, however it is not saving the .prj file properly, when I open it, it is empty (0 bytes). When I call the createSchema(), I'm getting the following warning: "PRJ file not generated for null CoordinateRe