Ok.
In my case I just want to read the shapefiles. I don't need to edit the
shapes.
Thank you for the response.
Best Regards,
André Matos
2012/4/28 Joachim Van der Auwera <[email protected]>
> As far as I understand, GeoTools' support for shapefiles is singel thread
> only. So if you are writing data into your shapefile, you may experience
> problems.
>
> On 28-04-12 15:07, André Matos wrote:
>
> Hello everyone,
>
> I am new to geotools.
> I came here from geoserver, because I need to made a custom store that
> calls a web service and reads a shapefile to draw the shapes. This custom
> store will be installed in geoserver.
>
>
> While reading the geoserver documentation, I found the following note:
>
> "
>
> Note
>
>
> While GeoServer has robust support for the shapefile format, it is not the
> recommended format of choice in a production environment. Databases such as
> PostGIS are more suitable in production and offer better performance and
> scalability. See the section on *Running in a Production
> Environment*<http://docs.geoserver.org/latest/en/user/production/index.html#production>
> for
> more information.
> " (http://docs.geoserver.org/latest/en/user/data/shapefile.html)
>
> At a first glance this note seems to make sense to me. PostGIS will be
> faster than reading a shapefile.... But, in my case must support custom
> shapefiles, e.g. a user can upload a shapefile and then see the a map image
> with the uploaded shapefile.
>
> So, I made some tests. I created 2 layers with the *same data*:
> - The first layer will load data from PostGIS (with indexes created at
> geographic column)
> - The second layer will load data from the shapefile.
>
>
> The test conditions are the same for this two test cases. It's all on
> the same computer (PostGIS database, Geoserver and the shapefile).
>
> The result was unexpected. The second layer, reading a shapefile
> directly was faster than reading data from PostGIS database, I read the
> link "Running in a Production Environment" and found no explanation for
> this...
>
> Does anyone know why they discourage the use of shapefiles in a
> production environment?
>
> In my case, I just want to read the shapefile. I don't want to edit
> it...
> Are they assuming that shapefile is not a good approach in a production
> environment because you may want to edit the shapes? And with PostGIS you
> have the ACID properties?
>
> Thank you!
>
> Best regards,
> André Matos
>
>
> PS: This question is about a geoserver documentation note. But, as they
> are using geotools and it is related to geotools stores, I decided to ask
> you first. If it is not geotools issue, just ignore it.
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>
>
>
> _______________________________________________
> GeoTools-GT2-Users mailing
> [email protected]https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
>
>
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> GeoTools-GT2-Users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
>
>
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
GeoTools-GT2-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users