-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue 194 #195
Issue 194 #195
Conversation
... for exporting.
... for shapefile export.
this.properties = new Properties(); | ||
InputStream in = null; | ||
try { | ||
in = EEAPhenomenonLinker.class.getResourceAsStream(PROPERTIES); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like that import ;-)
Oops, c&p mistake... I will correct this. We moved to #196, btw ;) The first (this) PR was aimed at the master branch... |
private final String shapefileExportThresholdPropertyName = "shapefile.export.measurement.threshold"; | ||
private Track track; | ||
private Properties properties; | ||
private static final String PROPERTIES = "/export.properties"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess, depending on the ClassLoader implementation, this may always read the jar-packaged export.properties
, thus prohibiting configuration at deployment time (WEB-INF/classes/export.properties
).
I would recommend a fail-safe method: package an export.default.properties
and only load it whenever Class.getResourceAsStream("/export.properties")
returns null.
Fix for #194. Measurement limit for shapefile export: 500 (configurable) Everything above that will result in a HTTP 500 error: